Quick hint: Basic computer actions using PowerShell in Windows Server 2012

sans-titre_thumb2_thumb How to manage basic computer tasks in Windows Server 2012, such as logoff, restart and shutdown from the PowerShell?

I do share the same feeling, I really enjoy the new interface but when you are in a RDP session and you want to be fast, there is nothing better than open PowerShell, cmdlet and hit enter and see ya!, right? So here we have a list of common tasks where we can use Powershell and a couple of commands to get stuff done. 

Restarting your computer..

Restart-Computer

Logging off your session..

Logoff

Shutdown your computer…

Stop-Computer

Before doing all that is always good to check the computer name, so the command below will help you out Smile 

hostname

Cheers,
Anderson Patricio
http://www.andersonpatricio.ca
http://www.andersonpatricio.org (Portuguese)
Twitter: @apatricio

Leave a Reply

Your email address will not be published. Required fields are marked *