To sequence one command after another one can use & to do it. For example: set test=hello & call echo %test% set test="hello" sets the value and call echo %test% shows the result to the standard output. Note also the use of call instruction, that forces the interpreter to re-interpret echo otherwise it will not see changes made.
Stop-Process -ProcessName "notepad" Where notepad is the name of the process to kill. Or to make life more difficult, you can: [System.Diagnostics.Process]::GetProcessesByName("notepad") | ForEach-Object {$_.Kill()} References: http://technet.microsoft.com/en-us/library/ee177004.aspx
Inspired by Rob Caron's blog on installing VS2012 Update 1 offline. Below shows how to download without user interaction with the GUI. C:\> vsupdate_KB2707250.exe /layout f:\tmp /passive Of course you need to download the installer first, see this link . It is assumed that vsupdate_KB2707250.exe is in the system path or in the root of drive C:. And you have enough space in drive F:\. References: http://blogs.msdn.com/b/robcaron/archive/2012/11/26/how-to-install-visual-studio-2012-update-1-offline.aspx
net localgroup administrators timus /add Where administrators is the group that timus will be added. Of course, you need to have administrative privileges to do this.
Open command prompt and type: net user /add timus timuspassword Where timus is the username and timuspassword is the password. Of course you have to have administrative privileges to do this.