Next Topic

Previous Topic

Book Contents

impersonateUser()

Enter a username, password, and domain for the agent to logon with. This command is used in a procedure before an executeFile(), executeFileInDirectoryPath() or executeShellCommand() that specifies the Execute as the logged on user option. Leave the domain blank to log into an account on the local machine. Use impersonateUser() to run an agent procedure using a credential specified by agent procedure. Use useCredential() to run an agent procedure using a credential specified by managed machine.

Example

impersonateUser("administrator", "********", " ", "All Operating Systems", "Halt on Fail")