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: Log off user with "Fast User Switching" enabled

13 May 2010   #21

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)

Quote   Quote: Originally Posted by kenboy View Post

Windows Star,

Looks like we will have to use your "REMOTE" fix of the "shutdown -o" command to be able to logoff a user when you are sitting right at the machine you need to logon to. It's a shame you had more control with XP than Windows 7. With XP you had the option of inputing another users credentials to log off the current user, even if it would lose any data they had opened, you could still gracefully log them off and service the machine.
I guess I am confused as to why this is not done remotely all the time. I would never go on site to log someone off. When I receive a call I ask for the computer name and remotely log the user off. Why wouldn't you want them to call you, you stay comfortable at your desk and just remotely log them off??? I guess wonder why you would drive to their location to log them off. Or even walk down the hall to the classroom/training room and log them off. Did I miss something??

My System SpecsSystem Spec
13 May 2010   #22

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)

Quote   Quote: Originally Posted by hokieman91 View Post
Hi Everyone - thanks for the suggestions - with regard to the post about FUS being turned off when joined to a domain (that was true of XP but not of Vista and 7 Professional - and while this is an improvment and advantage for some, it simply works against me in a school setting).
PSSHUTDOWN is a utility I use to actually power down all my domain machines left on at the end of the day - the pain of that would be either I would have to hand off that ability to lab admins or man my workstation whenever someone needs a box powered down (again, not ideal).
Many of my classes deal in high end graphics programs (Adobe packages - and we are considering the CS5 package) so I really wanted to have the classes start each period with a max performing box and if 2 or even 1 student is logged in, that presents a problem.
Like kenboy pointed out, "hiding" the option doesn't work since that user would be the only one to be able to unlock the box - still just baffled that the powers at Microsoft missed this??
I have considered the mstsc option of allowing the lab admins to log into a remote desktop session to at least give the PC the log in prompt again but that still keeps the "locked" session live and it also opens ANOTHER port and service I would rather keep closed.
Glad I am not alone in this and hope this thread points out a solution - I am about 1 month away from deciding on whether to deploy 7 with deployment workbench (AWESOME program) or go with the tried and true rollout of XP of my old RIS box -
In my perfect world, I am trying to just make 7 as "maintenance free" as XP was for all those years~
Here are a few more options if you need them:

1 If you know the classroom schedule you could schedule reboots 5 min after each class.
2 If students are using the computer for the whole class (so the screensaver does not start) you can install a special screensaver to log them off when the screensaver starts.
3 If you have lab teachers, admin, helpers etc. You could write a script encrypt it and make all the machines off. Add the script to their desktop and they just need to double click on the script. (Heck I probably have a script like that already written or close to)
4 If I remember right there is 3rd party software that does something just like what you want……just cannot remember the name of it.

I am sure there are other clever ways around this
My System SpecsSystem Spec
14 May 2010   #23

Windows 7

Again, thx for the suggestions~ Like Kenboy, just frustrated there isn't a way to just disable the only thing about 7 that has the potential to hinder it's performance.
While the scripts and screensavers and reboot options all would and could solve the problem, it's just a lot of overhead for a very simple thing of just being able (as a network admin) when and where and if I even want FUS.
With over 1200 total machines to support, I am rarely at my desk to personally log off or run a powerscript to shutdown machines and there are very few staff that have the "knack" to control a lab with that sort of micro-managemant - the "set it and forget it" was there for XP but just a little trickier for 7.
So far, my solution has been (and might stay) to *enable* Interactive Login: Do not display the last user name - and leave it at that - at least that allows the lab admin to reboot the box with credientials if enough users log in and walk away. Just not looking forward to hearing about "why do I have to reboot these machines all the time?"
I know that the sessions are controlled or activated by the TSdiscon.exe in system 32 and I was wondering if there was a reg hack to possibly "limit" the number of concurrent logins? THAT would solve everything - can't find any documentation to hint at that and I find it hard to believe that you could have unlimited sessions in FUS -
Still looking.....
My System SpecsSystem Spec

14 May 2010   #24

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)


Respectfully: Not to put down your workload or your process of getting things done as and Admin, because I know how hard it is, but I am still wondering why you would actually go and touch a machine. We have way over 5000 devices and I nor do other Admins ever go to a machine unless it is absolutely necessary. We use RDP, DameWare, VB Scripts, CMD Scripts or just plain drive mapping to get what we need done. Since you have 1200 machines you should be sitting at your desk with coffee in hand remoted into 5 machines working on them all at the same time. Now, you are fixing 5 machines instead of driving/walking to a single machine and repairing it.

I do understand your issue with Windows 7 and the log-ins, and I have found many annoying things with 7 in respect to the enterprise world where Microsoft came up a bit short. I feel the same as you do how could they have missed this?
My System SpecsSystem Spec
09 Aug 2010   #25

scheduled task to logoff any previously logged in and locked user

Here's a method I've tested:

The script I am using is a slightly modified version of one listed on the MS Technet forums
How to manage Fast User Switching on Domain joined computers?

The script will use the QUERY.EXE executable to query all of the user sessions on the box and pipe the info to a text file. It will then parse the text file for any line containing the "Disc" session state. If it finds any disconnected sessions, it will logoff the session ID associated with that session. It will also write the logoff event to an application event and list the old user and the new user IDs.

I created a test schedule on my test Windows 7 box that kicks off the script on logon. I've successfully tested the process against sessions with open and modified MS documents with no issues.

- need to create the process of each machine (manually or via some automated schedule creation process)
- I needed to create the scheduled task using the local admin account to allow it to logoff the disconnected session. Otherwise, we will get an access denied
- In this state, ANY user will be able to log out another user. Its not limited to just Admins like the XP stations
- It will force close the session, so all unsaved work will be lost
- No warning message will be given that data will be lost
- haven't tested the process against any app other than MS, so further testing will need to be done if this is the path we are going
My System SpecsSystem Spec

 Log off user with "Fast User Switching" enabled

Thread Tools

Similar help and support threads
Thread Forum
How to disable shutdown "all is fail" button on user switching
:) hello I came here to seek on how to customize windows pc to remove that red :mad: button on user switching. Coz you know right now. I am restraining my temper bcoz you know for formality :party: There's alot goin through my head right now like. ...wth?? Standard users are made so that they...
Desktop changes, but only after Fast User Switching
I recently replaced my 1920x1200 display with a 2560x1440, and it seems that since then whenever I do a Fast User Switch from the intial user logon to a 2nd (both Admins), when I logoff User2 and switch back-again to the original user profile, certain of the gadgets and desktop icons move, those at...
Restore "All User" and "Default User" profiles?
*update* Just found out that most of ProgramData's cleared out too. Yea, can't really restore that stuff. Didn't lose anything thanks to my ocd filing system. Sigh....all nighter restoring my system, here I come. So now, changing the focus, please enlighten me as to how this happened? Why...
General Discussion
Fast user switching without password
What I would like is to have the need for passwords to be entered on initial login, but not when switching users. Is this possible?
General Discussion
Fast User Switching for Domain PC's
Wanting to migrate my student lab's to & this summer but need to find a way to "Disable" Fast User Switching - I see the advantage for the home user and maybe even a small office but for students who NEVER log off, I want the machines to run as fast and as clean as possible and NOT have multiple...
General Discussion

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 04:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App