![]() ![]() Invoke-VMScript -vm $vm -ScriptText $string -ScriptType Powershell -GuestUser 'administrator' -GuestPassword 'password' | Out-File VRM.txt -append $GetVM = Get-VM -location VRM | sort Name Unfortunately I have more than one machine, so I created a batch script below:Ĭonnect-VIServer vCenterserver.lab -User username -Password password ![]() The above is on a VM that's running Win 10 RS4 圆4 with Tools 10.2.5 that was upgraded via a PowerCLI script.Īnd that just outputs to the window. ScriptOutput : USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME ![]() VCenterserver.lab 443 VSPHERE.LOCAL\Administrator Invoke-VMScript -vm $vm -ScriptText $string -ScriptType Powershell -GuestUser 'administrator' -GuestPassword 'password'Īnd I enter the VM I get the query response I want However when I run the following script (generic info used below for user/pass/server):Ĭonnect-VIServer servername -User username -Password password I then upgraded to RS4 and it still builds fine. I use vRA 7.3.1 to build a Windows 10 圆4 VM that users can build thru a blueprint. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |