Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Scheduling desktop logoff - can this be done?

Reply
Thread Tools Display Modes

Scheduling desktop logoff - can this be done?

 
 
ISDPCMAN
Guest
Posts: n/a

 
      05-01-2010
We have a new legal requirement to make sure system users logoff their
PC's daily (most just leave their user accounts signed in.)

Is there a way to have a group policy or script that will, say, call
something like:
Shutdown -l -f -t 5
(i.e. force a logoff of a user account on their domain member
workstation) at a given time each day? We would like to run this at
6:30PM each evening of the week.

Any ideas are appreciated.
 
Reply With Quote
 
 
 
 
Meinolf Weber [MVP-DS]
Guest
Posts: n/a

 
      05-01-2010
Hello ISDPCMAN,

You can add a aschedueldd task that contains the logoff or shutdown time
create a startup script like logoff.bat:

------------------------------------
;Create the scheduled task on remote workstation's
if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe
/l /t 600 /c "You will be logged of in 5 minutes, please save all your data.
Your Administrator." /f

:Copy the shutdown.exe to remote workstation
if not exist %systemroot%\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe"
"%systemroot%\system32\shutdown.exe"
------------------------------------

BUT keep in mind if users have programs open or unsaved data they loose it,
so INFORM them about the running task BEFORE adding it.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> We have a new legal requirement to make sure system users logoff their
> PC's daily (most just leave their user accounts signed in.)
>
> Is there a way to have a group policy or script that will, say, call
> something like:
> Shutdown -l -f -t 5
> (i.e. force a logoff of a user account on their domain member
> workstation) at a given time each day? We would like to run this at
> 6:30PM each evening of the week.
>
> Any ideas are appreciated.
>



 
Reply With Quote
 
Andrei Ungureanu
Guest
Posts: n/a

 
      05-03-2010
I think it's better to have something that will put the computers in
standby.

Andrei.

"Meinolf Weber [MVP-DS]" <meiweb@(nospam)gmx.de> wrote in message
news: .com...
> Hello ISDPCMAN,
>
> You can add a aschedueldd task that contains the logoff or shutdown time
> create a startup script like logoff.bat:
>
> ------------------------------------
> ;Create the scheduled task on remote workstation's
> if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su
> shutdown.exe /l /t 600 /c "You will be logged of in 5 minutes, please save
> all your data. Your Administrator." /f
>
> :Copy the shutdown.exe to remote workstation
> if not exist %systemroot%\system32\shutdown.exe copy
> "\\domainname\netlogon\shutdown.exe" "%systemroot%\system32\shutdown.exe"
> ------------------------------------
>
> BUT keep in mind if users have programs open or unsaved data they loose
> it, so INFORM them about the running task BEFORE adding it.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> We have a new legal requirement to make sure system users logoff their
>> PC's daily (most just leave their user accounts signed in.)
>>
>> Is there a way to have a group policy or script that will, say, call
>> something like:
>> Shutdown -l -f -t 5
>> (i.e. force a logoff of a user account on their domain member
>> workstation) at a given time each day? We would like to run this at
>> 6:30PM each evening of the week.
>>
>> Any ideas are appreciated.
>>

>
>

 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      05-03-2010
I beleieve you will need to insert a /f (Force) in the event there are open
tasks.

--
Paul Bergson
MVP - Directory Services
MCITP - Enterprise Administrator
MCTS, MCT, MCSE, MCSA, MCP, Security +, BS CSci
2008, Vista, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewGroups. This
posting is provided "AS IS" with no warranties and confers no rights.
"Meinolf Weber [MVP-DS]" <meiweb@(nospam)gmx.de> wrote in message
news: .com...
> Hello ISDPCMAN,
>
> You can add a aschedueldd task that contains the logoff or shutdown time
> create a startup script like logoff.bat:
>
> ------------------------------------
> ;Create the scheduled task on remote workstation's
> if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su
> shutdown.exe /l /t 600 /c "You will be logged of in 5 minutes, please save
> all your data. Your Administrator." /f
>
> :Copy the shutdown.exe to remote workstation
> if not exist %systemroot%\system32\shutdown.exe copy
> "\\domainname\netlogon\shutdown.exe" "%systemroot%\system32\shutdown.exe"
> ------------------------------------
>
> BUT keep in mind if users have programs open or unsaved data they loose
> it, so INFORM them about the running task BEFORE adding it.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> We have a new legal requirement to make sure system users logoff their
>> PC's daily (most just leave their user accounts signed in.)
>>
>> Is there a way to have a group policy or script that will, say, call
>> something like:
>> Shutdown -l -f -t 5
>> (i.e. force a logoff of a user account on their domain member
>> workstation) at a given time each day? We would like to run this at
>> 6:30PM each evening of the week.
>>
>> Any ideas are appreciated.
>>

>
>



 
Reply With Quote
 
ISDPCMAN
Guest
Posts: n/a

 
      05-03-2010
