03-16-2017 09:26 AM
Hello,
I can't seem to find the answer when doing a search on the forum; however, I would like to remote login and launch TestStand sequence. Right now, whenever I launch the sequence, TestStand would prompt the login screen.
I know that I can disable or remove the login, but how do I like login through a specific user through command prompt.
I tried using the AutoMgr option in dcomcnfg and it's still popping up. Is there an option that I'm missing?
Any help is much appreciated.
Solved! Go to Solution.
03-16-2017 10:12 AM
Update:
I found a partial solution:
How Can I Disable User Management in TestStand?
However, this only automatically logs in a user. I want to know if it is possible to choose the login type using a command prompt.
03-17-2017 01:47 PM
Hi b1ack1otus,
When you say choose the login type, do you mean change the user name for the login? Or is it more choosing permissions of the login?
Thanks,
ShaneK
Applications Engineering
03-18-2017 03:25 PM
But that link is your solution, I guess.
RunState.Engine.CurrentUser = RunState.Engine.GetUser("user_name")
In practice you just need to change user names to be logged in. You can define them in config file, then read from it, and set the name what should be logged in. And if you want to use also command line for it, let that bat file change name of user to logged in.
Is this the solution what you need, or you need something else please?
03-20-2017 07:48 AM
Hello ShaneK,
when I say choose the login type would mean like ... if I remote login to a computer and want to launch the sequence, it would require me to login as administrator or other users we created. However, is it possible to login from the command prompt? Like choose who logs in through the command prompt?
let's say do have an executable that launches a sequence file such that the command I use to launch the exe is below:
./program.exe
Once the exe is launched and loads the sequence, it would launch the login screen. However, since I'm launching the executable remotely, I would not be able to enter the password since it is not accessible through command prompt.
Not sure if I make it any clearer.
03-20-2017 07:50 AM
So are you suggesting that the only way for us to change the user login is through a .bat file if we want to do it remotely?