Jump to content

How do I find out if I'm running as admin?


Go to solution Solved by Werty,

Recommended Posts

Posted

I need an easy way to test if a script has admin privileges. I could have sworn that I had seen a way to do this, but I can't remember.  A cursory search of the forum didn't give me anything either.

Thanks for your time. :)

  Reveal hidden contents
 
Posted (edited)

@Werty


Awesome! Thank you! I just knew there was an easy solution that I had seen before but I couldn't figure out what it was to save my life.

And one more thing while you're here.

When I fire this code off, nothing happens. I've debugged with message boxes. The paths are correct.
Any idea?

 

Run(@ScriptDir & "\VBoxFiles\Portable-VirtualBox.exe", @ScriptDir & "\VBoxFiles")

 

Edited by Draygoes
I meant to tag Werty.
  Reveal hidden contents
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...