October 2017
Intermediate to advanced
440 pages
11h 47m
English
The following snippet creates a directory and shares that directory:
$path = 'C:\Temp\WmiPermissions'
New-Item $path -ItemType Directory
Invoke-CimMethod Win32_Share -MethodName Create -Arguments @{
Name = 'WmiPerms'
Path = $path
Type = 0
}
Read now
Unlock full access