Powercli: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
===Remove snapshot=== | ===Remove snapshot=== | ||
<pre>get-snapshot -vm <vm_name> | remove-snapshot</pre> | <pre>get-snapshot -vm <vm_name> | remove-snapshot</pre> | ||
===Storage vMotion=== | |||
<pre>Get-VM "<vm_name>" | Move-VM -Datastore <datastore_name></pre> |
Revision as of 09:12, 15 March 2019
Powercli
Useful Commands
Update vmTools with no reboot
Get-VM "<vm_name>" | Update-Tools -NoReboot
Create snapshot
new-snapshot -vm <vm_name> -name snapshot_test
Remove snapshot
get-snapshot -vm <vm_name> | remove-snapshot
Storage vMotion
Get-VM "<vm_name>" | Move-VM -Datastore <datastore_name>