Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

Windows Logon Script Problems

Why would this script take a long time to execute on a Windows 2000 machine?

@echo off

net time \\miller /set /yes




rem *************************************************************
if "%OS%"=="Windows_NT" goto WinNT
IF NOT "%OS%"=="Windows_NT" GOTO Win98

:WinNT
copy \\miller\netlogon\PHL_Wallpaper.bmp c:\winnt
copy \\miller\netlogon\logonwallpaper.bmp c:\winnt
net send PHL-concierge "The above workstation has logged on"
wscript \\miller\netlogon\message-2000.vbs
goto end


:Win98
del c:\windows\guest.pwl
del d:\windows\guest.pwl
copy \\miller\netlogon\guest.pwl c:\windows
copy \\miller\netlogon\guest.pwl d:\windows
copy \\miller\netlogon\PHL_Wallpaper.bmp c:\windows
copy \\miller\netlogon\logonwallpaper.bmp c:\windows
\\miller\downloads$\netsend\netsend PHL-concierge "The above workstation has logged on"
wscript \\miller\netlogon\message-98.vbs
goto end
rem **************************************************************

:end
exit



ONLY on a Windows 2000 is it really SLOWWWWW.....
0
duemes
Asked:
duemes
1 Solution
 
ADSaundersCommented:
Hi duemes,
Is it working at all??
I once had a problem with a VVVVV slow logon which turned out to be server could't find the script.
Regards .. Alan
0
 
Pete LongConsultantCommented:
Hi duemes,
The script seems OK what are the two VB scripts that are being called doing?

PeteL
0
 
duemesAuthor Commented:
The script does work, it just take a long time.

It first syncs the time from the server, then copies files from the server (background images) to the destation machine, then it sends a message to the concierge machine letting the desk know that someone has logged on...finally it displays a vbscript that I made displaying all the charges for our service and what you get.....but the problem lies from the begining .....its just really slow at dowing everything....

What I did is remed everything out except for the time sync and still that took a long time....but it didnt even do anything, because a "valid token isnt held by the client" message appears....maybe I'll just give everyone access to change the time...it really isnt a big deal.

Have any other ideas?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
SlyDogCommented:
If you manually run the net time command on one of the workstations, does it take a long time? It may be a name resolution issue. If so, you could try adding  miller and it's associated IP to the workstations host file, and see if that helps.
0
 
Pete LongConsultantCommented:
SlyDog raises a valid point, have you tried REM - ing the lines out one by one to see which is causing the hold up?

Pete
0
 
duemesAuthor Commented:
nothing was wrong with the script...the server was on its last leg....ooppss!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now