Quantcast
Channel: Wsus Package Publisher
Viewing all articles
Browse latest Browse all 3825

New Post: Accessing %appdata% of current user

$
0
0
The hard part is to get the current logon user. What happens if the update is installed when nobody is logon on (scheduled install or "at shutdown") ?

If there is someone currently logged, you can try this VBScript

Once you have the login of the user, you have to browse : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
and compare the content of the value : ProfileImagePath with the login of the current logon user. Once found, you have the "Home Folder" for this user.

Good luck !

Viewing all articles
Browse latest Browse all 3825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>