docs/powershell.md aktualisiert

This commit is contained in:
2024-10-24 08:59:06 +02:00
parent 78d4b35a12
commit 6fe85cc74e

View File

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