that share thing is same you get with @homeshr

now... you can do it with adsi winnt provider or wmi.
here is the wmi way:
Code:

$server = "someServer"
$share = "someShare"

$objWMIService = GetObject("winmgmts:\\" + $server + "\root\cimv2")
For each $objItem in $objWMIService.ExecQuery("Select * from Win32_Share",,48)
if $share = $objItem.name
"there shared folder is: " $objItem.path ?
endif
next



I admit, I didn't write ready code but hope that gives you a pointer to the right direction...
_________________________
!

download KiXnet