Definitely not STANDBY. We need to log users off for a number of
reasons but primarily so we can update settings and software on the
system as well as making sure licenses to software that might be in
use are released (this happens when the user is logged off.)

We also would like to add a comment to the shutdown that shows that
the user did not logoff themselves but the system logged them off.
Management will want a report on this. All Logins are audited on these
networks.

On Mon, 3 May 2010 11:29:50 +0300, "Andrei Ungureanu"
<> wrote:

>I think it's better to have something that will put the computers in
>standby.
>
>Andrei.
>
>"Meinolf Weber [MVP-DS]" <meiweb@(nospam)gmx.de> wrote in message
>news: t.com...
>> Hello ISDPCMAN,
>>
>> You can add a aschedueldd task that contains the logoff or shutdown time
>> create a startup script like logoff.bat:
>>
>> ------------------------------------
>> ;Create the scheduled task on remote workstation's
>> if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su
>> shutdown.exe /l /t 600 /c "You will be logged of in 5 minutes, please save
>> all your data. Your Administrator." /f
>>
>> :Copy the shutdown.exe to remote workstation
>> if not exist %systemroot%\system32\shutdown.exe copy
>> "\\domainname\netlogon\shutdown.exe" "%systemroot%\system32\shutdown.exe"
>> ------------------------------------
>>
>> BUT keep in mind if users have programs open or unsaved data they loose
>> it, so INFORM them about the running task BEFORE adding it.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>
>>> We have a new legal requirement to make sure system users logoff their
>>> PC's daily (most just leave their user accounts signed in.)
>>>
>>> Is there a way to have a group policy or script that will, say, call
>>> something like:
>>> Shutdown -l -f -t 5
>>> (i.e. force a logoff of a user account on their domain member
>>> workstation) at a given time each day? We would like to run this at
>>> 6:30PM each evening of the week.
>>>
>>> Any ideas are appreciated.
>>>

>>
>>

 
Reply With Quote
 
ISDPCMAN
Guest
Posts: n/a

 
      05-03-2010
There is one there...at the end of the statement (last argument in the
SHUTDOWN.exe line)

On Mon, 3 May 2010 07:12:23 -0500, "Paul Bergson [MVP-DS]"
<> wrote:

>I beleieve you will need to insert a /f (Force) in the event there are open
>tasks.

 
Reply With Quote
 
ISDPCMAN
Guest
Posts: n/a

 
      05-03-2010
