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
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