Sign in to follow this  
Followers 0
Briandr

restart/shutdown

5 posts in this topic

Hi,

Does anyone have any ideas on how through AutoIT or any other scripting language how I could get the following done.

> Enable AutoAdminLogin, specify all values (DefaultUserName, DefaultPassword, DefaultDomainName, AutoLogonCount)

> Logon and initiate restart

> Disable

(I would want to logon and restart twice prior to disabling)

Share this post


Link to post
Share on other sites



You could do that much in ANY scripting language, include plain .BAT files.

Setting up and then removing auto-admin login is just some registry settings. I prefer to schedule the restart via a one-time scheduled task using SchTasks.exe.

If remote registry access and the Task Scheduler service is available to admin users you can do it all remotely over the network to an arbitrary number of machines, too.

:x


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thanks guys. We are moving computers from our workgroup environment over to over AD domain. From what we found two re-boots are needed so all GPO policies apply correctly. Not sure why the extra re-boots are needed. I can force the first re-boot with Altiris through a script, but I need to reboot 2 additional times and the end user has to be taken out of the mix. So that is why I want to autologon and then restart. Then repeat once more and then disable. Thanks.

Jos,

That script looks promising. I am not sure how much I would need to keep. I don't script well at all. Maybe someone can help tweak it for me.

Edited by Briandr

Share this post


Link to post
Share on other sites

Jos,

That script looks promising. I am not sure how much I would need to keep. I don't script well at all. Maybe someone can help tweak it for me.

You don't want to remove much, just look at the STEP cases.

You should be able to run it after updating it with the proper Admin userid/password.

Make sure you use a local admin account only for security reasons.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0