Saturday, February 25, 2017

Sample Window Power Shell Script to get win32_share object by name using command line arguments

if($args){
$name = $args
get-wmiobject win32_share -filter "name='$name'"
}

No comments:

Post a Comment