Tag Archives: Get-WmiObject

PowerShell – Get “Logon As” Information From Remote (or local) Server

This was made possible by the Scripting Guy.  I have boiled it down to the answer. If you want to use PowerShell to query for the log on account that normally is displayed in the services.msc service properties window:   Here is the PowerShell script:   $server_name = "name_of_server"; $services = Get-WmiObject win32_service -ComputerName $server_name… Read More »