docs/powershell.md aktualisiert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user