SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
RUNAS - Error #3 Null

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
RUNAS - Error #3 Null
Author Message
jayd20



Joined: 19 Sep 2012
Posts: 1
Country: United Kingdom

Post RUNAS - Error #3 Null Reply with quote
I am trying to use the following to add the logged on user to local admins

runas mydomain\adminuser password "cmd /c net localgroup administrators %username% /add"

I get this back

Logging in as mydomain\adminuser..
Setting user environment...
Error #1314 loading user profile! Error ignored
Logged in. Impersonating...
Starting process cmd /c net localgroup administrators correctusername /add...
Error #3: (null)

The user account thats logged in has no admin rights, and I want to use this as part of a scripted installation process. Ie image process finishes user logs on with credentials - this runs to add them to local admin and then a final reboot to finish it all off.
[/code]
Wed Sep 19, 2012 8:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Reply with quote
The error indicates that the specified process couldn't be started. I suggest checking first if any process can be started, for example,

runas mydomain\adminuser password "cmd /c echo %username%"

if that works, then dig into the specific command. If that doesn't, check Windows security event log for the associated messages, perhaps they can shed some light.
By the way you don't need cmd /c to start net.exe, net.exe is a program not a DOS command.
Wed Sep 19, 2012 11:06 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.