Saturday, September 07, 2013

Powershell Quick Tips: Get currently logged on user

PS C:\> Get-WMIObject win32_process -Filter "Name='explorer.exe'" | ForEach-Object {Write-Host $_.GetOwner().User}

Keywords:
WMI
Win32_Prococess
User

No comments:

Qt console hello world

Qt console hello world This guide shows how a Qt console hello world looks like. ▣ Open  Qt Creator  and click on  Create Project... ...