Thanks, Meinolf. Is there a way to add a comment (e.g. "User
Automatically/Forced Logged Off.")



On Sat, 1 May 2010 05:40:19 +0000 (UTC), Meinolf Weber [MVP-DS]
<meiweb@(nospam)gmx.de> wrote:

>Hello ISDPCMAN,
>
>You can add a aschedueldd task that contains the logoff or shutdown time
>create a startup script like logoff.bat:
>
>------------------------------------
>;Create the scheduled task on remote workstation's
>if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe
>/l /t 600 /c "You will be logged of in 5 minutes, please save all your data.
>Your Administrator." /f
>
>:Copy the shutdown.exe to remote workstation
>if not exist %systemroot%\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe"
>"%systemroot%\system32\shutdown.exe"
>------------------------------------
>
>BUT keep in mind if users have programs open or unsaved data they loose it,
>so INFORM them about the running task BEFORE adding it.
>
>Best regards
>
>Meinolf Weber
>Disclaimer: This posting is provided "AS IS" with no warranties, and confers
>no rights.
>** Please do NOT email, only reply to Newsgroups
>** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>
>> We have a new legal requirement to make sure system users logoff their
>> PC's daily (most just leave their user accounts signed in.)
>>
>> Is there a way to have a group policy or script that will, say, call
>> something like:
>> Shutdown -l -f -t 5
>> (i.e. force a logoff of a user account on their domain member
>> workstation) at a given time each day? We would like to run this at
>> 6:30PM each evening of the week.
>>
>> Any ideas are appreciated.
>>

>

 
Reply With Quote
 
Meinolf Weber [MVP-DS]
Guest
Posts: n/a

 
      05-04-2010
Hello ISDPCMAN,

It is included in my example or what kind of comment do you mean?

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Thanks, Meinolf. Is there a way to add a comment (e.g. "User
> Automatically/Forced Logged Off.")
>
> On Sat, 1 May 2010 05:40:19 +0000 (UTC), Meinolf Weber [MVP-DS]
> <meiweb@(nospam)gmx.de> wrote:
>
>> Hello ISDPCMAN,
>>
>> You can add a aschedueldd task that contains the logoff or shutdown
>> time create a startup script like logoff.bat:
>>
>> ------------------------------------
>> ;Create the scheduled task on remote workstation's
>> if not exist %systemroot%\tasks\at1.job at 05:00
>> /every:m,t,w,th,f,s,su shutdown.exe
>> /l /t 600 /c "You will be logged of in 5 minutes, please save all
>> your data.
>> Your Administrator." /f
>> :Copy the shutdown.exe to remote workstation
>> if not exist %systemroot%\system32\shutdown.exe copy
>> "\\domainname\netlogon\shutdown.exe"
>> "%systemroot%\system32\shutdown.exe"
>> ------------------------------------
>> BUT keep in mind if users have programs open or unsaved data they
>> loose it, so INFORM them about the running task BEFORE adding it.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>> We have a new legal requirement to make sure system users logoff
>>> their PC's daily (most just leave their user accounts signed in.)
>>>
>>> Is there a way to have a group policy or script that will, say, call
>>> something like:
>>> Shutdown -l -f -t 5
>>> (i.e. force a logoff of a user account on their domain member
>>> workstation) at a given time each day? We would like to run this at
>>> 6:30PM each evening of the week.
>>> Any ideas are appreciated.
>>>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      05-04-2010
Oh yeah you are correct, my mistake.

--
Paul Bergson
MVP - Directory Services
MCITP - Enterprise Administrator
MCTS, MCT, MCSE, MCSA, MCP, Security +, BS CSci
2008, Vista, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewGroups. This
posting is provided "AS IS" with no warranties and confers no rights.
"ISDPCMAN" <> wrote in message
news:...
> There is one there...at the end of the statement (last argument in the
> SHUTDOWN.exe line)
>
> On Mon, 3 May 2010 07:12:23 -0500, "Paul Bergson [MVP-DS]"
> <> wrote:
>
>>I beleieve you will need to insert a /f (Force) in the event there are
>>open
>>tasks.



 
Reply With Quote
 
ISDPCMAN
Guest
Posts: n/a

 
      05-05-2010
I presume that there is some type of log entry written isn't there? A
comment (like that which is supported with the SHUTDOWN.EXE command)
would write to the system log that the user was forced logged off.
Having this kind of entry (with an error ID code, too) would let us as
the IT support staff, audit and report on the number of instances
where users were not logging off as they're instructed (in some
companies this can be a policy violation)

That's all.

On Tue, 4 May 2010 05:36:00 +0000 (UTC), Meinolf Weber [MVP-DS]
<meiweb@(nospam)gmx.de> wrote:

>Hello ISDPCMAN,
>
>It is included in my example or what kind of comment do you mean?
>
>Best regards
>
>Meinolf Weber
>Disclaimer: This posting is provided "AS IS" with no warranties, and confers
>no rights.
>** Please do NOT email, only reply to Newsgroups
>** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>
>> Thanks, Meinolf. Is there a way to add a comment (e.g. "User
>> Automatically/Forced Logged Off.")
>>
>> On Sat, 1 May 2010 05:40:19 +0000 (UTC), Meinolf Weber [MVP-DS]
>> <meiweb@(nospam)gmx.de> wrote:
>>
>>> Hello ISDPCMAN,
>>>
>>> You can add a aschedueldd task that contains the logoff or shutdown
>>> time create a startup script like logoff.bat:
>>>
>>> ------------------------------------
>>> ;Create the scheduled task on remote workstation's
>>> if not exist %systemroot%\tasks\at1.job at 05:00
>>> /every:m,t,w,th,f,s,su shutdown.exe
>>> /l /t 600 /c "You will be logged of in 5 minutes, please save all
>>> your data.
>>> Your Administrator." /f
>>> :Copy the shutdown.exe to remote workstation
>>> if not exist %systemroot%\system32\shutdown.exe copy
>>> "\\domainname\netlogon\shutdown.exe"
>>> "%systemroot%\system32\shutdown.exe"
>>> ------------------------------------
>>> BUT keep in mind if users have programs open or unsaved data they
>>> loose it, so INFORM them about the running task BEFORE adding it.
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>> confers
>>> no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>> We have a new legal requirement to make sure system users logoff
>>>> their PC's daily (most just leave their user accounts signed in.)
>>>>
>>>> Is there a way to have a group policy or script that will, say, call
>>>> something like:
>>>> Shutdown -l -f -t 5
>>>> (i.e. force a logoff of a user account on their domain member
>>>> workstation) at a given time each day? We would like to run this at
>>>> 6:30PM each evening of the week.
>>>> Any ideas are appreciated.
>>>>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
With IE8, Icon Images of Desktop Shortcuts Have White Borders lvkampa Internet Explorer 6 04-08-2010 05:38 PM
How to Sort Desktop Icons Lassar Windows Vista General Discussion 0 03-16-2010 06:12 PM
Windows 7 Desktop Thinks Shared Printer is Offline Stuart Montgomery Windows 64 Bit 3 02-27-2010 05:18 PM
ActiveSync Desktop Stopped Launching Jerry Mickman ActiveSync 0 07-26-2006 02:29 PM
Error while checking out-of-date appointments DNL ActiveSync 4 07-25-2006 03:33 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59