This message was deleted.
# _general
s
This message was deleted.
j
Er, BGinfo?
d
Note: the /POPUP switch and the /TASKBAR switch will stick BGInfo into your system tray and pop up a dialog with system information whenever you click on it, which is definitely a very useful option.
was just reading that
j
We use Dennis's script that also gives us FSLogix information from there
d
link? 😉
j
Dennis' link appears to be broken
Copy code
# Source directory for BGInfo/BGInfo File (customize)
$BGInfoDir = 'C:\xxxxx\Scripts'
$BGInfoFile = 'VWP.bgi'

# Regkey for setting the values (BGinfo gets informations from this source, don't edit!)
$RegistryPath = "HKCU:\BGInfo"
New-Item -Path $RegistryPath -EA SilentlyContinue


# Citrix #

# Citrix SessionID
$CitrixSessionID = Get-ChildItem -Path "HKCU:\Volatile Environment" -Name
New-ItemProperty -Path $RegistryPath -Name "SessionID" -Value $CitrixSessionID -Force

# Citrix Clientname
$CitrixClientName = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_Client_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Name
New-ItemProperty -Path $RegistryPath -Name "Clientname" -Value $CitrixClientName -Force

# Citrix Client
$CitrixClientVer = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_Client_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Version
New-ItemProperty -Path $RegistryPath -Name "Citrix Client Ver" -Value $CitrixClientVer -Force

# Citrix Client IP
$CitrixClientIP = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_Client_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Address
New-ItemProperty -Path $RegistryPath -Name "Citrix Client IP" -Value $CitrixClientIP -Force

# HDX Protocol
$HDXProtocol = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_Network_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Component_Protocol
New-ItemProperty -Path $RegistryPath -Name "HDX Protocol" -Value $HDXProtocol -Force

# HDX Video Codec
$HDXCodec = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_VirtualChannel_Thinwire_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Component_VideoCodecUse
New-ItemProperty -Path $RegistryPath -Name "HDX Codec" -Value $HDXCodec -Force

# HDX Video Codec Type
$HDXCodecType = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_VirtualChannel_Thinwire_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Component_Monitor_VideoCodecTypeCurrent
New-ItemProperty -Path $RegistryPath -Name "HDX Codec Type" -Value $HDXCodecType -Force

# HDX Visual Quality
$VisualQuality = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_VirtualChannel_Thinwire_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Policy_VisualQuality
New-ItemProperty -Path $RegistryPath -Name "HDX Visual Quality" -Value $VisualQuality -Force

# HDX Visual Lossless Compression
$VisualLosslessCompression = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_VirtualChannel_Thinwire_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Policy_AllowVisuallyLosslessCompression
New-ItemProperty -Path $RegistryPath -Name "HDX Visual Lossless Compression" -Value $VisualLosslessCompression -Force

# HDX Colorspace
$HDXColorspace = Get-WmiObject -Namespace root\citrix\hdx -Class Citrix_VirtualChannel_Thinwire_Enum | Where-Object {$_.SessionID -eq $CitrixSessionID} | Select-Object -ExpandProperty Component_VideoCodecColorspace
New-ItemProperty -Path $RegistryPath -Name "HDX Colorspace" -Value $HDXColorspace -Force


# FSLogix #

# Profilesize
$ProfileSize = "{0:N2} GB" -f ((Get-ChildItem $ENV:USERPROFILE -Force -Recurse -EA SilentlyContinue | measure Length -s).Sum /1GB)
New-ItemProperty -Path $RegistryPath -Name "Profile Size" -Value $ProfileSize -Force

# FSLogix Profile Status
$FSLProfileStatus = Get-Volume -FileSystemLabel *Profile-$ENV:USERNAME* | Where-Object { $_.DriveType -eq 'Fixed'} | Select-Object -ExpandProperty HealthStatus
New-ItemProperty -Path $RegistryPath -Name "FSL Profile Status" -Value $FSLProfileStatus -Force

# FSLogix Profile Size
$FSLProfileSize = Get-Volume -FileSystemLabel *Profile-$ENV:USERNAME* | Where-Object { $_.DriveType -eq 'Fixed'} | ForEach-Object {[string]::Format("{0:0.00} GB", $_.Size / 1GB)}
New-ItemProperty -Path $RegistryPath -Name "FSL Profile Size" -Value $FSLProfileSize -Force

# FSLogix Profile Size Remaining
$FSLProfileSizeRemaining = Get-Volume -FileSystemLabel *Profile-$ENV:USERNAME* | Where-Object { $_.DriveType -eq 'Fixed'} | ForEach-Object {[string]::Format("{0:0.00} GB", $_.SizeRemaining / 1GB)}
New-ItemProperty -Path $RegistryPath -Name "FSL Profile Size Remaining" -Value $FSLProfileSizeRemaining -Force

# BGInfo
Start-Process -FilePath "$BGInfoDir\Bginfo64.exe" -ArgumentList @('/taskbar /nolicprompt','/timer:0',"`"$BGInfoDir\$BGInfoFile`"")
d
thanks!!
c
i use dennis's bginfo .bgi as well its v good 🙂
j
@Dennis is your script linked anywhere? All the links I found were broken
c
i had to get him to send me the .bgi as it was corrupt
d
It’s all in GitHub now. https://github.com/Mohrpheus78/Citrix
👍 1
t
nice
d
anyone got the LogonTime working that is part of the custom fields in the Citrix.bgi? If I'm not mistaking, the script isn't setting it.
d
Let me check this...
Ah, so I know what you mean. That was an attempt, so nothing behind it.
d
ok, with a little google I managed to get this working in the script, to bad it's also picking up any lock/unlock as being a "logon":
Copy code
$x=Get-WmiObject Win32_NetworkLoginProfile
$LogonTime = $x[1].ConvertToDateTime( $x[1].LastLogon)