New-LocalUser — Export ResultsIT technician command center
PowerShell · Windows Administration

New-LocalUser — Export Results

Export the output of New-LocalUser for documentation or review.

Copy-ready commandNew-LocalUser — Export Results
New-LocalUser -Name helpdesk -Password (Read-Host -AsSecureString) | Export-Csv .\output.csv -NoTypeInformation

Requirements and permissions

Requirements
Windows PowerShell 5.1 or PowerShell 7
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Export Results

Export the output of New-LocalUser for documentation or review.

New-LocalUser -Name helpdesk -Password (Read-Host -AsSecureString) | Export-Csv .\output.csv -NoTypeInformation

Original command

Create a local user account.

New-LocalUser -Name helpdesk -Password (Read-Host -AsSecureString)

Common errors

Command not found

Confirm Windows PowerShell 5.1 or PowerShell 7 is installed and available in your current shell.