Daniel Fortier

Technology blog v1.0

Issue:
When using Remote Desktop, Terminal Services or Citrix XenApp on a Vmware server, windows might now be able to delete the copy of the profile. At the next logon another profile will be created to finally end up with multiple folders for the same users (ie: username.001, username.002, username.003 …)

If you look in the event viewer (Applications) you will see multiple Event 1533:

Event 1533

Windows cannot delete the profile directory C:\Users\test.danf.PSEPC-SPPCC. This error may be caused by files in this directory being used by another program.

DETAIL – The directory is not empty.

Cause:
The VMWare Share Folders option was installed as part of VMWare Tools. VMWare Shared Folders allows files to be shared between the virtual machine and the HOST computer (ESX or ESXi). This feature is not support on ESX and GSX servers, but is supported on VMWare Workstation. It could still be install on virtual servers running on those host.

Solution:
1- Open the registry editor (Start/Run regedit)
2- Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order\
3- Double click on ProviderOrder
4- Change the Value data to remove vmhgfs from the list (Make sure to remove the comma if you need to)
5- Close registry editor
6- Reboot server for the change to take effect

You might have to go under the profile folder and delete all the remaining profile with username.001, username.002 …

Notes:
When the vmware tools get updated, the registry will appear again so you will have to do this again.

If you lost the admin password or your Citrix Licensing server or the password of any other account and you can’t login to the Citrix Licensing server anymore here is what you have to do:

1- Go to C:\Program Files\Citrix\Licensing\LS\conf and open “server.xml” with notepad.
2- Find the entry that looks something like this:

<user firstName="System" id="admin" lastName="admin" password="(ENC-01)zFaU17cJ2oNQ+LkskjkzUyVV5ZoamcJCDCiuiusbB6zk2P0uR" passwordExpired="false" privileges="admin"/>;

3- Erase the contents between the double quotes after password= (ei: password=”"
4- Enter a plaintext password so it looks like this: password=”password”
5- Change the passwordExpired value to be “true”
6- Save the server.xml file.
7- Close any Licensing Administration Console that you might have open.
8- Restart the licensing services
9- Log into the LAC using user name “admin” (or the username of the account that you changed the password) and the password the you set at #4
10- You will be prompted to change your password. Do it. By doing it, the new password will be encrypted in the server.xml file.
11- To check that everything is working as planned, re-open the server.xml to check that the password is now encrypted.

This week I was trying to create a GUI for a PowerShell script that was already written.

After a quick google search I found out the software PrimalForms 2011 by Sapien Technologies Inc. I’ve been using this software for a week now and I didn’t find the need to search for another software.

The interface is pretty much the same as Visual Studio. All you need to do is drag and drop you label, textbox and listbox to your form. You also get the same Properties menu on the right where you could easily change any properties of all the items of your form.

Sapien Technologies Inc. PrimalForms 2011

I will post some screenshot of PrimalForms 2011 and of the GUI of my script shortly.

Please post in the comment section if you are using other GUI software for PowerShell.

Dan

If you can’t find what you are looking for in vmware KB article… Click here

http://www.vmware.com/landing_pages/knowledgebase-content-request.html

It is now possible to request some KB content.

This is a simple powershell script that will list all the members in the Administrators local group. Just add all the computer name in C:\Servers.txt.

$Computers = Get-Content "C:\servers.txt"
foreach ($Computer in $Computers) {
    $strcomputer = [ADSI]("WinNT://" + $Computer + ",computer")
    $Group = $strcomputer.psbase.children.find("Administrators")
    $members= $Group.psbase.invoke("Members") | %{$_.GetType().InvokeMember("Name", 'GetProperty', $null, $_, $null)}
    Write-Host $Computer
    Write-Host "*********************"
    ForEach($user in $members){
        Write-Host $user
    }
    Write-Host ""
}

If you have idea to enhance that script please feel free to post it in the comments section.

This is just a quick post on how to create a huge file in 2 second.

In this example I will create a 1gb file:

-Open “Command Prompt” (Start / Run / cmd / Enter)
-Use this command:

fsutil file createnew <filename> <size>

fsutil file createnew C:\1gb_files.out 1073741824

-< filename > is the name of the file
-< size > is the size of the file in bytes

This is a common issue with all Microsoft operating system after Windows XP (XP, 2000, 2003, Vista, 7, 2008, 2008 R2). So you are trying to get your Windows Update and you get error 80072F8F. You try again, same thing. You now probably think that you computer/server need a reboot … after reboot … still 80072F8F. Now what, you google “Windows Update error 80072F8F“. You probably found this knowledge base article (KB929458)

In this article, Microsoft propose 4 method to fix this issue. In most case one of those method should fix the issue but in my case none of them worked. I got this error on a Windows Server 2008 Standard R2. The date and time was correct and the server was set to the proper time zone. According to the KB929458, method 2 (Install the most current Microsoft root certificate update) and method 3 (Click to clear the “Check for server certificate revocation” check box) does not apply to Windows Server 2008. After a little bit more research, I found out that my Event viewer (Application) was full of CAPI2 Event id 4110 error

Failed to add certificate to Third-Party Root Certification Authorities store with error: A certificate chain could not be built to a trusted root authority.

Since this error was related to root certificate I went to Http://download.microsoft.com and got the latest update for the root certificate. I download this update, double click on the EXE … nothing happen. Double click again… still nothing. Wierd… I try Windows Update again, everything is fine.

I guess the solution for me was to update the root certificate. I still don’t know what was the cause of that issue or if it was the proper way to fix it but now it works.

Please leave a comment if you had that same issue, this could help us find the cause of this problem.

Description:
This How To will show you how to completely disable IPv6 in a Windows Server 2008.

Prerequisite:
* None

How To:

1. Open the Network Connections window and right click / Properties on the local connection that you want to disable IPv6

continue reading…

So, you have Microsoft Key Management Services running fine for all your Vista workstation and Windows 2008 servers but now you want to add your KMS key for Windows 7 or Windows 2008 R2 and you get this error message:

Run 'slui.exe 0x2a 0xC004F050' to display the error text.  Error: 0xC004F050

You now have 2 choices to fix this issue:
1. Move you KMS host to a Windows Server 2008 R2 server
2. Install Microsoft patch KB968912

Of course this patch is not available from windows update so here is the complete step to install the patch and setup your new KMS key on you KMS host.

continue reading…

Internet Explorer 6 was release 8 year ago (late 2001) and there is still about 15 to 25% of all the internet traffic that is done using this browser. As any web developer will tell you, working with IE 6 is one of the most difficult and frustrating things they have to deal with on a daily basis, taking up a disproportionate amount of their time. Beyond that, IE 6′s support for modern web standards is very lacking, restricting what developers can create and holding the web back.

continue reading…