VBS Script to retrieve the Path to the Current Users Profile

The below basic script is an example of how to retrieve the path to the current users local profile.

Set objShell = CreateObject("WScript.Shell")
userProfilePath =  objShell.ExpandEnvironmentStrings("%UserProfile%")
wscript.echo userProfilePath


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.