Announcement Banner

cyb2

updated

11 years ago

C

cyb2

10 Posts

0

199459

September 8th, 2015 02:00

About vWorkspace Powershell Problem

Hi 

I use command Get-QVWFarm in PowerShell, but return FarmName field is empty. I try to modify

FarmName in CB and it doesn't work. Can anyone give me advice? thx

  • lwhitelock

    11 Posts

    733

    0

    Posted September 8th, 2015 03:00

    Have you run

    Connect-QVWFarm -Farm "vWorkspace Database"

    I have a feeling I had the same problem and the farm name only gets set after you connect for the first time. However you also don't use the farm name but the alias there for doing subsequent commands for example the start of one of my monitoring scripts is:

    import-module vWorkspace
    Connect-QVWFarm -Farm "vWorkspace Database"
    $problem_computers = Get-QVWComputer -Farm "vWorkspace Database" -Filter{$QVWComputer.Status.LogonState -ne "LoggedOn" -and $QVWComputer.Status.LogonState -ne "Disconnected" -and $QVWComputer.Status.LogonState -ne "LoggedOff"}

  • cyb2

    10 Posts

    733

    0

    Posted September 8th, 2015 02:00

    I  use vworkspace powershell module 8.5.

  • cyb2

    10 Posts

    733

    0

    Posted September 8th, 2015 02:00

    YES, I'm run in CB-Server. When I run Get-QVWFarm, powershell is work.

  • Hilbert_nl

    17 Posts

    733

    0

    Posted September 8th, 2015 02:00

    Is the VW admin console installed and configured on the machine where you run the Powershell command?

     

  • cyb2

    10 Posts

    733

    0

    Posted September 8th, 2015 04:00

    Thank you help, it's work. FarmName is appear, but we need use "vWorkspace Database" as FarmName that is so weird.