docs/powershell.md aktualisiert

This commit is contained in:
2024-10-24 09:01:46 +02:00
parent 6fe85cc74e
commit 33022d4392

View File

@@ -116,18 +116,19 @@ Invoke-Command ComputerName [IP bzw. FQDN] Credential [User] ScriptBloc
``` ```
## Add-User ## Add-User
New-ADUser -Name "John Doe" ` New-ADUser -Name [Vor Nachname] `
-GivenName "John" ` -GivenName [Vorname] `
-Surname "Doe" ` -Surname [Nachname] `
-SamAccountName "jdoe" ` -SamAccountName [Anmeldename] `
-UserPrincipalName "jdoe@yourdomain.com" ` -UserPrincipalName [Anmedldename@domain.tld] `
-Path "OU=Users,DC=yourdomain,DC=com" ` -Path "OU=Users,DC=yourdomain,DC=com" `
-AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -Force) ` -AccountPassword (ConvertTo-SecureString [Passw0rd] -AsPlainText -Force) `
-Enabled $true -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 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: > Command:
```ruby ```ruby