How To Put A Pause In A Batch Script

Posted: 24th April 2014 by TheGeekPost in Tips & Tricks

Sometimes, we all just need to take a break. Even Batch Files! There never really was a proper built in Pause command for Batch Files. The existing “Pause” command really just halts the script and waits for you to “Press Any Key To Continue”. If you’re looking to put a timed pause in a batch script, you can custom tailor the PING command to do just that.

In this example here, I’m going to make the batch file pause for 10 seconds.

PING -n 11 > nul

Essentially the value after the “-n” switch specifies the number of seconds + 1. This handly little command can come in very useful in many scenarios such as waiting for services or applications to start, login scripts to complete running, etc.

Written By: Amardeep Juneja Review – Stay Away!

Posted: 24th April 2014 by TheGeekPost in Reviews

I recently ported my site over to from 000webhost because apparently my blog is extremely resource intensive for 000webhost’s web servers. In fact, their support advised me I was using more than 20% of their server resources. So I guess they’re still stuck running Pentium 2′s because I’ve never seen my site use that many resources EVER!. But anyways, I ported my site over to, everything seemed to go smoothly, for about a day!.

The next day, I was having constant server outages on my site, and Google Webmaster Tools started emailing me that my site was down. I tried logging on and I found their members area was under maintenance . 4 days later my site finally came back up. It was up for another few days, and then back down. Today was the final straw, when I tried accessing my site and got a 404 error. A quick FTP connect and I found my Public_HTML folder was empty. Geeeee, thanks I would HIGHLY recommend avoiding if you are looking for a reliable hosting provider.

Needless to say I am now running hopefully a much more reliable server. Sincere apologies to anyone that came to the site and were greeted by a 404 page!

Written By: Amardeep Juneja

What’s that SS USB Port On My Computer?

Posted: 24th April 2014 by TheGeekPost in Tips & Tricks

If you recently got a new laptop or desktop, you’ve probably noticed a few USB ports have a logo similar to this:


This type of USB port is known as a “SuperSpeed” USB or, USB 3.0. USB 3.0 offers much faster transmission rates compared to USB 2.0. In fact, a USB 3.0 port is capable of transferring data at up to 5Gbps (Gigabits, not Gigabytes!), leaving USB 2.0 in the dust which is capable of transferring data at around 480 Mbps.

So why would you need such a fast USB interface? Well, there’s many devices that can benefit from a faster bus speed. Take your run of the mill USB Memory Stick. At almost 10 times the speed of USB 2.0, a USB 3.0 memory stick would be able to read and write data to it much faster!

In July 2013, USB 3.1 was introduced. This new technology offers data transmission speeds at up to 10Gbps! Effectively doubling the speed of USB 3.0!

If you’re feeling really technical, I have attached the USB 3.0 pin out below taken from our good friends at Wikipedia

usb pinouts


Written By: Amardeep Juneja

If you’re having issues running Windows update on Windows 8.1 or Server 2012 R2, you may have come across this error message in your WindowsUpdate log file. I’ve seen this occur on 3 separate brand new installs of Windows Server 2012 today. Here’s how to fix it!

Open the Services manager (Start, Control Panel, Administrative Tools, Services)

Locate the “Windows Update” service

Stop and start the Windows Update service

Go back to Control Panel, Windows Update, and re-scan for updates

In every example of this issue I saw, this seemed to correct the issue without having to reboot the servers.

Written By: Amardeep Juneja

DirectAccess 2012: Improve Client Connectivity Time

Posted: 26th November 2013 by TheGeekPost in Windows Server

One of my current projects on the go is implementing DirectAccess 2012. If you’ve ever done this, you’ll probably agree that after reading almost every Microsoft article, and watching every DirectAccess training video on MVA, the installation and configuration of DirectAccess is no where near as simple as it’s made out to be. Currently I am at the point where the environment is up and stable, so I thought I’d share a few tricks with you in this Blog post on how to speed up client connectivity to the DirectAccess server by disabling unused protocols.

In our setup, we are configuring DirectAccess strictly for IP-HTTPS. So in this example I will show you how to disable 6to4 and Teredo protocols.

On the DirectAccess server, open Powershell as the administrator and type the following commands. (Ensure to run these commands on all DirectAcces servers in your cluster)

netsh interface ipv6 6to4 set state disabled [ENTER]

netsh interface teredo set state disabled [ENTER]

