How do I find 'Profile Path' details?
Can anyone tell me what does \\Server\ShareName\UserName on my system relate to an active directory profile? For instance, when I right click on a Word Document it shows me the path, that is C:\Documents & Settings\ etc, but when I right click on a user profile I cannot get the Profile Path? Can anyone please help.
Re: How do I find 'Profile Path' details?
I dont quite get it, what do you mean exactly? Where do you mean to say you are trying to right click on a profile, are you trying to do it in ADUC?
Re: How do I find 'Profile Path' details?
There is a way to do it, you can use the WMI Win32_Share class in a VBScript program, like the below one for instance:
Code:
strComputer = "Server"
strShare = "ShareName"
Set objWMIService = GetObject("winmgmts::" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colShares = objWMIService.ExecQuery _
("SELECT * FROM Win32_Share WHERE Caption='" & strShare & "'")
For Each objShare in colShares
Wscript.Echo objShare.Path
Next