PowerTip: Use PowerShell to Show Screensaver Info for Logged-on User
Summary: Use Windows PowerShell to show screensaver info for a user who is logged on.
How can I easily use Windows PowerShell to show screensaver information for the currently logged-on interactive user?
Use WMI to query the Win32_Desktop class, and filter on the logged-on user’s name:
Get-Wmiobject win32_desktop | where name -match $env:USERNAME