StumpedTechy
Thread Starter
- Joined
- Jul 7, 2004
- Messages
- 7,235
When using Microsofts runas command I get an interesting problem. Anyone know of a workaround (besides the obvious answer of changing our user naming convention which isn't going to happen no matter how hard I try).
When I use the runas command on a machine I can run it as administrator I.E.
Runas /User:OurDomain\Administrator notepad.exe (does not matter what exe I am trying to run) I get the command prompt for a password and it then opens once the password is supplied.
but if I do -
Runas /User:OurDomain\User 01854 notepad.exe it will not work.
I.E. the persons login is User 01854 (note the space in the username)
the only thing I can see is that runas does NOT like the space because if I make a person called User01854 and then do the runas command it works just fine.
Anyone know how to get it to recognize the space as a space and NOT as a break in the command?
When I use the runas command on a machine I can run it as administrator I.E.
Runas /User:OurDomain\Administrator notepad.exe (does not matter what exe I am trying to run) I get the command prompt for a password and it then opens once the password is supplied.
but if I do -
Runas /User:OurDomain\User 01854 notepad.exe it will not work.
I.E. the persons login is User 01854 (note the space in the username)
the only thing I can see is that runas does NOT like the space because if I make a person called User01854 and then do the runas command it works just fine.
Anyone know how to get it to recognize the space as a space and NOT as a break in the command?