AutoITMissouri Posted June 5, 2010 Share Posted June 5, 2010 Hello Gurus, I am new to this site. Tried to find some simple stuff but am not able to do it. Scratching my head since pass three days. This is for windows 7. I would like to have logoff button instead of shutdown option on the start menu. I have over 250 machine needging to this. I am also the administrator of all the computer. I can push the script automatically on all the computer and run the script automatically. I just do not have script. Thank you for reading this. Is there any way or possible to do it. I have read from previsous forum saying that I can start gpedit.msc and mouse click option. But i do not know how to get mouse coordinate. Link to comment Share on other sites More sharing options...
JohnOne Posted June 5, 2010 Share Posted June 5, 2010 MouseGetPos() will get you co-orditates of the mouse. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
cmnetworx Posted June 5, 2010 Share Posted June 5, 2010 I would try editing gpedit.msc with these instructionshttp://www.howtogeek.com/howto/7553/remove-shutdown-and-restart-buttons-in-windows-7/Monitor it with regmon,If you can discover the registry settings that it is changing, you could set the values on the pc's via RegWrite.. then have your script ran as a startup item, or if you have a network boot script run it from there..?Hope this helps. Link to comment Share on other sites More sharing options...
AutoITMissouri Posted June 7, 2010 Author Share Posted June 7, 2010 I got this so far running. ShellExecute("gpedit.msc") WinWaitActive("Local Group Policy Editor") send("{down 8}{right}") sleep(1000) send("{down 5}{tab}") sleep(1000) sleep(1000) send("{down 55}") sleep(1000) send("{ENTER}") WinWaitActive("change start menu power button") Can someone tell me how to select "Enabled" radio button and choose from following drop down option -->log off and Apply button??? Thanks in advance Link to comment Share on other sites More sharing options...
AutoITMissouri Posted June 7, 2010 Author Share Posted June 7, 2010 Hello, I have my registry change key and value. I just do not know how to make it work in AUTO it Here is my registry change key and value. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] "PowerButtonAction"=dword:00000001 Thanks for looking at it. I would try editing gpedit.msc with these instructions http://www.howtogeek.com/howto/7553/remove-shutdown-and-restart-buttons-in-windows-7/ Monitor it with regmon, If you can discover the registry settings that it is changing, you could set the values on the pc's via RegWrite.. then have your script ran as a startup item, or if you have a network boot script run it from there..? Hope this helps. Link to comment Share on other sites More sharing options...
enaiman Posted June 7, 2010 Share Posted June 7, 2010 For an admin you're quite in a hurry you don't bother to check the documentation ...here is your answer: http://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Juvigy Posted June 7, 2010 Share Posted June 7, 2010 This is all not good practice. If you have 250 PC's (or more) just put them in a AD group and do a policy on that group. It is all easier then doing it locally on all PC's.That way if you need to change you will have to do a 1 min policy change on the AD and it will be updated on all pcs. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now