From 33022d4392d6991ab61cc783caab8ca90d522796 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Thu, 24 Oct 2024 09:01:46 +0200 Subject: [PATCH] docs/powershell.md aktualisiert --- docs/powershell.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/powershell.md b/docs/powershell.md index 9f3f8ca..15f05c2 100644 --- a/docs/powershell.md +++ b/docs/powershell.md @@ -116,18 +116,19 @@ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBloc ``` ## Add-User - New-ADUser -Name "John Doe" ` - -GivenName "John" ` - -Surname "Doe" ` - -SamAccountName "jdoe" ` - -UserPrincipalName "jdoe@yourdomain.com" ` + New-ADUser -Name [Vor Nachname] ` + -GivenName [Vorname] ` + -Surname [Nachname] ` + -SamAccountName [Anmeldename] ` + -UserPrincipalName [Anmedldename@domain.tld] ` -Path "OU=Users,DC=yourdomain,DC=com" ` - -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -Force) ` + -AccountPassword (ConvertTo-SecureString [Passw0rd] -AsPlainText -Force) ` -Enabled $true -````ruby +```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