TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Server 2003

Logoff script is waiting too long when computer is disconnected from AD-network

Windows Server 2003

 
 
Thread Tools Display Modes
Unread 10-10-2007, 07:58 AM   #1
ricmik
Guest
 
Posts: n/a
Logoff script is waiting too long when computer is disconnected from AD-network

Hello!

Is it possible to set how long it should take before the logoff script
times out?
When portable computers are taken out of their offices, logoff takes
about 10 minutes (waiting for logoff script).

I don't want to change the timeout value for the logon script.. only
the logoff script.

Any ideas?


Sponsored Links
 
Unread 10-10-2007, 11:02 AM   #2
Pegasus \(MVP\)
Guest
 
Posts: n/a
Re: Logoff script is waiting too long when computer is disconnected from AD-network


"ricmik" <richard@waypoints.no> wrote in message
news:1192001207.947197.80570@50g2000hsm.googlegrou ps.com...
> Hello!
>
> Is it possible to set how long it should take before the logoff script
> times out?
> When portable computers are taken out of their offices, logoff takes
> about 10 minutes (waiting for logoff script).
>
> I don't want to change the timeout value for the logon script.. only
> the logoff script.
>
> Any ideas?
>


Let's have a look at the logoff script!


 
Unread 15-10-2007, 01:02 PM   #3
ricmik
Guest
 
Posts: n/a
Re: Logoff script is waiting too long when computer is disconnected from AD-network

Sponsored Links
On Oct 10, 12:01 pm, "Pegasus \(MVP\)" <I....@fly.com> wrote:
> Let's have a look at the logoff script!


I think the problem is that the computer can't find the server where
the script resides.
Does windows cache scripts?

I'll insert the scripts here anyway..

The script is separated in two parts - the batchfile which is
specified by policy (logoff.bat):
@ECHO OFF
cscript //Nologo %LOGONSERVER%\NETLOGON
\setADcomputerDescriptionLogOff.vbs

The script that is executed from logoff.bat
(setADcomputerDescriptionLogOff.vbs):
Set objSysInfo = CreateObject("ADSystemInfo")

Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)

strMessage = objUser.CN & " " & objUser.physicalDeliveryOfficeName &
" logged off " & Now

objComputer.Description = strMessage
objComputer.SetInfo


Sponsored Links
 
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Disconnected Network Drive problem - Drives lose mapping Bret Windows XP 2 04-12-2007 11:13 PM
Windows XP Disconnected Network Drive problem - Drives lose mapping Bret Windows XP 0 25-09-2007 03:12 AM
'Waiting for Network' Wehttam Windows Mobile 0 28-08-2007 01:47 PM
"Waiting for Network' Wehttam Windows Mobile 2 28-08-2007 01:31 PM
Re: Disconnected Network Drive Rachel L Chipman Windows XP 0 16-08-2007 09:10 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 01:20 AM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional