Windows command line commands

File type associations

View file type for given file extension

assoc .mp3

Change file type for given file extension

assoc .mp3=mp3file

View file type open command string

ftype mp3file

Change file type open command string

ftype mp3file=winamp.exe %1

Show user account details

Shows user account information including full user name, account and password expiration, home directory location, local and global group membership

net user {username} [/DOMAIN]

Start/stop windows service

sc stop w3svc - stop service
sc start w3svc - start service
sc queryex w3svc - query service status

Restart IIS

iisreset

Configure ASP.NET to use different user account

AspNet_regiis -ga <userAccountName>