Category: Windows Server

Citrix – Open .MSG attachments with Outlook


If Microsoft Outlook is already installed in Citrix server and you want to set Outlook as default viewer for MSG files (saved e-mail from Outlook), read ahead.

As you know (by now), when you click .MSG file on Citrix server, it triggers Outlook to create a new profile. Here is the solution to use Outlook to read the MSG attachment and not trigger profile server ever.

  1. Logon to Citrix server as Local and Citrix Administrator.
  2. Delete any entries in this registry location:

    HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlook

  3. Create a batch file at C:Windows and name it “SetupOutlook.bat” with the following contents:
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "00030393" /d 01000000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "00030397" /d 04000000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "00030399" /d 00000000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "0003036f" /d 98c30100 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "001f0418" /d 0000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "001f0419" /d 0000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "001f041a" /d 0000 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "00400032" /d 204c78f5ba39c901 /f
    REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOutlooka0d020000000000c000000000000046" /t REG_BINARY /v "001f041c" /d 0000 /f
  4. Open Regedit.exe and create a new string value (Reg_SZ) as “OutlookProfileSetup” at following location. Enter the value for this key as “C:WindowsSetupOutlook.bat”  HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun 
  5. Reboot the server.

Now logon to your published application or desktop in Citrix and try to open the MSG attachments. This worked for me perfectly.

Advertisements

Unlocking file or folder: “Cannot delete Folder: It is being used by another person or program”


How many times you get this error message when you try to delete or move a folder or file?

example

OR you may get one of the following error messages depending on the OS flavors.

  • Cannot delete file: Access is denied
  • There has been a sharing violation.
  • The source or destination file may be in use.
  • The file is in use by another program or user.
  • Make sure the disk is not full or write-protected and that the file is not currently in use.

No worries. There is a freeware program that can unlock the folder or file, so you can move on with your life other un-important things.

Head over to Unlocker

DHCP Reservation Entry: Batch file solution


When you get a request to add a printer or any device for DHCP reservation with MAC address, it’s a hassle to find the hosting DHCP servers and have add it on both servers. If you read this you already know how to do it with DHCP MMC console.

To make this process easy, I wrote a batch files for different DHCP server (sets/scopes) and add the reservation in one single step using NETSH command.

I created one batch file for each DHCP servers set which shares the scopes. Without further due, here is my batch file.

REM
REM DHCPReserve.bat
REM Usage: DHCPReserve <Scope> <IP Address> <MAC address> <Description>
REM <Scope> is like 192.168.10.0
REM <IP Address> is assigned IP address for the device, eg., 192.168.10.15
REM <MAC Address> is the device’s MAC address without dash or spaces e.g., 0013FA0191C2
REM <Description> is anything you like about the device
REM
netsh dhcp server <Server1.domain.com> scope %1  add reservedip %2 %3 %4
netsh dhcp server <Server2.domain.com> scope %1  add reservedip %2 %3 %4

Copy and paste the above script in notepad and save it as DHCPReserve.bat. Run it with proper parameters as in remarks section in teh script.