Category: Windows XP Workstation
Remote Desktop Connection – Console (RDP)
Remote Desktop Connection – Console (RDP)
I use Remote Desktop (RDP) to connect to Windows servers and workstations every day(XP, 2000, 2003, 2008, Vista and Windows 7).
However I only occasionally need to connect to the console on the remote computer.
And every time I do I have to look up how to do it again because I can’t remember the syntax. Like today.
So when I looked it up today I just decided to copy the Shortcut I had on my Quick Launch bar and have a second button to connect to the console.
- First, I right clicked on the shortcut, clicked “Copy Shortcut”, this put a new shortcut on my Quick Launch bar but it will work where ever you have a shortcut, including the Start Menu.
- Then, I right clicked the new shortcut and went to properties and change the name to “Remote Desktop Connection (2)” to “Remote Desktop Connection – Console” and added this switch to the end of the target field ” /console” so it looks something like
…….mstsc.exe /console” - Then, I clicked Change Icon on the properties and I picked from the list of icons so the it looked different on the icon menu.
Problem solved, It only took 2 minutes and I can quickly connect to the console via Remote Desktop easily now. (of course this blog took another 10 minutes)
Fixed ActiveX error: Automation Error: the object invoked has disconnected from its clients
Fixed ActiveX error: Automation Error: the object invoked has disconnected from its clients
We have a custom ActiveX Applet we built which was randomly throwing this error, it was happening on a new machine only and it was rather random. Automation Error: the object invoked has disconnected from its clients
Sometimes the error did not happen at all. The new machine had a fresh install of XP on it. Lots of other new XP machines were not running into the problem.
We researched and found that the problem always happened during some sort of usage with the “MSINET.OCX” activex object. This led us to an article on Microsoft’s support site with this article.
http://support.microsoft.com/kb/254908
Turns out the new machine was dual core which somehow caused problems with threading of the object, the problem was fixed on a later version of Visual Studio so if I redeployed the application with the latest MSINET.OCX object it should have worked. As a quick fix though I downloaded a later version MSINET.OCX to the machine and reregistered it so that the system would use that object.
regsvr32 /u msinet.ocx
regsvr32 msinet.ocx
Voila, no more random error.
Print jobs on Remote Desktop wont delete from print queue
Print jobs on Remote Desktop wont delete from print queue
A remote user was logging into their server to do some work from afar.
When they went to print their work some sort of connection problem occurred and when they reconnected they had two local printers in their “Printers and Faxes” window with different sessions, one with a print job (from the disconnected session) and one with no print jobs (from the current session).
When attempting to print again the job would not print and they would disconnect and try again only to find that they now have 3 printers (2 from disconnected session). This went on for a while they tried to delete the print jobs from the queue but the job never deleted, it just stayed in the status of “Deleting” or “Deleting – Paused”. Eventually they ended up with 6 of these printers each with one print job (I am sure they could have put more jobs in a print queue if they really wanted to).
This is the point at which I came in to clear up the issue.
I knew we had to clear out the print queue or that printer would never work.
Here are the steps we had to go through in order to fix it,
- Stop the “Print Spooler” Service. You can do this two ways
- From the Command Prompt (Start -> Run -> Type ‘cmd’ -> Click ‘OK’)
This opens a Command Line Interface, type “net stop spooler” - Open the Services Console (Start -> Control Panel -> Administrative Tools -> Services)
Select “Print Spooler” from the list of Services by double clicking and then click “Stop”
- From the Command Prompt (Start -> Run -> Type ‘cmd’ -> Click ‘OK’)
- Delete all print jobs. You can also do this two ways
- In the open Command Prompt window type del c:windowssystem32spoolprinters*
Type ‘y’ if it asks you if you are sure - In your Windows Explorer window goto C:windowssystem32spoolprinters
Delete all files
- In the open Command Prompt window type del c:windowssystem32spoolprinters*
- Restart the print spooler. Either:
- In the open Command Prompt window type “net start spooler”
- Click the “Start” button on the open “Print Spooler” Service Properties window
There you have it. For those of you that know how you can create a batch file which will quickly do all of this
net stop spooler
sleep for 5
del /Q /F c:windowssystem32spoolprinters*
net start spooler
The “/Q” switch tells the “del” command to delete the files without prompting if it is “ok to delete on global wildcard”
The “/F” switch tells the “del” command to delete the files even if they are marked read only
To get this batch file to work you will need to get the “sleep” program to pause for a few seconds after the service stops so that the system can release the lock it has on the files. If you do not have the sleep program you may find that running the batch file the first time errors out saying it can not access the file. But run it a second time and it works.
Delete Auto Complete Entries From Outlook
Delete Auto Complete Entries From Outlook
You may have noticed email addresses showing up when you start typing an email address to send mail to. This is Outlooks auto complete feature. You may want to remove old email addresses or miss typed email addresses from showing up.
Start a new message & click in the To… box
Start typing the email address you want remove & use the down arrow to select it.
Once it’s highlighted hit Delete & it will be removed.
You can delete all auto complete entries from outlook.
The file is here, where username is unique to your installation: “C:Documents and SettingsusernameApplication DataMicrosoftOutlook”
Delete or rename all *.nk2 files at this location.
Microsoft has a more detailed how to here:
http://support.microsoft.com/?kbid=287623