Sample powershell scripts and commands

SAMPLE COMMANDS/SCRIPTS – run command to see which folder is the biggesthttp://searchwindowsserver.techtarget.com/tip/0,289483,sid68_gci1366742_mem1,00.htmldir C:specifyfolder -Recurse | where {$_.psiscontainer} | select name, fullname...

General powershell tips and warnings

GENERAL TIPS – test everything locally in an isolated folder using -whatif at the end of a command.  this way, you can see what the results would be if it were run for real.  when confident, remove -whatif. – be careful of -recursive because this...

How do I run powershell scripts on a remote server?

SETUP/INSTALLATION 1 – install powershell 2.0/windows management framework on local machine and remote servers that you want to manage.http://support.microsoft.com/kb/968929- running scripts on a remote machine only works in powershell 2.0 — both the local...

What is powershell?

INTRO READING – What is PowerShell?http://en.wikipedia.org/wiki/Windows_PowerShell – Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)http://support.microsoft.com/kb/968929