Guest ricmik Posted October 10, 2007 Posted October 10, 2007 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?
Guest Pegasus \(MVP\) Posted October 10, 2007 Posted October 10, 2007 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.googlegroups.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!
Guest ricmik Posted October 15, 2007 Posted October 15, 2007 Re: Logoff script is waiting too long when computer is disconnected from AD-network 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
Recommended Posts