![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | WMI to get folder paths Hello all, I am looking for a way to use WMI via VBScript to query a remote system for folder paths, specifically to get folders for a user that would equate to folders suchas "My Document", and the users "%UserProfile%" folder. I have used the WMI object browser to see if this is possible and I can find nothing useful. Any and all suggestions are welcome. Thanks in advance. TDM |
My System Specs![]() |
| | #2 (permalink) |
| | Re: WMI to get folder paths "TDM" <rpuffd@xxxxxx> wrote in message news:eZTsZ2IlJHA.4404@xxxxxx Quote: > > Hello all, > > I am looking for a way to use WMI via VBScript to query a remote > system for folder paths, specifically to get folders for a user that would > equate to folders suchas "My Document", and the users "%UserProfile%" > folder. I have used the WMI object browser to see if this is possible and > I can find nothing useful. Any and all suggestions are welcome. > > Thanks in advance. > > TDM sessions. I can see two ways to get them: - You establish a logon session under that user. For this you will need his password. - You query the user's registry hive. For this you will need administrative privileges. Is this what you want? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: WMI to get folder paths "Pegasus (MVP)" <I.can@xxxxxx> wrote in message news:ubfCxFMlJHA.3868@xxxxxx Quote: > > "TDM" <rpuffd@xxxxxx> wrote in message > news:eZTsZ2IlJHA.4404@xxxxxx Quote: >> >> Hello all, >> >> I am looking for a way to use WMI via VBScript to query a remote >> system for folder paths, specifically to get folders for a user that would >> equate to folders suchas "My Document", and the users "%UserProfile%" >> folder. I have used the WMI object browser to see if this is possible and >> I can find nothing useful. Any and all suggestions are welcome. >> >> Thanks in advance. >> >> TDM > Environmental variables such as %UserProfile% are specific to actual user > sessions. I can see two ways to get them: > - You establish a logon session under that user. For this you will need his > password. > - You query the user's registry hive. For this you will need administrative > privileges. > Is this what you want? > > Yes, that should work, and I do have the users password entered by them in a previous section of the script. I was just hoping for a container similar to Win32_Desktop where you can enumerate all profiles on the system, but your proposal should work. Thanks for your reply. TDM |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Certification paths | .NET General | |||
| Folder Paths in Windows Explorer Search Results | Vista file management | |||
| Vim and PowerShell paths | PowerShell | |||
| Looking for function to resolve VirtualStore paths to physical paths | Vista file management | |||
| Looking for function to resolve VirtualStore paths to physical paths | Vista General | |||