Array from Net View (cmd line)
hi,
i have requirement list shares on non windows box can't use wmi. i've found net view can used having problems parsing output? here have
$pc = 'goflex_home'
$shares = (net.exe view $pc)
$shares
foreach ($line in $shares){
write-host $line
}
the problems have complete output net view 1 element in array. there way parse each line net view array element?
thanks
the
alter de ruine
hi alter,
you try post thread script forum further information this:
http://social.technet.microsoft.com/forums/en/itcg/threads
technet subscriber support in forum |if have feedback on our support, please contact tnmff@microsoft.com.
Windows Server > File Services and Storage
Comments
Post a Comment