Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168400

Re: adding 100GD D drive to 50vms

$
0
0

Try something like this

 

$MyScript=@"
Get-WmiObject -Class Win32_Volume -Filter "DriveLetter = 'D:'" |
Set-WmiInstance -Arguments @{DriveLetter="E:"; Label="Label"}
"@


$vm=Get-VM-NameMyVM
Invoke-VMScript-VM$vm-ScriptText$MyScript-ScriptTypePowerShell-GuestUser$user-GuestPassword$pswd

Viewing all articles
Browse latest Browse all 168400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>