Quantcast
Viewing all articles
Browse latest Browse all 229602

VMware view get users

Hi

 

I have to make a script for our VMware view environment that gets the amount of users that have logged in last week.

but I'm stuck. Image may be NSFW.
Clik here to view.

 

i got so far with my script.

 

 

$pss = New-PSSession "view-broker"

 

Invoke-Command -Session $pss -ScriptBlock {

##### Add View Snanpin.

if(-not (Get-PSSnapin VMware.View.Broker -ErrorAction SilentlyContinue))

{

   Add-PSSnapin VMware.View.Broker

}

#*****************************************

Get-EventReport  -ViewName user_events | where {$_.eventtype -eq "AGENT_CONNECTED"}  }


Viewing all articles
Browse latest Browse all 229602

Trending Articles