For Googlers, another way to get a list of users is to use:
Get-WmiObject -Class Win32_UserAccount
More Related Contents:
- this code my teacher gave it to us as homework and it does not work with me idk why
- How can you use an object’s property in a double-quoted string?
- In what scenario was Invoke-Expression designed to be used?
- How can I write/create a powershell script verbatim, from another powershell script?
- Powershell: passing json string to curl
- How can I replace every occurrence of a String in a file with PowerShell?
- How do I pass variables with the Invoke-Command cmdlet?
- Loop through files in a directory using PowerShell
- Difference between ForEach and ForEach-Object in powershell
- Any way to double-click on .PS1 file & open them in PowerShell?
- Set-Content appends a newline (line break, CRLF) at the end of my file
- Progress during large file copy (Copy-Item & Write-Progress?)
- How to get started with PowerShell? [closed]
- How to export data to CSV in PowerShell?
- How to convert to UInt64 from a string in Powershell? String-to-number conversion
- How to process a file in PowerShell line-by-line as a stream
- How to unzip a file in Powershell?
- Echo equivalent in PowerShell for script testing
- Why is an empty PowerShell pipeline not the same as null?
- How to fail the build from a PowerShell task in TFS 2015
- PowerShell script to check the status of a URL
- Accessing Windows Credential Manager from PowerShell
- CMD or Powershell command to combine (merge) corresponding lines from two files [duplicate]
- How to download the SSL certificate from a website using PowerShell?
- Rename file on FTP with PowerShell
- Using Powershell environmental variables as strings when outputting files
- Variable scoping in PowerShell
- PowerShell launch script in new instance
- Remove last line from file with Powershell
- How to return specific data type from PowerShell function i.e. DataTable