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

Using Connect-CIServer in a Start-Job

$
0
0

Has anyone been able to complete something like this? This works perfectly in a plain PoSh window but running in a Start-Job it never gets past the connect-ciserver. The job shows running and HasMoreData .. but again, never completes.

I'm using PowerCLI 5.1 Update 2 and Powershell  3.0 which is supported under my PowerCLI version.

 

Start-Job -ScriptBlock  {    # Add PSSnapins        Add-PSSnapin VMware.VimAutomation.Core    Add-PSSnapin VMware.VimAutomation.Vds    Add-PSSnapin VMware.VimAutomation.License    Add-PSSnapin VMware.DeployAutomation    Add-PSSnapin VMware.ImageBuilder    Add-PSSnapin VMware.VimAutomation.Cloud        Connect-CIServer -Server testcloud.cloud.com -User testuser -Password Test111    Get-CIVApp
}

Viewing all articles
Browse latest Browse all 192300

Trending Articles



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