Tuesday, October 8, 2013

Setup PowerShell/PowerCli

Configure Powershell on Windows7

  • Go start > search > type ‘powershell’ and drag PowerShell ISE to desktop for shortcut. 


Download Quest Active Roles 

  • http://www.quest.com/powershell/activeroles-server.aspx 


Download PowerCLI 

  • https://my.vmware.com/web/vmware/details/sdkwin40u1/ZHcqYmQlcHRiZGVqd



  • Run set-executionPolicy unrestricted  (allow unsigned scripts) 

Setup PowerShell Profile 

  • run $profile  which should show you path in middle pane  
  • run test-path $profile and will probably return False since there's no profile created yet.  
  • run this New-Item -path $profile -type file -force  
  • This will create a new profile file, otherwise next step would fail  
  • Run notepad $profile and edit the file as you want. I just added in this  
    • add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin 
    • add-pssnapin quest.activeroles.admanagement  
    • add-PSSnapin VMware.VimAutomation.Core  
    • set-location c:\scripts  


No comments:

Post a Comment