Jump to content

RunAs logon_flag


Recommended Posts

What does each option in the logon_flag for RunAs function means:

0 - Interactive logon with no profile.

1 - Interactive logon with profile.

2 - Network credentials only.

4 - Inherit the calling processes environment instead of the user's.

Link to comment
Share on other sites

I asked this question because there are instances when option 4 works, while option 2 doesn't. This happens when I try to run Symantec Endpoint Client setup on a machine logged with a limited domain user. Option 2 never worked although the setup ran, but a message appeared complaining about priviliges, while option 4 ran the setup with administrator credentials and installed the client, successfully.

The command is: RunAs("AdminUser" "Domain", "AdminPassword", 4, "\\Server\Sharename\Setup.exe")

Link to comment
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
 Share

  • Recently Browsing   0 members

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