Jump to content

Add Logoff to Start Menu


Recommended Posts


I believe that option is only available if Fast User Account Switching is enabled. I know that you can't enable it if you are set up to log into a domain however.

You can enable it before you force classic logon, but not sure how you would do it when you have classic logon built into the cd.

logoff2.jpg

Link to comment
Share on other sites

h0dg3s,

One possible way to do this would be with Group Policy. In my initial tests it seems to work.

Start > Run > gpedit.msc

User Configuration > Administrative Templates > Start Menu and Taskbar

Set Add Logoff to the Start Menu to Enabled and make sure Remove Logoff on the Start Menu is "Not configured"

Link to comment
Share on other sites

h0dg3s,

One possible way to do this would be with Group Policy. In my initial tests it seems to work.

Start > Run > gpedit.msc

User Configuration > Administrative Templates > Start Menu and Taskbar

Set Add Logoff to the Start Menu to Enabled and make sure Remove Logoff on the Start Menu is "Not configured"

So how do I add that into an unattended install?

Link to comment
Share on other sites

Well, you could configure the setting in a domain GPO, since it looks like you're in a domain environment.

Otherwise, you may want to try setting the following value in the Default User profile.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"StartMenuLogoff"=dword:00000001

Link to comment
Share on other sites

Well, you could configure the setting in a domain GPO, since it looks like you're in a domain environment.

Otherwise, you may want to try setting the following value in the Default User profile.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"StartMenuLogoff"=dword:00000001

Would that work under HKLM so that it works for all users?

Link to comment
Share on other sites

Actually, I don't think that it would work under HKLM, but I haven't tried it. You could always give it a shot I guess. However, if you modify the Default User profile, it should apply to all newly-created profiles on the machine.

I use images rather than unattended installs, but it seems like you should be able to run a vbscript similar to the one below to modify the profile:

Set oShell = Wscript.CreateObject("Wscript.Shell")
Set oFSO = Wscript.CreateObject("Scripting.FileSystemObject")

enableLogoff

Function enableLogoff
On Error Resume Next
defaultUserDat = "C:\Documents and Settings\Default User\ntuser.dat"
regPath = oShell.ExpandEnvironmentStrings("%windir%") & "\system32\reg.exe"
If oFSO.FileExists(regPath) And oFSO.FileExists(defaultUserDat) Then
tempHive = "HKEY_USERS\def"
command = regPath & " load " & tempHive & " """ & defaultUserDat & """"
oShell.Run command, 0, TRUE
tempLogoffPath = tempHive & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuLogoff"
oShell.RegWrite tempLogoffPath, 1, "REG_DWORD"
command = regPath & " unload " & tempHive
oShell.Run command, 0, TRUE
End If
End Function

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...