Sign in to follow this  
Followers 0
evilertoaster

IsAdmin() on remote computer

4 posts in this topic

Anyone know how to use a command like IsAdmin() on a remote PC? (too see if you are an admin of it)

Share this post


Link to post
Share on other sites



Anyone know how to use a command like IsAdmin() on a remote PC? (too see if you are an admin of it)

as long as file sharing is enabled (it should be if you're doing stuff "remotely", then check to see

FileExists(\\remotename\admin$\explorer.exe)

Since admins have access to the hidden admin$ share :D


"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110

Share this post


Link to post
Share on other sites

as long as file sharing is enabled (it should be if you're doing stuff "remotely", then check to see

FileExists(\\remotename\admin$\explorer.exe)

Since admins have access to the hidden admin$ share :D

Ok thanks for the idea...I will use that in the mean time but really in this case it isn't always right all the time is it? For instance in my situation we have some 'power user' groups that have extensive file-level permisions but are not administrators. (since the admin$ share is really just the %systemroot% ins't it?)

I guess i coudl systematically check a number of things like registry access, files access, debug permisisons ect...is that what the IsAdmin command does anyways? (is that part of autoit open source?)

Share this post


Link to post
Share on other sites

But even with file permissions set, I think that only true administrators have SHARE permissions to admin$...but I'm not at a computer that's able to tell me right now...Check on one of yours - look at the share permissions rather than the file access permissions.


"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0