Another alternative is the old school NET USER commands:
NET USER username "password" /ADD
OK – you can’t set all the options but it’s a lot less convoluted for simple user creation & easy to script up in Powershell.
NET LOCALGROUP "group" "user" /add
to set group membership.
Related Contents:
- How do you comment out code in PowerShell?
- What’s the best way to determine the location of the current PowerShell script?
- Recursive file search using PowerShell
- How do I get only directories using Get-ChildItem?
- Delete files older than 15 days using PowerShell
- How to get an MD5 checksum in PowerShell
- Is there a way to make a PowerShell script work by double clicking a .ps1 file?
- PowerShell: How do I convert an array object to a string in PowerShell?
- Get full path of the files in PowerShell
- How to get all groups that a user is a member of?
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- Why is my locally-created script not allowed to run under the RemoteSigned execution policy?
- When should I use Write-Error vs. Throw? Terminating vs. non-terminating errors
- Executing an EXE file using a PowerShell script
- How to get disk capacity and free space of remote computer
- Multiline comment in PowerShell
- How do I concatenate two text files in PowerShell?
- Extract the filename from a path
- How to upgrade PowerShell version from 2.0 to 3.0
- Copy file remotely with PowerShell
- GetType used in PowerShell, difference between variables
- Obtaining ExitCode using Start-Process and WaitForExit instead of -Wait
- Best way to check if an PowerShell Object exist?
- Redirecting standard input\output in Windows PowerShell
- How to open Powershell Console Window from Powershell
- How to properly -filter multiple strings in a PowerShell copy script
- How do I get help messages to appear for my Powershell script parameters?
- Powershell 2 copy-item which creates a folder if doesn’t exist
- How to execute PowerShell commands from a batch file?
- How do I retrieve the available commands from a module?
- How to check if a cmdlet exists in PowerShell at runtime via script
- Get relative path of files in sub-folders from the current directory
- PowerShell The term is not recognized as cmdlet function script file or operable program
- How to run a Powershell script from the command line and pass a directory as a parameter
- How can I extract “Path to executable” of all services with PowerShell
- PowerShell is missing the terminator: “
- Load variables from another powershell script
- Redirection of standard and error output appending to the same log file
- Powershell script to see currently logged in users (domain and machine) + status (active, idle, away)
- List of all colors available for PowerShell?
- Web.Config transforms outside of Microsoft MSBuild?
- How to go fullscreen in PowerShell
- How do I write to standard error in PowerShell?
- Using PowerShell to remove lines from a text file if it contains a string
- How to perform keystroke inside powershell?
- Removing path and extension from filename in PowerShell
- PSCustomObject to Hashtable
- PowerShell – Install-WindowsFeature (and family) missing on Windows 10?
- PowerShell prompt to continue execution of code
- Invoke-WebRequest : Cannot bind parameter ‘Headers’