Solved

Windows Logon Script Problems

Posted on 2003-12-03
7
164 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

912 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now