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

Re: Using Connect-CIServer in a Start-Job

$
0
0

To attempt what you are saying I took the current session ID of my connect-ciserver and passed it to the start job as an argument.... still nothing.

 

Start-Job -RunAs32 -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-VIServer testvc01    Get-PowerCLIConfiguration    Connect-CIServer testcloud.cloud.com -SessionId $args[0]    Get-CIVApp
} -ArgumentList @($session)

 

The connect-VIServer and the Get-PowerCLIConfiguration process... but the script stops at Connect-CIServer


Viewing all articles
Browse latest Browse all 193504

Trending Articles



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