So I am a real newbie at this and could really use some help. In my company we have user accounts and admin accounts set up for those in my department. We are always logged into our normal user accounts. There are some powershell scripts I need to run as my admin account. The shift+right click on the file doesn't give me the option to "Run as different user".
So I am trying to figure out a script I can put at the beginning of the script that would prompt myself or anyone else who uses it to log in with their AD account before the script is ran.
Thanks