Ok, so that will allow me to connect, but I was using the other method because the Microsoft Platform SDK recommended the other way for elevating priveleges. Which brings me to the REAL HURDLE.
When I run this script on the local PC (with . as the strComputer) I get all the mapped drives on the computer, but when I run it locally via this script it will only show me the physical drives on the computer.
I am only interested in the network drives, so my query will end up like this:
SELECT Name, ProviderName FROM Win32_LogicalDisk where drivetype = 4
When I run this remotely it returns nothing.
Locally it provides me a list of all my mapped network drives.
Main Topics
Browse All Topics





by: merowingerPosted on 2008-03-04 at 12:41:23ID: 21044892
why don't you take the following object?
Select allOpen in new window