Solved

Windows Logon Script Problems

Posted on 2003-12-03
7
167 Views
Last Modified: 2010-04-14
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
Comment
Question by:duemes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 10

Expert Comment

by:ADSaunders
ID: 9866587
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
 
LVL 57

Accepted Solution

by:
Pete Long earned 250 total points
ID: 9866596
Hi duemes,
The script seems OK what are the two VB scripts that are being called doing?

PeteL
0
 

Author Comment

by:duemes
ID: 9866659
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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 6

Expert Comment

by:SlyDog
ID: 9867508
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
 
LVL 57

Expert Comment

by:Pete Long
ID: 9868274
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
 

Author Comment

by:duemes
ID: 10188108
nothing was wrong with the script...the server was on its last leg....ooppss!
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Print Server: NT to 2008 10 598
Windows 8 in a W2K Domain 7 596
VMware converter for windows 2000 server SP4 4 6,278
AD account Auto logoff 1 58
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
By reading this blog, MSPs will gain insight into how to improve communications with their clients as well as establish a more profitable business.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question