Jump to content

RunAs() not working under Windows 2000


Recommended Posts

Hi,

I try to work with the RunAs() function on a Samba domain.

I've joined a Windows 200 Pro SP4 workstation and a Windows XP Pro SP3 workstation on my Samba domain (running under Ubuntu 7).

I try to run, for example a command prompt, under a network account.

I use this :

RunAs("myaccount", "mydomain", "mypassword", 1, "cmd.exe", @SystemDir, @SW_SHOW)

It works perfectly on my Windows XP workstation, the cmd.exe interface appears.

I use the same compiled program on my Windows 2000 workstation and nothing appears !

RunAs() returns 0

@error returns 1

@extended returns 1314

Any idea ?

Thanks in advance for you help.

Link to comment
Share on other sites

Hi,

I try to work with the RunAs() function on a Samba domain.

I've joined a Windows 200 Pro SP4 workstation and a Windows XP Pro SP3 workstation on my Samba domain (running under Ubuntu 7).

I try to run, for example a command prompt, under a network account.

I use this :

RunAs("myaccount", "mydomain", "mypassword", 1, "cmd.exe", @SystemDir, @SW_SHOW)

It works perfectly on my Windows XP workstation, the cmd.exe interface appears.

I use the same compiled program on my Windows 2000 workstation and nothing appears !

RunAs() returns 0

@error returns 1

@extended returns 1314

Any idea ?

Thanks in advance for you help.

I'm getting the same issue.

I have/had another thread going See here that I was getting help on but this seems to be the underlying problem.

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...