docs/powershell.md aktualisiert

This commit is contained in:
2024-10-24 12:40:13 +02:00
parent ce6d461c4e
commit deed6bc034

View File

@@ -176,4 +176,25 @@ New-ADGroup -Name "Trans_R" -GroupScope DomainLocal -GroupCategory Security -Pat
Add-ADGroupMember -Identity "2-Kp-Chef" -Members "2-Kp-KpFw", "2-Kp-KpEinsOffz" Add-ADGroupMember -Identity "2-Kp-Chef" -Members "2-Kp-KpFw", "2-Kp-KpEinsOffz"
``` ```
#### Creat File-Share
###### Set-vars
$PATH='C:\SharedFolder'
$NAME='MyShare'
$PERM='[FLAG]' //[F (Full), M (RW), R (Read) or RX (Read and Execute)]
New-Item -Path $PATH -ItemType Directory
New-SmbShare -Name $NAME -Path $PATH -FullAccess "Authenticated Users"
icacls $PATH /grant "DOMAIN\YourGroupName":(OI)(CI)$PERM
```ruby
$PATH='C:\SharedFolder'
$NAME='MyShare'
$PERM='[FLAG]' //[F (Full), M (RW), R (Read) or RX (Read and Execute)]
New-Item -Path $PATH -ItemType Directory
New-SmbShare -Name $NAME -Path $PATH -FullAccess "Authenticated Users"
icacls $PATH /grant "DOMAIN\YourGroupName":(OI)(CI)$PERM
```
</details> </details>