Changed PS script

Using Script by Sandro Pereira from:
http://gallery.technet.microsoft.com/PowerShell-to-Configure-0cee83e8