Quantcast
Channel: Rescue Discussions topics
Viewing all articles
Browse latest Browse all 833

Get the user's profile instead of system profile when running a script as administrator

$
0
0

Hello.

 

I am having the following issue. If I deploy a script after I provided admin rights to the session the environment variables change. for instance, %userprofile% will change to something totalñy different.

 

Is there a way to get the actual user's profile path when running a script after deploying admin rights?

 

Thank you!


Viewing all articles
Browse latest Browse all 833

Trending Articles