Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Fetch content from the Citrix UPM log file on the given Citrix VDA (domain in example is guyrleech.local) and show non information messages in a gridview
- Get-Content '\\GLS22CXVDAM01\c$\Windows\System32\LogFiles\UserProfileManager\guyrleech.local#GLS22CXVDAM01_pm.log' -wait|convertfrom-csv -Delimiter ';' -Header @( 'Date','Time','Level','Domain','UserName','SessionId','Pid','Message')|where { $_.level -NotMatch 'information' -and $_.Message -notmatch '^=+$' } | select -Exclude Date,Time -Property @{Name='DateTime';Expression={[datetime]"$($_.Date) $($_.Time)"}},* | Out-GridView
- ## add Where DateTime -ge ([datetime]::Today) before Out-GridView to only show entries for today
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement