ubicon
asked on
W2K Terminal Services Drops Printers
We are running Windows 2000 SP4 Terminal Services with Windows XP SP2 clients. About once a week the server keeps dropping all of our printers and we must reboot to get them back. Is there any way to stop this from happening?
Thank you
Thank you
I don't know about rebooting, but all you may have to do is restart the Printer Spooler service. If the service fails/stops no printers will be listed.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How does one do an auto reboot in W2K? Do I set it up as a scheduled task?
I simply use a batch file as follows and yes, set it up as a scheduled task.
tsshutdn /REBOOT
You could get it to do a chkdsk while it's rebooting too although this requires an additional file ...
chkdsk c: /f /x <Y
chkdsk f: /f /x <Y ' add for as many drive letters as you have
tsshutdn /REBOOT
There are lots of options for tsshutdn - I suggest you have a look.
the Y is a piped in Y char followed by an enter key press which is used to bypass the need to agree to check the disks at next boot up. You need to create the file in the same folder as your reboot batch command.
You can't just create a file with a Y and an Enter press though. To do this, at the command prompt, type the following ...
copy con Y
Y<ALT>013<CTRL>Z
Type the first line then press enter, then press Y, then hold down the alt key and press 013 (the code for Return) - finally (without pressing anything else), press the Ctrl Z key which will write the file to disk.
Now when you pipe this in to a function in a batch file it will give you a Y followed by an enter key press. Very handy for automating things.
HTH
Ed.
tsshutdn /REBOOT
You could get it to do a chkdsk while it's rebooting too although this requires an additional file ...
chkdsk c: /f /x <Y
chkdsk f: /f /x <Y ' add for as many drive letters as you have
tsshutdn /REBOOT
There are lots of options for tsshutdn - I suggest you have a look.
the Y is a piped in Y char followed by an enter key press which is used to bypass the need to agree to check the disks at next boot up. You need to create the file in the same folder as your reboot batch command.
You can't just create a file with a Y and an Enter press though. To do this, at the command prompt, type the following ...
copy con Y
Y<ALT>013<CTRL>Z
Type the first line then press enter, then press Y, then hold down the alt key and press 013 (the code for Return) - finally (without pressing anything else), press the Ctrl Z key which will write the file to disk.
Now when you pipe this in to a function in a batch file it will give you a Y followed by an enter key press. Very handy for automating things.
HTH
Ed.