Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Auto Logon on reboot

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,55476
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Auto Logon on reboot
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Auto Logon on reboot - 1/15/2008 6:17:08 PM   
  avkuvalekar

 

Posts: 13
Score: 0
Joined: 11/8/2007
Status: offline
Hi people,

This is a pretty weird requirement I believe. If any of you can help me with anything it would help me a great deal.
As the topic says, I need the windows machiens to auto logon on reboot. The standard method of registry tweaking is
not allowed to me as it exposes the password in txt format.
On every monday morning, when the server reboots I login to the console and interactively login to all the servers.
There are about 25 of those and obviously I would like to automate this process. So, can you guys suggest me
anything? I think the best thing would be to put a script on the server which will login the user on reboot and
not expose the password in text in registry. The password can be stored in text in the script as it is allowed.

Alternatively, if I am connecting to the server, is there any way by which I can send the user name and pwd to
the server so that it logs in?

Hope someone helps me with this one. :)

Thanks!
 
 
Post #: 1
 
 RE: Auto Logon on reboot - 1/16/2008 1:32:55 AM   
  twilliamsen

 

Posts: 195
Score: 0
Joined: 1/18/2007
Status: offline
No cannot be done without registry tweaking since Windows Servers need CTRL + ALT + DEL pressed, otherwise it wouldn't be secure

(in reply to avkuvalekar)
 
 
Post #: 2
 
 RE: Auto Logon on reboot - 1/16/2008 4:20:14 AM   
  Rischip


Posts: 468
Score: 2
Joined: 3/26/2007
Status: offline
Download TweakUI. It can do autologon settings and save the password encrypted in a protected area.

_____________________________

Rischip
Author of - The Grim Linker

(in reply to twilliamsen)
 
 
Post #: 3
 
 RE: Auto Logon on reboot - 1/16/2008 4:24:41 PM   
  avkuvalekar

 

Posts: 13
Score: 0
Joined: 11/8/2007
Status: offline
Hi guys,

thanks a lot for the reply. I have thought of one more method which I think should be possible. I would like to know more about it from you guys.
I know that using vbscript we can edit the registry contents. For autologon you need to tweak the registry contents a bit. So, I have thought of writing
a script that will run one minute before the reboot (my reboot is a scheduled task) and change teh contents of registry. Following this, on reboot
a new script will run to remove the contents of the registry and lock the screen. Can any of you tell me if this sounds possible? In the sense, can vbscript
edit any contents in the registry?

Also, I have found an ADM file which kind of does the auto login.
Does anybody have an idea about teh ADM files and how one can use them?

< Message edited by avkuvalekar -- 1/16/2008 4:27:21 PM >

(in reply to Rischip)
 
 
Post #: 4
 
 RE: Auto Logon on reboot - 1/17/2008 8:21:33 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
The registry method would certainly be possible. Not familiar enough with ADM files to say.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to avkuvalekar)
 
 
Post #: 5
 
 RE: Auto Logon on reboot - 1/17/2008 11:10:50 AM   
  Parabellum


Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
ADM files are Administrative Template files.
They are used in conjunction with Group/local policies to alter registry settings.
It is certainly possible to do what your wanting using Policies and ADM files, but if you have no experience at all with ADM files, i would stick with the VBS.
An ADM file is basicaly a list of settings. It consists of several bits of information, one being the part of the registry affected,  but you also need to tell it how it will be read by the policy editor.
Eg.. what category it exists under (eg user or machine setting) then where it the policy editor it can be found... eg.... User Configuration > Administrative Templates > Windows Explorer etc
also it needs strings specified for what us to be displayed by the policy editor GUI, and then the actual values themselves, presented in the appropriate manner.. eg checkbox, dropdown list radio button etc.

as for how to use them.... you would opejn up the policy editor ... right click on the administrattive templates folder under the approiate section... (either computer Configuration or User) and the Add a template file (adm file)

There are lots of examples of how to make your own adm files on the net... butas i said before.... if your not familiar with them, i would stick with VBS.


< Message edited by Parabellum -- 1/17/2008 11:13:36 AM >

(in reply to avkuvalekar)
 
 
Post #: 6
 
 RE: Auto Logon on reboot - 1/17/2008 11:38:04 AM   
  Parabellum


Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
here's another idea...

you could use a combination of this software.. (logon.exe)

http://www.softtreetech.com/24x7/archive/51.htm

with something like psExec to remotely auto logon all the PC's via a script.

eg a batch file with the folowing commands..

psexec \\server1 Logon.exe -u Username -p yourpassword
psexec \\server2 Logon.exe -u Username -p yourpassword
psexec \\server3 Logon.exe -u Username -p yourpassword

better still use vbs and have it prompt you for the password.. and not have to code it anywhere!

(in reply to Parabellum)
 
 
Post #: 7
 
 RE: Auto Logon on reboot - 1/18/2008 5:26:35 AM   
  Rischip


Posts: 468
Score: 2
Joined: 3/26/2007
Status: offline
I like Parabellum's idea. If it works. That way you are as secure as you can be...
No password in the registry whether encrypted or not. No password embedded in a script.
The only problem I have with this solution is PSEXEC will send your password across the network in plain text.

_____________________________

Rischip
Author of - The Grim Linker

(in reply to Parabellum)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Auto Logon on reboot Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts