PowerCLI job does not work

Welcome Forums General PowerShell Q&A PowerCLI job does not work

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
3 years, 4 months ago.

  • Author
    Posts
  • #27666

    Participant
    Points: 0
    Rank: Member

    Hi to everyone. I want to be short. Test job for retrieving info about virtual machine is in running state forever – gets stuck after connecting successfully to vcenter server.

    $cred = Get-Credential -UserName domain\username -Message 'Enter password:'

    Start-Job -ScriptBlock {
    param($c)
    Import-Module 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VimAutomation.Core'
    Connect-VIServer vcenter -Credential $c
    Get-VM db01

    } -RunAs32 -ArgumentList $cred

    I am using PowerShell v4 on Win 8.1 Pro x64 OS.

  • #27680

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    You're probably going to get a better answer by posting in VMware's own PowerCLI forums. They're very responsive, and the people there work with PowerCLI every day.

The topic ‘PowerCLI job does not work’ is closed to new replies.