I have a log off script running through the GP. Every time a user shutdown/logs off specific parts of their profile are backed up.
The only problem is I have hard coded the profile path.
In some instances windows changes the profile path, eg,
Windows will concatenate a .000 onto the profile path, or it might concatenate the domain onto the end of the persons profile name.
The concatenation of these values above causes my statically coded values to become redundant. I am now looking for a dynamic solution.
Can anyone suggest a way where I can obtain the profile path of a person through "Kix32" or at very least a .bat file.