Questions tagged [logoff]

The tag has no usage guidance.

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
2 answers
2k views

Log off as local "administrator" user, get blank login screen

I have an imaged lab environment running Windows 7 and attached to a domain. The local Administrator account is enabled for certain maintenance and prep tasks. Every time I logoff from the local ...
Force Flow's user avatar
  • 4,116
3 votes
0 answers
11k views

Run a program before Logoff and wait for finish

When I want to run a program (.exe \ .bat) before Windows 7 Home Premium Logoff \ Restart I use the Task Scheduler and I set a custom event: Log: System, Source: Winlogon, Event ID: 7002 \ 4634 \ 4647 ...
user3133076's user avatar
3 votes
2 answers
4k views

No signal after log off/ switch user

Periodically my monitor will go black and display "no signal" before turning off (power save mode) when I log off Windows or switch users. It doesn't do this every time, although most of the time the ...
ElvisFanTCB's user avatar
2 votes
0 answers
351 views

How to keep WSL running after locking your PC or switching the screen off?

I want to keep some code running for a while on my Windows 11 computer with WSL2. However, if I hit Win+L to lock the computer or switch the screen off, the WSL seems to just freeze and resumes only ...
Marijus Ambrozas's user avatar
2 votes
1 answer
7k views

Executing a batch script on Windows 10 shutdown/logoff/reboot

First off, sorry. This is a re-post of my original question asked on "stackoverflow", but I have tried to get moderators to move it, due to the question being more a general windows behavior issue ...
Henrik Nielsen's user avatar
2 votes
1 answer
7k views

How to stop Windows from ever automatically logging off the current user?

I have several MS Surface Pro tablet PCs running Windows 10 Pro that are being used as time clocks. I do not want employees coming to work only to find that the time clock is sitting on a login screen....
Joe Gayetty's user avatar
2 votes
2 answers
790 views

AppleScript to logoff Mac user after closing an application?

I've configured a local user account on an iMac (Lion) to immediately launch Firefox to a specific page after logging in – the page contains a survey to be completed by the user. This works fine. ...
JDF's user avatar
  • 21
2 votes
2 answers
703 views

Log-off Scripts in Windows 7

I have Public machines that I need to run log-off scripts, which are in Perl. I want the script to run for a Standard user. It seems that the UAC is blocking this from happening. So, I have turned the ...
chrsblck's user avatar
  • 191
2 votes
0 answers
2k views

Allow Non Administrator User To Launch iTunes When Another User Already Has iTunes Open

On My Windows 7 machine I have two user accounts, one Admin account for myself and one regular account for my wife. Both of us use iTunes to manage our separate music libraries and Apple devices. ...
JonnyReeves's user avatar
2 votes
1 answer
15k views

My computer keeps logging out by itself (Windows 8)

This started happening a few hours ago. I will be using my computer and it just automatically logs out. It seems to occur when there are memory intensive tasks occurring. It's getting really ...
Joel Dean's user avatar
  • 587
1 vote
0 answers
477 views

How to Replace Shutdown command with Switch User+Monitor off

When I click on shutdown on start menu, I want my Windows 8.1 computer to do: 1- Switch User (As long as lock keeps computer going on with normal power, while executables are running, it's also ...
Lulili's user avatar
  • 19
1 vote
0 answers
128 views

Modifying default behavior of 'Logoff' Windows 7 Pro

I have an appliance that runs windows 7 pro, and is very locked down as to what a user is able to do. When it is running in the standard case, the only options the user has are logoff, restart, or ...
Dan P's user avatar
  • 41
1 vote
1 answer
396 views

Is there a script "to log remote users off and after log them off to delete their profiles?

I found 6 simple scripts (.bat and .vbs) for remote pcs (Win XP and 7) to Clean Profile properly and faultlessly: Script: sending Ping to check Remote PC On or Off (.bat) Script: checking who logged ...
serdar's user avatar
  • 645
1 vote
0 answers
1k views

Run task at logoff and wait until it finishes

I am running a Windows Vista (no gpedit.msc unfortunately) computer and I want to run a backup at logoff. So, when the user tries to shutdown the computer, I want to run a .bat file which executes the ...
Paya's user avatar
  • 257
1 vote
0 answers
373 views

Active Directory Auto Logoff Timer

I'm experimenting with an Active Directory Domain at home (Win Server 2012 Domain Controller). After joining my Windows 8 Pro (x64) PC to my domain, I am getting automatically logged off after being ...
Brack's user avatar
  • 419
1 vote
2 answers
368 views

Intermittent problems switching users

My Windows Vista x64 machine (not joined to any domain) has intermittent problems switching users. Sometimes, for no apparent reason, it decide that the "Switch User" option off of the Start menu or ...
Josh Kelley's user avatar
  • 1,537
0 votes
1 answer
816 views

Use Domain GPO to run local batch file on logoff - Is it possible?

What I want to accomplish: When a user logs off a machine and is not on the domain, the contents of the recycling bin are deleted. How this is currently done and works on domain: Domain GPO > User ...
DeltaSun510's user avatar
0 votes
1 answer
767 views

How to run a script at logon/logoff of one specific user in Windows 10 without using GPO?

I have a set of computers which are used by several users. One one of those computers I need to map a drive for two users (and only for those two users). My idea was to run a script on logon of either ...
Joe's user avatar
  • 313
0 votes
0 answers
40 views

PC randomly logs off

My windows10 HP pc randomly logs off for no apparent reason. I have disabled all sleep settings and screensavers yet it still does it randomly without warning or any kind of error message, my ESET ...
Edward Muniz's user avatar
0 votes
1 answer
327 views

Windows XP log off script not running

I've written two .cmd scripts - "logon.cmd" and logoff.cmd" I've set the "logon.cmd" to run using the gpedit.msc. Similarly I've done so with the logoff.cmd. My logon script runs fine but my logoff ...
himahimahima's user avatar
0 votes
0 answers
63 views

How does Windows 7 handle leaving programs open when you log out and opening them again when you log back in?

There was a user at work whom was concerned that someone had broken into his/her computer because windows were opened on her desktop upon her arrival. However; what really happened was that windows ...
leeand00's user avatar
  • 22.4k
0 votes
1 answer
105 views

How can I trigger all running non-Windows processes to close?

In Windows, when you choose the Log Off power command, sometimes it will hang on a process and let you cancel logging off. It then takes you back to your desktop, where all processes other than the ...
Craig's user avatar
  • 941
0 votes
0 answers
70 views

(Windows 8) Change power button to log off

Ways to accomplish this. Perhaps using group policy, registry editor, windows settings, and etc. Since windows 7 configurations differ somewhat from windows 8, the settings that worked for windows 7 ...
NYCity's user avatar
  • 11
0 votes
1 answer
3k views

windows 7 rdp logon - run one program and auto logoff

I wish to allow one user to use RDP and logon to my Windows 7 machine. The user should be put directly into one program and when the user exits the program, the user is to be automatically logged out....
willc's user avatar
  • 1
0 votes
1 answer
905 views

Run a .bat file upon logoff, windows XP, no domain controller

I have a standalone windows XP machine which is using pGina 1.8.8 to authenticate. Users log in using a single-sign-on ID (from LDAP) and are then logged into windows XP pro. I have a batch file which ...
user avatar
0 votes
2 answers
362 views

Sound does not play when locking WinXP

If I press the Windows-L combination to lock my PC the "Windows Logoff" sound does not play. It used to but at some point it stopped. I installed only trustworthy apps on my system and it is pretty ...
Christopher's user avatar