Obviator Posted April 1, 2011 Share Posted April 1, 2011 i've been experimenting with power settings on NICs in a non-production environment. Out of the box the NIC is set to sleep, i'm trying to keep it awake. i've checked the registry settings and it's 256, decimal, 0x00000100, Hex. To get what i want i need to set it to 280, decimal, 0x00000118, Hex. The registry key is a REG_DWORD with a Hex value. If i straight change the registry the corresponding "tick" is removed. If i use the MS way and uncheck the tick box, the value is changed in the registry. If i use AutoIt, the registry value is changed but the tick box is not. Using Win7 and AutoIt 3. AutoIt code is: If $mNICPower = "256" then RegWrite("[i put the key in here]", "[i put the name in here]", "REG_DWORD", 280) Endif i put a MsgBox() in after the write to ensure it's written, and it pops up right, but when i check the power settings, the tick box has not changed. Did i miss something here? Dave Link to comment Share on other sites More sharing options...
dufran3 Posted April 1, 2011 Share Posted April 1, 2011 I wonder if it just isn't refreshing the "tick" box after the registry change is made...after the registry change is made, did you try a restart? To see if the tick box is in the proper state? Link to comment Share on other sites More sharing options...
Obviator Posted April 1, 2011 Author Share Posted April 1, 2011 Nope, didn't go there. Just close the boxes and reopen them to check for updating. i'll try that. Thanks, Dave Link to comment Share on other sites More sharing options...
UEZ Posted April 1, 2011 Share Posted April 1, 2011 (edited) I had the same problem with in the network settings. You can disable it in the registry but tick box is still checked.I found the reg key but I couldn't find an accurate way to change it properly.Further, try to change the timezone on Vista+ os...You need to find the reg key where the tick box is controlled.Br,UEZ Edited April 1, 2011 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Obviator Posted April 1, 2011 Author Share Posted April 1, 2011 Surprizibus, Surprizibus!A restart showed the 2 checkboxes under the one i'm aiming for to be empty and the one i took a shot at still checked.When i uncheck it i get another value in the registry key 0x000007e, Hex, 126 decimal. Man this stuff gets confusing fast!Thanks for the tip.DaveUezi just found that changing the time-zone should be easy. Go to: ZDNet and look this over. The New Time Zone Utility spells it out there. Link to comment Share on other sites More sharing options...
UEZ Posted April 1, 2011 Share Posted April 1, 2011 (edited) Well, I know already a dirty hack how to change the timezone using AutoIt without 3rd party tools! Br, UEZ Edited April 1, 2011 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Obviator Posted April 4, 2011 Author Share Posted April 4, 2011 Well, I know already a dirty hack how to change the timezone using AutoIt without 3rd party tools! Br,UEZActually the Time Zone Utility is built into Win7; tzutil.exeRebooting and checking for ">=" 256 solved my issue.Thanks,Dave Link to comment Share on other sites More sharing options...
dufran3 Posted April 4, 2011 Share Posted April 4, 2011 Actually the Time Zone Utility is built into Win7; tzutil.exeRebooting and checking for ">=" 256 solved my issue.Thanks,DaveGlad to hear it! 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