Advertisement
guyrleech

Show Remote Citrix UPM Log File Entries

Jun 18th, 2025
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.67 KB | Software | 0 0
  1. ## 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
  2.  
  3. 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
  4.  
  5. ## add Where DateTime -ge ([datetime]::Today) before Out-GridView to only show entries for today
Tags: citrix upm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement