WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wntRunAsUser and Called Scripts

Keywords: 	 wntRunAsUser Called Scripts Allow new child processes to inherit security privileges.

Question:

I'm trying to call an exe as a currently logged in user but WIL is trying to launch it as a different user because of wntRunAsUser. Therefore I'm getting a runtime error. Is there a way to get around this.

I'm using the following syntax:

AddExtender("WWWNT32I.DLL")
wntRunAsUser(domain, user, password, 2, 0)

Answer:

Set the last parameter of your wntRunAsUser to 1, so that child processes run by Winbatch also inherit the security privileges.

In your previous example, 0 was use. When 0 is set, security privileges are not passed.


Article ID:   W14889
File Created: 2001:11:08:12:40:50
Last Updated: 2001:11:08:12:40:50