Also, if you want to disable the “ManageOut” feature, you can also disable ISATAP by typing the following command

netsh interface isatap set state disabled

As of right now these are the only commands I have come across. Feel free to check back at this Blog post for any new updates!

Written By: Amardeep Juneja

My Favourite CryptoLocker Rage Comic

Posted: 26th November 2013 by TheGeekPost in LOL

Recently, a few PC’s at my work got infected with the Cryptolocker virus. Although this virus is no laughing matter, the following Rage comic almost made me fall out of my chair. Why? Because that was my EXACT reaction!

Unfortunately there is no universal decrypter for Cryptolocker. Luckily we had backups of all the encrypted files which is really the only way to recover from this nightmare of a virus without paying up to the criminals behind this virus from hell!

Written By: Amardeep Juneja

Recently we had a slew of mail delivery issues with McAfee SPAM firewall ( Out of the blue, many internal users emailing from certain domains to recipients who use McAfee’s SAAS SPAM Service were getting 554 Denied NDR failures. After some digging around, I was told that I needed to contact McAfee’s false positive team and submit the bounceback NDR message for the domains we were receiving the delivery failures for.

554 Denied

If you find you are now receiving errors from the domain, the error will look something like this “ #< #5.0.0 smtp;554 Denied [] (Mode: normal)> #SMTP#” send an email to with a copy of the NDR message attached. Within a few hours they should have the issue resolved for you!

Written By: Amardeep Juneja

I was recently trying to clean up some space on my laptop. I came across an interesting file C:\hiberfil.sys…. Ok… so this sounds like a temporary file for Hibernate mode… How do I get rid of this!?

It’s actually pretty simple. If you don’t use the hibernate feature, you might as well save yourself the 6GB of space Windows reserves for Hibernate mode. To turn off Hibernation, follow the steps below:

1) Run CMD as the administrator

2) Type the command “powercfg -h off” and press enter

3) Verify that you no longer have “Hibernate” as an option in the shutdown menu. Once you’ve done that you should also see that the hiberfile.sys file is gone!

Written By: Amardeep Juneja

I’ve been running Windows 8 RTM ever since it was released. For the most part, I’m happy with it. Yes, Windows 8 does have it’s quirks. The new Metro Start button is annoying (I replaced it with Classic Start Menu), and it’s hard to find certain settings that have been hidden in new menu’s, but let’s not be so negative here. There are a lot of improvements in Windows 8, a big one being Hyper-V. When I first setup Hyper-V on my laptop it was running like a champ. But then as the months progressed, I started noticing network connectivity issues on my laptop when a Hyper-V virtual switch was bound to my network card. I started doing band-aid fixes like re-installing the network card, re-creating the virtual switch, until one day everything just stopped working. I found myself in a situation where if I created the virtual switch in Hyper-V, my physical Network card would go offline.

After doing some research I found out that this is actually a very common issue with Intel network cards on Windows 8 running Hyper-V. Today I’ll show you how to resolve your network connectivity issues on Windows 8 Hyper-V if your host network adapter goes offline the second you create your virtual switch.

To start, delete all existing virtual switches, restart your computer and verify you have access to your network.

Once you reboot and verify everything is OK, go ahead and create your External switch. Call it whatever you like.

Go to your network connections now and right click on the adapter called “Ethernet”. Under the networking tab you’ll see that everything is unchecked. Here’s where the problem is. When you create the switch, the appropriate settings don’t get turned on. Go ahead and check off every item in “This connection uses the following items” and click OK.

As soon as this change get’s applied, you’ll see your vEthernet adapter switch to identifying and then will get assigned an IP.

This solution has worked for me. Hopefully it will work for you too!

Written By: Amardeep Juneja

While activating a brand new BB10 device today, I came across the error message “There Was An Unexpected Error And The Operation Was Cancelled”… Unexpected you say?!

After some googling, and more googling…. I came across the solution to this issue. The issue isn’t actually related to Exchange, or the Blackberry Server… It’s Active Directory!

Open Active Directory Users & Computers, select “View” and “Advanced Features”, then search for the account you’re having difficulties with and go to the properties. Select the “Security” tab, click “Advanced” and check off “Inlcude Inheritable permissions from this objects parent”

I have confirmed that this solution worked for me. Give it a whirl and hopefully it works out for you too!

Written By: Amardeep Juneja