Posts Tagged ‘Script’

Windows Vista/7: Blank screen after logon

January 26th, 2010 No comments

Recently had this problem at work after I had modified the log on script to add a new printer. You may have noticed in Windows Vista & 7 when you add a network printer a message box pops up asking you to confirm to install the printer driver.

Well our log on script is set to run and complete before the desktop loads, so because the desktop hasn’t loaded yet you never see the pop up message asking you to confirm to install the printer driver. So the PC just sits there with a blank screen waiting for you to click yes or no on a pop up box that you can’t see!

The solution? Log onto the PC using a local account or a network account that doesn’t have a log on script (maybe the network administrator), add all the network printers you need. Log back off and log on as normal. Solved!

Categories: Tips Tags: , , , , , ,

Restart Exchange 2003 script

October 21st, 2009 3 comments

If you need an easy way to restart Exchange 2003 services, copy and paste the following two scripts into text files and name them Exchange-stop.cmd and Exchange-start.cmd (alternatively combine them into one and call it Exchange-restart.cmd). Then run them to stop and start Exchange.

net stop “Microsoft Exchange Information Store” /y
net stop “Microsoft Exchange System Attendant” /y
net stop “Microsoft Exchange IMAP4” /y
net stop “Microsoft Exchange Routing Engine” /y
net stop “Microsoft Exchange POP3” /y
net stop “Microsoft Exchange Management” /y

net start “Microsoft Exchange Information Store”
net start “Microsoft Exchange System Attendant”
net start “Microsoft Exchange MTA Stacks”
net start “Microsoft Exchange IMAP4”
net start “Microsoft Exchange Routing Engine”
net start “Microsoft Exchange POP3”
net start “Microsoft Exchange Management”

Another quick little tip for you, if you’ve got Exchange installed on your Domain Controller with Active Directory, remember to stop Exchange before you shutdown (or add the script to the shutdown procedure) and it will increase the machines shutdown time immensely.

Categories: Tips Tags: ,

Unspammable Email Link

September 30th, 2009 No comments

Ever wondered how those sneaky spammers got your email address. Well they use robots to scan the internet and pick up email addresses off web pages. So if you ever publish your email address on a web page, sooner or later (most likely sooner), you’ll find you Inbox filling up with spam. There is however another way.

Using the following piece of script, you can dynamically write your email address onto the page. It still creates a link, yet spammers robots can’t read it. Brilliant.

To use simply insert the script into the HTML code of your web page and change to reflect your email address.

<script language=”JavaScript”><!–
var name = “name”;
var domain = “”;
document.write(‘<a href=\”mailto:’ + name + ‘@’ + domain + ‘\“>’);
document.write(‘TEXT TO DISPLAY ON WEBPAGE’ + ‘</a>’);
// –></script>

Or use this one to display the address as the email link.

<script language=”JavaScript”><!–
var name = “name”;
var domain = “”;
document.write(‘<a href=\”mailto:’ + name + ‘@’ + domain + ‘\“>’);
document.write(name + ‘@’ + domain+'</a>’);
// –></script>

Originally taken from

Categories: Tips Tags: , , ,