Eine Freigabe mit der Powershell erstellen
md D:\Share
$share =[wmiclass]”win32_share”
$share.Create(“d:\Share”,”TestShareName”,0)
gwmi win32_share
gwmi win32_share -Filter “name = ‘TestShareName'”
gwmi win32_share -Filter “name = ‘TestShareName'” | Remove-WmiObject
gwmi win32_share
del D:\Share