This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
program_lang:powershell_powercli_misc [2022/01/07 19:05] manu |
program_lang:powershell_powercli_misc [2022/01/11 00:03] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Powercli misc commands ====== | ====== Powercli misc commands ====== | ||
+ | |||
+ | Converted to PowerCLI that looks like: | ||
+ | |||
+ | Get-VMHost | Set-VMHostAdvancedConfiguration -Name LVM.EnableResignature -Value 1 | ||
+ | Get-VMHost | Get-VMHostStorage -RescanAllHBA -RescanAllVMFS | ||
+ | Get-VMHost | Set-VMHostAdvancedConfiguration -Name LVM.EnableResignature -Value 0 | ||
+ | |||
+ | |||
+ | |||
+ | https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Assign-a-new-signature-via-Powercli/td-p/1852376 | ||
+ | |||
+ | https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Resignature-a-VMFS-Datastore-Copy/m-p/462238 | ||
+ | |||
+ | https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Creating-datastore-from-mounted-VMFS-Disk-LUN-producing/td-p/1263946 | ||
+ | |||
+ | https://github.com/voletri/PowerCLI-1/blob/master/Attach-SCSILun.ps1 | ||
+ | |||
+ | |||
+ | Get-VMhost | Select -first 1 | ||
+ | |||
===== get ALL VM snapshots ===== | ===== get ALL VM snapshots ===== |