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

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 189012

Trending Articles