Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Anyone get winexit.scr to work in Win7?

04 Mar 2010   #1
dockster

Windows 7
 
 
Anyone get winexit.scr to work in Win7?

Trying to get an idle-timed auto log out. In Win XP, was able to use Winexit.scr. however, can't get it to work in Win7. has anybody had any luck?

I tried editing the applicable registry settings as indicated here: Logoff Screen Saver Does Not Function in Windows NT


Please see my permissions screenshot below.

Why wont this work?

Tried this on WIn7 Ultimate and Home Premium, both 64 bit versions.




Attached Thumbnails
Anyone get winexit.scr to work in Win7?-capture.png  
My System SpecsSystem Spec
.
04 Mar 2010   #2
logicearth

Windows 10 Pro (x64)
 
 

Why do you need a special screensaver for something built in?
(You could also create a scheduled task to do the samething.)


Attached Images
Anyone get winexit.scr to work in Win7?-untitled.png 
My System SpecsSystem Spec
04 Mar 2010   #3
dockster

Windows 7
 
 

This only "locks" the user's workstation and doesn't actually log the user out. Winexit allowed me to:

1) Log out the user entirely.
2) Displayed a message to the uesr.
3) Allowed me to set a countdown in seconds...like 30 seconds, etc.

These three items is what I'm looking for. Haven't found a solution. shutdown.exe /l doesn't work with -t -c flags. And setting that to the idle trigger in task scheduler -- I can't get idle trigger to work in task scheduler.

I'm looking for some help I guess in getting the idle trigger to work. Then I'd just set two tasks, one that displays a message @ 15 minutes, and one that logs the user out at 17 minutes using the shutdown.exe /l.
My System SpecsSystem Spec
.

30 Apr 2010   #4
akira6968

windows 7 32bit
 
 

this taken from How can I: Auto log user off after xx minutes? Shutdown.exe doesn't work with -l -t -c (why not!)

In order for non-administrators to be able to use WINEXIT, you must add Set Value and Create Subkey permissions for the group Everyone on the following registry key:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini
To do this, use the following steps:

NOTE: You must be logged on with administrative rights to make these changes.

1. Start Registry Editor (Regedt32.exe).
2. Open the following key [by right-clicking control.ini]:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini
3. click Permissions.
4. In the Name box, click or add Everyone, and then click the ADVANCED box for special permissions.
5. Click to select the Set Value and Create Subkey check boxes.
6. Click OK, and then click OK.
7. Quit Registry Editor, and then restart the computer.
http://support.microsoft.com/default.aspx/kb/156677


I have personally confirmed this to work on a windows 7 32bit htpc...lovin it :)
now to figure out how to change the message in the logoff box...
My System SpecsSystem Spec
16 Jul 2010   #5
dockster

Windows 7
 
 

In case someone else searches, please see the solution below:
Quote:
Those instructions are not quite correct for Windows 7-64bit (Enterprise)
2. Open the following key [by right-clicking control.ini]:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini

Here is the correct key for which you need to change permissions:
HKEY_Local_Machine\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini

The rest of the instructions are fine.

I've just done it, and it got rid of the the "Error encountered while creating registry key." problem.
My System SpecsSystem Spec
03 Aug 2010   #6
macsupport

Win 7 Ultimate
 
 
What worked here

1) Copied:
WinExit.scr
WinExit.hlp
to
C:\Windows\System32.
You have to have local admin rights to do this.
2) Change Registry as posted above:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini
3) Reboot
4) Login, change your screensaver to LogOff Screen Saver and configure settings.
5) Copy:
C:\Users\<YourProfile>\AppData\Local\VirtualStore\Windows\Control.ini
to
C:\Windows
You have to have local admin rights to do this.
Contents of my control.ini file is:
[Screen Saver.Logoff]
ForceLogoff=1
CountDownTimer=180
DialogMessage=No user activity is being detected. Preparing to log off the
user. ANY UNSAVED WORK WILL BE LOST !!
This seems to apply to all users who have winexit as their screen saver.
Best of Luck
My System SpecsSystem Spec
21 Sep 2010   #7
ShadowT

Windows 7
 
 

I found winexit.scr to be a bit inadequate for my needs so I put together a better version of it and it's now available for free at http://www.grimadmin.com/staticpages.../ss-operations.

It's quite customizable and can be locked down as needed. No need to mess with registry permissions or control.ini.
My System SpecsSystem Spec
21 Sep 2010   #8
dockster

Windows 7
 
 

I know the last time the poster above posted, it was deleted. Mods, please don't delete. I tried it, its actually a good program and is freeware.
My System SpecsSystem Spec
22 Sep 2010   #9
ShadowT

Windows 7
 
 

Thanks for the thumbs up. I do a lot of this stuff for work (scripts, utilities, weird workarounds) and I like to share my work!
My System SpecsSystem Spec
14 Jun 2011   #10
thomasjj

Windows 7 Ultimate x32 and x64, Windows Server 2008 R2
 
 

For those that find this page, as I did, years later :) You can use the following Powershell to automate the Registry Permissions necessary to make Winexit work under Windows 7x64 and Server 2008 R2 x64

Code:
 
# WINEXIT.SCR NECESSARY ACLS
$WinExitAcl = Get-Acl "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\IniFileMapping\control.ini"
$WinExitAcl
$rule = New-Object System.Security.AccessControl.RegistryAccessRule("Users","SetValue, CreateSubKey","ContainerInherit, ObjectInherit","None","Allow")
$WinExitAcl.AddAccessRule($rule)
Set-Acl "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\IniFileMapping\control.ini" $WinExitAcl
My System SpecsSystem Spec
Reply

 Anyone get winexit.scr to work in Win7?




Thread Tools




Similar help and support threads
Thread Forum
Will Win7 OA key work on another computer of same OEM?
My HP laptop died. It came with a Win 7 Pro OA licence. My parents have an old HP workstation that came with WinXP. I wonder whether the laptop licence will work on the workstation, being both from the same brand. Thank's!
Installation & Setup
Can boot with Win7 DVD but once logged into Win7 CD doesn't work
I have an HP laptop nc6400 running Windows 7 SP1. I am having problems with the CD player - it doesn't recognize any CDs I put in! When I try to put in a CD, it ejects the drive and comes up with the message "Please insert a disk". I have a Win7 SP1 (burned) disk. When I put in this disk, and...
Hardware & Devices
Is there a work around if Win7 x32 setup file wont work on Win7 x64
HI, I have dictionary called the Unified Medical dictionary English-Arabic anyway, i have the ISO file i installed it on Win7 x32 with no problem but i tried to install it on Winx64 but it says an error like "the setup file is not compatible with Win7 x64" I tried to search for the...
Software
HP Remote does not work with Win7
No big deal, but I have a nice little remote that came with my HP back in December. It works great with Vista but I cannot get it to work with the windows 7 install. Some of the buttons work but most dont. I have tired to install the drivers from HP multiple times but no luck. Any Ideas? HP...
Media Center
Does this computer work on Win7?
Was wondering whether my computer will work with Windows 7. I have already gone on the website to download the programme from Microsoft that tells you yes or no and I have cleared that test only with the warning that if I choose 64-Bit I will need additional RAM. My only concern is is that someone...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:04.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App