AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remotely login in a "local" way...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Tue Apr 24, 2007 5:07 pm    Post subject: Remotely login in a "local" way... Reply with quote

Hi guys!

A number of PCs have started and they are all waiting in the login dialog. Is there any way I can use another PC to make these PCs login locally as if someone was there?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Apr 24, 2007 5:51 pm    Post subject: Reply with quote

just set them to automatically log in in Control Panel.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Tue Apr 24, 2007 7:05 pm    Post subject: Reply with quote

engunneer, it's my bad, I didn't phrase correctly the question. Yes, I know how to automatically login, but sometimes I need to log-off from the initial account, log-in as administrator, do some stuff, log-off from administrator and finally log-in with the first account.
I know how to log-off automatically from all the PCs, but how can I log-in again when the dialog box is displayed (so I don't have to type the admin password over and over again)?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Apr 24, 2007 7:11 pm    Post subject: Reply with quote

you could try having a script running as a service when the system starts (XYNTservice is good for that), but I'd rather type the admin password each time - more secure.

you could also get one of the fingerprint login devices, and configure each computer to log in as admin with it. then you plug in, swipe, and you're in. The device driver should load when it's pulugged in, even from the login screen.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Tue Apr 24, 2007 7:26 pm    Post subject: Reply with quote

engunneer wrote:
you could try having a script running as a service when the system starts (XYNTservice is good for that), but I'd rather type the admin password each time - more secure.


Let's say I put this script in every PC:

Send, administrator
Send, {Tab}
Send, password
Send, {Enter}

Will I be able to remotely execute it if no one is logged in and the login dialog box is displayed or won't Windows let me?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Apr 24, 2007 8:05 pm    Post subject: Reply with quote

you want to execute the login script that resides on the PC from some other PC?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Tue Apr 24, 2007 8:13 pm    Post subject: Reply with quote

engunneer wrote:
you want to execute the login script that resides on the PC from some other PC?

Exactly. I can do something like:
psexec \\pcname -u administrator -p password -i c:\myscript.exe
What I don't know is if the "Send" commands will have any effect... Confused
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Apr 24, 2007 9:08 pm    Post subject: Reply with quote

it may, but windows does things to specifically defeat other programs hitting Ctrl Alt Del.

since you already know about psexec, then I have no useful info for you. Have you tried it? (try a script with a msgbox first)
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Wed Apr 25, 2007 11:27 am    Post subject: Reply with quote

It didn't work. The script did execute, but the Send commands did nothing Crying or Very sad
Back to top
View user's profile Send private message
Lemming



Joined: 20 Dec 2005
Posts: 150
Location: Malaysia

PostPosted: Wed Apr 25, 2007 11:40 am    Post subject: Remote Desktop Reply with quote

Unattended admin logon can be a security risk. Assuming this is XP Pro, have you considered Remote Desktop?

This would ensure the remote PCs are still locked, while your Ahk scripts can still work properly. The Remote Desktop client can be configured to automatically logon as any user, incl admin.

In fact, this is how I access my work PC from home; my work PC contains all my crucial scripts.
Back to top
View user's profile Send private message
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Wed Apr 25, 2007 2:34 pm    Post subject: Re: Remote Desktop Reply with quote

Lemming wrote:
Unattended admin logon can be a security risk. Assuming this is XP Pro, have you considered Remote Desktop?

This would ensure the remote PCs are still locked, while your Ahk scripts can still work properly. The Remote Desktop client can be configured to automatically logon as any user, incl admin.

In fact, this is how I access my work PC from home; my work PC contains all my crucial scripts.


It's just a small school lab with W2K Pro, no big deal about security Wink I want to login locally as if someone was really there to type the information (so I don't have to type passwords in all of them) and then I *will* go to each one and do whatever job I want. All the PCs are in the same room.

Are you saying that with Remote Desktop, I could *see* in my PC the actual admin desktop of the other PCs?
Back to top
View user's profile Send private message
Wizard



Joined: 18 Apr 2007
Posts: 13

PostPosted: Wed Apr 25, 2007 3:36 pm    Post subject: Reply with quote

Oops, W2k Pro can not act as a host, so Remote Desktop won't work Shocked
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 96
Location: Ottawa

PostPosted: Wed Apr 25, 2007 6:01 pm    Post subject: Reply with quote

We are now using Windows XP and there is a utility to unlock the workstation. It works on a stand alone PC and on Novell network but I never tested it in different environement. According to the the document below it works for Win2K.
Ref.
http://www.novell.com/coolsolutions/tools/16947.html

When we had Win2k I was using autoadmin login from from a script launched from a running workstation, It changed the registry setting to do it, reboot pc, run the maintenace .exe undo the autologin and reboot again.
It was done in a few steps:
1 Change registry setting to autologin ,

2 Add a shortcut to the startup folder to run the maintenace application and from this maintenance application undo the autologin and delete the shortcuts and maintenance .exe file. Log file was written

If the PC is on a network you may use shortcuts that a user can click from the workstation. You can than delete the target file after. I did this using call# as the file name so it was easy to manage those file to delete.

Have you looked into NIC card settings about the "wake on lan" feature? Will it simply powerup the pc or can it also be used to start and logon?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group