oshaker Posted May 13, 2009 Posted May 13, 2009 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.
oshaker Posted May 13, 2009 Author Posted May 13, 2009 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")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now