Skip to content

Create 1 of more test users in Active Directory

A simple vb script to create 500 test users.

You must configure your domain info, and how many users you would like to create


dim strUser Dim objRootLDAP, objContainer, objNewUser, objGroup set objRootLDAP = GetObject("LDAP://rootDSE") set objContainer = GetObject("LDAP://cn=Users," & _ objRootLDAP.Get("defaultNamingContext")) set objGroup = GetObject(LDAP://CN=Users,DC=DOMAIN,DC=COM)

‘Modify number of users to create for i = 01 to 500 strUser = "USER NAME" & i set ObjNewUser = objContainer.Create("User", "cn=" & strUser) objNewUser.Put "sAMAccountName", strUser objNewUser.Put "cn", strUser objNewUser.Put "givenName", strUser objNewUser.Put "displayName", strUser objNewUser.Put "userPrincipalName", strUser & "@FQDN" objNewUser.SetInfo objNewUser.SetPassword("PASSWORD") objNewUser.AccountDisabled = FALSE objNewUser.SetInfo objNewUser = null Next

.csharpcode, .csharpcode pre
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
background-color: #f4f4f4;
width: 100%;
margin: 0em;
.csharpcode .lnum { color: #606060; }

Installing Exchange Server 2010

There’s a lot to think about before installing Exchange 2010 with the typical installation (one server). I figured I would post while building one out myself in a virtualized environment.

Starting with a Windows Server 2008 R2 x64 base operating system install configured with the following: (all configured within Hyper-V)

  • Quad Xeon Processor (additional cores added)
  • 8GB Memory
  • 600GB Hard Disk (IDE)
  • 1 Network Adapter (configured in the OS with static IP address)
  • image


Update your Active Directory Schema:

On the Exchange Server, in PowerShell (run as administrator), run the following command

ServerManagerCmd -i RSAT-ADDS


reboot after installation is complete.

Next lets RUN: services.msc, and the Net.TCP Port Sharing Service, open


Change to the following values (start up type to Automatic)

When you apply this setting, you will have the option to start the service, click start.


Install IIS:

Use the server manager to perform a default installation of IIS 7 or 7.5

Unable to read data from the Metabase. Ensure that Microsoft Internet Information Services is installed.
Recommended Action:

The World Wide Web (W3SVC) service is either disabled or not installed on this computer. You must exit Setup, install the required component, then restart the Setup process.
Recommended Action:

Unable to read data from the Metabase. Ensure that Microsoft Internet Information Services is installed.
Recommended Action:

The World Wide Web (W3SVC) service is either disabled or not installed on this computer. You must exit Setup, install the required component, then restart the Setup process.
Recommended Action:


Download and Install 2007 Office System Converter

This computer requires the 2007 Office System Converter: Microsoft Filter Pack. Please install the software from

Once you have all of this complete, lets move on to the installation!



Be-aware that the top exclamation mark is indicating that:

Setup is going to prepare the organization for Exchange 2010 by using ‘Setup /PrepareAD’. No Exchange 2007 server roles have been detected in this topology. After this operation, you will not be able to install any Exchange 2007 server roles.



Your finished the basic installation for Exchange Server 2010

Install Microsoft SharePoint Server 2010 Beta



To start off, I built a Hyper-V virtual image of Windows Server 2008 R2 Standard server with the following hardware configuration:

  • 6GB Memory
  • 4 cores
  • 127GB VHD
  • 1 Network Adapter

After installing and updating Windows, I installed the .NET 3.5 SP1 framework, and installed the Web Services roles required.



Preparation Tool

The SharePoint 2010 Preparation Tool checks for the following

• Application Server Role, Web Server (IIS) Role
• Microsoft SQL Server 2008 Native Client
• Microsoft "Geneva" Framework Runtime
• Microsoft Sync Framework Runtime v1.0 (x64)
• Microsoft Chart Controls for Microsoft .NET Framework 3.5
• Microsoft Filter Pack 2.0
• Microsoft SQL Server 2008 Analysis Services ADOMD.NET







Use your own product key, your not getting mine



For my example I will choose.. the standalone option





click yes


SharePoint is now creating and configuring the database, configuring features, adding sample data and so forth.

My Installation said that it had failed, however all features within SharePoint seem to be working correctly.

Free Anti-Virus Microsoft Windows


On Wednesday Microsoft released their new Anti Virus solution. It is free, and looks like a great product. I myself will be installing it this evening, and updating this post with some comments on performance, and real time scanning.

Here is the link!

security essentials

Remote Desktop An authentication error has occurred (Code: 0x80070574).

I have to thank Morgan Che for posting this excellent article on fixing the An authentication error has occurred (Code: 0x80070574). 

Her post on 

In Remote Desktop Connection 6.0, server authentication verifies that you
are connecting to the correct remote computer or server, which may lead to
some incompatibility issue.
So, could you confirm if you use Remote Desktop Connection 6.0 client to
connect Vista?
Before Vista, Remote Desktop Connection 6.0 has been included in the
following OS:
Microsoft Windows Server 2003 with Service Pack 1 (SP1)
Microsoft Windows Server 2003 with Service Pack 2 (SP2)
Microsoft Windows XP with Service Pack 2 (SP2)
If so, please edit Default.rdp file as following steps to turn off the new
features in Remote Desktop Connection 6.0 to revert to the features in
Remote Desktop Connection 5.x.

To do this, follow these steps:
1. Click Start, click Run, type mstsc.exe, and then click OK.
2. Click Options, and then click the General tab.
3. Click Save As, and then type a file name in the File name box.
4. Select the location where you want to save the remote desktop file,
click Save, and then click Cancel.
Note The saved file has the .rdp file name extension.
5. Click Start, click Run, type notepad, and then click OK.
6. On the File menu, click Open.
7. In the Files of type list, click All Files.
8. In the Look in list, locate and then click the file that you saved in
step 4. Then, click Open.
9. Locate the line that resembles the following:
authentication level:i:n
Note The n placeholder represents the current authentication level.
10. Change the authentication level to 0 so that the line becomes the
authentication level:i:0
Note When you set the authentication level to 0, RDP 6.0 does not check for
server authentication.
11. Add the following line to the end of the file:
Note When this line is present, you do not have to provide credentials
before you establish a remote desktop connection.
12. On the File menu, click Save.

More information, please see:
Remote Desktop Connection 6.0 prompts you for credentials before you
establish a remote desktop connection
In addition, please also install hotfixs for Remote Desktop Connection 6.0
client, which can be achieved from:
Remote Desktop Connection 6.0…-7038-4e82-a32

Messenger with Windows 7 (taskbar really annoying)

One really annoying bug? in windows 7 is that Windows Live Messenger runs on the taskbar, and not the notifications area where your normally use to checking.

To fix this annoyance is really easy.

EXAMPLE: Windows Live Messenger taskbar icon


1. If you have Windows Live Messenger running, close all conversations and exit Windows Live Messenger.
2. Browse to the Windows Live Messenger folder; they will be in different locations, depending on which version OS you are running.

x86 System (32bit) C:\Program Files\Windows Live\Messenger\msnmsgr.exe

x64 System C:\Program Files (x86)\Windows Live\Messenger\msnmsgr.exe
3. Right click on the msnmsgr.exe file, and go to "Properties"

4. Next, click the "Compatibility" tab shown in the image below.


5. Click "Run this program in compatibility mode for:" Windows Vista (any option other than Windows 7 works fine)

5. Click on OK.
6. Open Windows Live Messenger to see it’s icon location now. (Messenger may seem to be installing something, don’t freak, everything is fine. 🙂

Enjoy using messenger the way it was meant to be!

Windows 7 Theme’s


Something Microsoft has always been lacking in vs Mac and Linux OS has been theme’s, and appearance.

Although this isn’t really a big deal, and ad’s no real functionality, it is a very nice visual enhancement, and if your on your PC all day, it’s nice to switch it up every now and again.

With the launch of Windows 7 due shortly, I’ve been using RCO for quite some time now, and just stumbled across this today. Great themes, and the greatest thing is that most of them come with multiple desktop backgrounds that are very appealing, and automatically change (to a time you can set, default 15 minutes)

I find it really enjoyable, and figured I’d share it with you all!.


You can visit the page here.

Make JPEG Image transparent

I found a really nice utility on-line that can help you take any old JPEG or other format picture, and turn it into a transparent PNG file with ease!

It has a tremendous amount of other useful tools that I haven’t played with yet, but if they work any bit as good as the “Transform – Transparent” feature I’m sold!


Props to iaza.. Great tool guys!

IIS 7 Scheduled Backup Script

Automating IIS7 backups with vbs script.

Dim fileName
Dim WSHNetwork
Dim shareName: shareName = WScript.Arguments(0)
Dim xmldom : set xmldom = CreateObject("Msxml2.DOMDocument")
Dim fpc : set fpc = WScript.CreateObject("Fpc.Root")
Dim array : set array = fpc.GetContainingArray
set WSHNetwork = CreateObject("WScript.Network")
fileName=shareName & "\ISA Config – " & WSHNetwork.ComputerName & " – " & _
Year(Now) & "-" & Month(Now) & "-" & Day(Now) & ".xml"
array.Export xmldom, 0


copy above script into notepad, save the file as filename.vbs

Windows 7 RC0 disk is write protected

So you’ve checked everything you can think of, and one of your drives (hard drive, usb stick, usb drive) has become write protected, and you have no idea why..

The solution my friend is "DiskPart".

Open a command prompt window (start –> run –> type in the run window cmd

In the command prompt type "diskpart"
Type "list volume"
this will list all the drives on your computer and give them all volume numbers.
Next you want diskpart to set focus on the write protected drive "select volume #" which ever volume is the disk in question.
Now enter "attributes disk clear readonly" and then type "attributes volume clear readonly"

Check the drive in question, you should now be able to access the disk with full permissions. Hope this helps.