Windows: Use the share Command to List Shares

List all the assets on your system that you are sharing using the share command.  Just type share /L to see them all.  Create a new one with share /C and delete one of them with share /d.  Also, /n allows you to specify a name, /p a path, /v a description, /t a type, /s a server, /u a username and /w a password.  Finally, if the command is automated or really long then use /o to indicate some kind of output file…

Windows: Script to Reset SID

Script Code ============================================ @echo off Echo Save the batch file "AU_Clean_SID.cmd". This batch file will do the following: Echo 1.    Stops the wuauserv service Echo 2.    Deletes the AccountDomainSid registry key (if it exists) Echo 3.    Deletes the PingID registry key (if it exists) Echo 4.    Deletes the SusClientId registry key (if it exists) Echo 5.    Restarts the wuauserv service Echo 6.    Resets the Authorization Cookie Echo 7.    More information on http://msmvps.com/Athif Pause @echo on net stop wuauserv REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v AccountDomainSid /f REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v PingID /f REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v SusClientId /f net start wuauserv wuauclt /resetauthorization /detectnow Pause

Windows: Using SUBST to Map a Drive Letter to a Folder

So you’re using some old app, like FoxPro and it points to a drive letter.  You only have one disk but need to spoof or mimic that drive letter.  Well, subst to the rescue.  Basically, pick a letter.  Let’s say S: as it’s not currently in use.  Then use the subst command followed by the letter followed by the path to map a drive letter to it.  For example, if you want tot mount up c:/sales as S: then use this command: subst s: c:/sales Now, don’t misuse this command as a replacement for, let’s say net use.  If it’s a network path still map it using the net use command…