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