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.
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"} }