PowerCLI Powerhsell

From Michael's Information Zone
Revision as of 09:00, 31 May 2017 by Michael.mast (talk | contribs)
Jump to navigation Jump to search

Allow powershell to run powercli cmdlets

Set-ExecutionPolicy RemoteSigned

Log into the server and start using commands

$cred=get-credential
connect-viserver -server localhost -credential $cred
get-vm

Clone VM

new-vm -name <new_machine_name> -vm <source_machine_name> -vmhost <ip or host name of the physical host, not the controller>