[Solved] Powershell – what’s this line saying?
Lets break apart this command $currentuserid = Get-WmiObject -Class win32_computersystem -ComputerName $workstation | Select-Object -ExpandProperty Username In powershell $ is the identifier for a variable. This means $currentuserid will equal the output of the last command in the pipe, In this case Select-Object. Also in powershell -whatever after a command is a parameter. The | … Read more