This is the scenario: You have VPN access to a LAN running on a Windows domain. Once you connect through the VPN you don’t want to remote desktop to a machine but you still need access to the shared network drives that you would get via active directory.
So the easiest solution is to create a batch file that will map to to where the shared drive is using proper Windows authentication across the domain. This is what you need in the batch file.
NET USE Z: \\targetIP\drivename password /USER:domain\username /SAVECRED /PERSISENT:YES
So for How To Solutions it could be something like…
NET USE Z: \\192.168.0.1\solutions$ passw0rd /USER:HowToSolutions\admin /SAVECRED /PERSISENT:YES
This assume that…
- 192.168.0.1 – This is the local IP address of the target machine sharing the drive.
- solutions$ – Is the name of the folder on the target machine.
- passw0rd – Is the password used for your username.
- HowToSolutions – This is the Windows domain you’ve VPN’d to.
- admin – Is the username of the Windows account
- SAVECRED – To use credentials previously saved by the user
- PERSISTENT:YES – This will connect the share the next time you logon.
Put the single line in Notepad or something similar and save it as connect.bat. Now whenever you connect remotely to a network you can access the shared drives. It will use your Windows credentials so make sure you have sharing permissions on any folder/subfolders you try and access.
Background
By default Internet Explorer 7 (IE7) includes header and footer text onto web pages that are printed out. This is fine for most users as be default it lists the date & time and the URL. But you may want a clean page when printing or customised text for the date time etc. Here’s the How To Solutions guide.
Removing the Header Footer Text
In Internet Explorer go to File > Page Setup. You’ll see a box like the one below. In the Headers and Footers section you can remove the default text (&w&bPage &p of &P and &u&b&d). Just delete those bits and press OK.

Creating Custom Header Footer Text
You can also create custom header footer text to print out only the information you want to appear on every page. Use the set of functions below to create your own header footer text.
- &w – Window Title
- &u – Page URL
- &d – Date in short format
- &D – Date in long format
- &t – Time in regular format as shown on the clock
- &T – Time in 24-hour format
- &p – Current page number
- &P – Total number of pages
- &b – right align the next text. (You can see it in the default header, where &b is placed before the Page text)
- &b[TEXT]&b – If you surround the text in &b on either side, it will center the text.
- && – A single ampersand (&)
And that’s how to delete or edit the header footer text that appears when printing from Internet Explorer 7.
Ever created a new signature file in Microsoft Outlook and when you go to send a new message an ActiveX control box appears telling you of an error? Here’s a quick fix that will stop the error from appearing but let you keep your fancy signature.
The Error Message
One or more ActiveX controls could not be displayed because either:
1) Your current security settings prohibit running ActiveX controls on this page, or
2) You have blocked a publisher of one of the controls.
As a result, the page may not display correctly.
The Fix
Firstly, let’s locate your signature folder. Copy one of the following lines (starting at the first %) depending on what your operating system is.
- Vista: %userprofile%\AppData\Roaming\Microsoft\Signatures
- XP-2003: %userprofile%\Application Data\Microsoft\Signatures
Click on Start and then Run – paste the line you copied into the Run box and hit Enter.
You should see 3 files created for your signature file (in .htm, .txt and .rtf formats). If you can’t see the file extensions, go to Tools / Folder Options / View and untick ‘Hide extensions for known file types’, or right-click the file and select ‘Properties’ to determine the file type.
Open the .htm signature file in Notepad or any other text editor. Then go to Edit > Find and type in “object”. You should see that the text editor has highlighted a bit of the signature code. Look for the bit that looks something like this:
<OBJECT id=ieooui classid=clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D></OBJECT>.
Simply remove that whole bit – everything from <OBJECT to /OBJECT>. Save the file and to make sure the ActiveX object doesn’t come back I recommend making the file read only – do this by right clicking the file, going to Properties and making ‘Read-only’ checked.
Go back to Outlook and when you go to send a new message, no more annoying ActiveX object warning.
Just the other day I was deleting a few Wordpress comments due to their spammy nature. Unfortunately I marked a very genuine comment as spam and didn’t immediately see a way to recover it. A quick Google search suggested installing myPHPadmin and seeing if I could edit a value in the comment tables, or something similar. However I have found such an easier method…
Firstly, go to your Comments page and then click on the ‘Approved’ link highlighted in the image below.

This will show all of the comments you’ve approved to be shown on your site. What you need to do is go to the address bar in the browser you’re using. It should look something like the image below.

Change the end of the URL so it reads comment_status=spam – see the image below.

Changing the URL and hitting Enter will show you all of the comments that have been marked as spam. Simply select the comment that was accidentally marked as spam and click Approve. The comment will be removed from spam and approved to be shown as one of the comments on your site. Easy as that.