docs/powershell.md aktualisiert

This commit is contained in:
2024-10-24 12:43:57 +02:00
parent deed6bc034
commit a6badd1e10

View File

@@ -180,16 +180,8 @@ Add-ADGroupMember -Identity "2-Kp-Chef" -Members "2-Kp-KpFw", "2-Kp-KpEinsOffz"
###### Set-vars ###### 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 ```ruby
$PATH='C:\SharedFolder' $PATH='C:/SharedFolder'
$NAME='MyShare' $NAME='MyShare'
$PERM='[FLAG]' //[F (Full), M (RW), R (Read) or RX (Read and Execute)] $PERM='[FLAG]' //[F (Full), M (RW), R (Read) or RX (Read and Execute)]
New-Item -Path $PATH -ItemType Directory New-Item -Path $PATH -ItemType Directory