971783a7fd
* Added more return results to win_stat * Changed Win2012 methods to support older versions in setup * staging of the tests to work with older servers
6 lines
196 B
PowerShell
6 lines
196 B
PowerShell
$share_stat = Get-WmiObject -Class Win32_Share -Filter "name='folder-share'"
|
|
If ($share_stat) {
|
|
$share_stat.Delete()
|
|
}
|
|
$wmi = [wmiClass] 'Win32_Share'
|
|
$wmi.Create($args[0], 'folder-share', 0)
|