docs/powershell.md aktualisiert
This commit is contained in:
@@ -115,6 +115,20 @@ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –Command {[
|
|||||||
Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]}
|
Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Add-User
|
||||||
|
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
|
||||||
|
|
||||||
|
````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:
|
> Command:
|
||||||
```ruby
|
```ruby
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user