Archive for the ‘Tips & Tricks’ Category

VBScript to remove network printers, when RemovePrinterConnection fails and still have time for popcorn and a movie

For the last couple of months, and some months ahead, I am working primarely on migration projects, currently I have just finished developing a lot of scripts to automatically migrate from Novell & ZenWorks to a purely Microsoft environment. So I might share some tips and tricks from my experiences.

Novell LogoTrying to uninstall Novell printers automatically with VBScripting in a login script gave me a headache, for some reason the good old function WshNetwork.RemovePrinterConnection would fail every time trying to uninstall a Novell printer. After some searching and testing I found that by executing a command to RUNDLL32 PRINTUI.DLL,PrintUIEntry, I could successfully uninstall the printers. My personal experience shows no warnings or errors to the user, as long as the computer can still access Novell, however I did have some warning messages appear when the computer could not connect, but the printer was still deleted, and the user could not abort it, so in my book thats a success!

Also i found some examples removing the printers with /dn instead of the /dl that I am using Read the rest of this entry »

Dont forget to google it and take a vacation!

Most experienced consultants use Google daily to find descriptions of problems and solutions, knowing your way around Google and making a good search, can mean the difference between identifying and solving a problem within minutes or hours.

google logoMany times a customer have asked me how to solve a problem, that I didnt know the answer to on the top of my head, after all there is a lot of issues and only so much memory and experience. Not once have I recieved any negative responses from saying “let me do a little research and i will come right back to you”, on the contrary the customer is happy and relieved that I will help them. Dont drop the ball and say “no sorry cant help you”, must customers dont have the time or experience to search for an answer them self, why else would they be asking. Read the rest of this entry »

How to install a SSL certificate backup file on Exchange 2007 and still have time for facebook

The easiest way (I love easy!) to order and install an SSL certificate on Exchange 2007, is to order a SAN (Subject Alternative Name) certificate with AutoCSR meaning you dont have to create a CSR but instead get a certificate backup file (PKCS#12, P12. PFX). You also save time with the SAN because you only use one certificate for all services and can move services from one domain to another in the certificate with no problems.

Make sure you get a SAN certificate including the full domain name(s) you use to access Outlook Web Access, Outlook Anywhere, Autodiscover and any internal servernames using the certificate (usually free).

The Certificate you order should contain something like this:

  • mail.sole.dk and/or owa.sole.dk – for Outlook Web Access
  • autodiscover.sole.dk and any other e-mail domain you use with Autodiscover/OA.
  • MYSERVER01 and MyServer01.domain.local – and any other internal servername that will be using the certificate

Personally I setup servers to respond only to OWA and ActiveSync on the mail./owa. domain, and use all other services like Outlook Anywhere, etc. on the autodiscover. address, this way I can use Forms Based Authentication/Basic with my OWA/ActiveSync website, and NTLM with my other services. You can see more information about this from my previous blogs here. Some people argue for and against having internal server names in the certificate, but I figure if they are free anyways, and might help why not add them – and if security is so much an issue that internal server names must not be revealed, you have other much bigger problems anyway.

Now some simple commands to manipulate Exchange 2007 SSL certificates. (Stolen from the danish Exchange 2007 guide on FairSSL, I co-authored the manual) Read the rest of this entry »

Create a link to Microsoft Offer Remote Assistance and get another free support tool

Remote Assistance When using Microsoft Remote Assistance to help users in a company (why not it’s free), it can be helpfull to have a shortcut to Offer Remote Assistance somewhere handy. But for some reason the only way to find Remote Assistance is by going thru Help in Windows XP. You can however make a small shortcut your self, simply by creating a shortcut and pasting the following link in it. In Vista you can even install a gadget with the Offer Remote Assistance form in it.

Remote Assistance might not be the easiest thing to get working, but once it works it is a nice support tool to have and the best part of it is its free, it comes preinstalled in your clients, so why not use it? Even if you have something else running it is still a free tool to use just in case. Read the rest of this entry »