locked
How Do You Change Shutdown Button in Windows 7 via command line? RRS feed

  • Question

  • Simple question that the hardware configuration doesn't matter.

     

    Windows 7 Enterprise 64bit. Our AD server is Server 2003, so we cannot do this from there.

    How would I edit the setting for the shutdown button, in the start menu, to be log off via command line?

    I need to do it on 60 machines total so I'd be pushing the script from Altiris 6.9.

    • Edited by Mjg1675 Tuesday, January 11, 2011 8:13 PM
    Tuesday, January 11, 2011 7:41 PM

Answers

  • Change the value Start_PowerButtonAction under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced with reg.exe


    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    • Marked as answer by Leo Huang Wednesday, January 19, 2011 7:35 AM
    Tuesday, January 11, 2011 8:36 PM
  • well there went my response.... writing the current user key is next to impossible without a logon/logoff script, and since you've stated you can't make domain policy changes, you won't be able to introduce script like this without making a gpo edit of some sort

     


    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat.
    My Blog Site: http://tmagnuson.wordpress.com

    • Proposed as answer by Tim Magnuson Tuesday, January 11, 2011 8:53 PM
    • Marked as answer by Leo Huang Wednesday, January 19, 2011 7:35 AM
    Tuesday, January 11, 2011 8:52 PM

All replies

  • Can't do it from there????  Adding the group policy management features on a windows 7 client gives you the new gp editor so you can create/modify windows 7 policies without a 2008 domain.
    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat. My Blog Site: http://tmagnuson.wordpress.com
    Tuesday, January 11, 2011 8:10 PM
  • Can't do it from there????  Adding the group policy management features on a windows 7 client gives you the new gp editor so you can create/modify windows 7 policies without a 2008 domain.
    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat. My Blog Site: http://tmagnuson.wordpress.com


    I can indeed do it from there, but I need to do it on 60 machines total so I'd be pushing the script from Altiris 6.9.

     

    Tuesday, January 11, 2011 8:12 PM
  • sooo why wouldn't you create a domain policy that does what you want and apply it to the ou or ou's containing your clients?  im failing to see what the problem is.
    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat.
    My Blog Site: http://tmagnuson.wordpress.com
    Tuesday, January 11, 2011 8:15 PM
  • sooo why wouldn't you create a domain policy that does what you want and apply it to the ou or ou's containing your clients?  im failing to see what the problem is.
    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat.
    My Blog Site: http://tmagnuson.wordpress.com


    My bad. I'm in a corporation where we're separate from the main Domain, but are still on it. We cannot modify the server.  So we have to do this edit locally, but because of the amount of machines that I have to do this on, I'd like to do it from command line.

    Tuesday, January 11, 2011 8:19 PM
  • Change the value Start_PowerButtonAction under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced with reg.exe


    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    • Marked as answer by Leo Huang Wednesday, January 19, 2011 7:35 AM
    Tuesday, January 11, 2011 8:36 PM
  • Change the value Start_PowerButtonAction under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced with reg.exe


    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/

    So how would I do this via command line to designate log off?
    Tuesday, January 11, 2011 8:38 PM
  • well there went my response.... writing the current user key is next to impossible without a logon/logoff script, and since you've stated you can't make domain policy changes, you won't be able to introduce script like this without making a gpo edit of some sort

     


    Ok, so I changed my name...you can still call me Tom if you like. It's a...jump...to conclusions...mat.
    My Blog Site: http://tmagnuson.wordpress.com

    • Proposed as answer by Tim Magnuson Tuesday, January 11, 2011 8:53 PM
    • Marked as answer by Leo Huang Wednesday, January 19, 2011 7:35 AM
    Tuesday, January 11, 2011 8:52 PM
  • set the value "Start_PowerButtonAction" to 1.
    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    Tuesday, January 11, 2011 9:07 PM