Where does the account live that you are using? Is it local to the workstation or a domain account? You might want to try including the domain. Big security risk though to include your password in the script.

Your use of INSTR() in your IF condition is not a good way to go as you could have false positives.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.