From 6fe85cc74eae201856c8d807e7dfec946de7c696 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Thu, 24 Oct 2024 08:59:06 +0200 Subject: [PATCH] docs/powershell.md aktualisiert --- docs/powershell.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/powershell.md b/docs/powershell.md index 8a650fe..9f3f8ca 100644 --- a/docs/powershell.md +++ b/docs/powershell.md @@ -115,6 +115,20 @@ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –Command {[ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]} ``` +## Add-User + New-ADUser -Name "John Doe" ` + -GivenName "John" ` + -Surname "Doe" ` + -SamAccountName "jdoe" ` + -UserPrincipalName "jdoe@yourdomain.com" ` + -Path "OU=Users,DC=yourdomain,DC=com" ` + -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -Force) ` + -Enabled $true + +````ruby +New-ADUser -Name "John Doe" -GivenName "John" -Surname "Doe" -SamAccountName "jdoe" -UserPrincipalName "jdoe@yourdomain.com" -Path "OU=Users,DC=yourdomain,DC=com" -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -Force) -Enabled $true +```` + > Command: ```ruby