Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Use powercli without UI

$
0
0

Hello

 

I have created a powershell script with use some commands like :

  • Connect-VIServer -Server $server -User ....
  • Set-VM -VM $vm -SnapShot $snap -Confirm:$false
  • New-Snapshot -VM $vm -Name $snapshotName -Description $description -Confirm:$false
  • $vm=Get-VM -name $vmName
  • $snap = Get-Snapshot -VM $vm -Name $snapshotName
  • Remove-Snapshot -Snapshot $snap  -Confirm:$false

 

and some of those commands make some Windows appears and disappear, taking focus.

During my script I want to use other applications. And these command make losing focus :-(

And if i press enter, sometimes involuntarily, it click on cancel on these popup Windows :-(

 

Is there is a way to tell to powercli to hide these Windows and make all silently ?

 

Thanks for advance

Nara20


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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