Category Archives: Windows

Xendesktop 5 – Log off disconnected users after a certain time

Example: If you want to log off user after 120 minutes of disconnect time. You can set this up though Powershell

ASNP Citrix.*

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectAction "shutdown"

 

Xendesktop 5 – Change logoff behavior

If you want to change a desktop group logoff behavior, this is done by PowerShell.

To turn off shutdown af use:

ASNP Citrix.*
Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $FALSE

To turn on shutdown af use:

ASNP Citrix.*
Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $TRUE

If you need to get a list of names of you Desktop Groups, you can run this:

ASNP Citrix.*
get-BrokerDesktopGroup | select Name

Citrix Xenconvert failed with Failed to discover 1 of 2 volumes on the destination disk! or Enable Automount on windows server Enterprise edition and run Disk Management once to take effect

Today i should convert a machine with XenConvert to XenServer, but it come with these errors:

Failed to discover 1 of 2 volumes on the destination disk!
Enable Automount on windows server Enterprise edition and run Disk Management once to take effect

What i did to fix it was:

First enable automount

C:\> DiskPart
DISKPART> automount enable
DISKPART> exit

If it still not working try this:

  1. Close XenConvert.
  2. Open a command window.
  3. Change to the XenConvert installation folder
  4. Mount the VHD:
    cvhdmount -p 1 <VHD file path>
  5. Open Windows Disk Management, then wait for the disk to appear online in Windows Disk Management, maybe you need to rescan
  6. Verify that the volumes are accessible
  7. Dismount the VHD
    cvhdmount -e 1
  8. Last thing to is editing XenConvert.ini file in c:\program files\citrix\xenconvert\xenconvert.ini
    And put this under [Parameters]
    VolumeDiscoveryTimeoutAsSeconds=120

Then try run XenConvert again.

Exchange 2010 Relay

New-ReceiveConnector -Name RelayConnector -usage Custom -Bindings ’192.168.1.10:25′ -fqdn server.domain.com -RemoteIPRanges 192.168.1.20 -server MYEXCHANGESERVER -permissiongroups ExchangeServers -AuthMechanism ‘TLS, ExternalAuthoritative’

The easist way is just to run this command in powershell:

Where:
192.168.1.10:25 is the IP address of the Exchange server
192.168.1.20 is the ip of the clients how need access to relay
server.domain.com is you exchange server FQDN
MYEXCHANGESERVER is you exchange server hostname

Allow Citrix Receiver to user nonsecurre http access instead of secure https access

To allow Citrix Receiver to used non secure http access, you need to first ofcouse install Citrix Receiver client.

  1. Then start Regedit:
    1. On 32 bit:
      1. Goto HKLM\SOFTWARE\Citrix\AuthManager
    2. On 64 bit:
      1. Goto HKLM\SOFTWARE\Wow6432Node\Citrix\AuthManager
  2. Under AuthManager create a new String Value (Reg_SZ) with name ConnectionSecurityMode and type Any under Data.

    1. On 32 bit:
      1. Goto HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Dazzle
    2. On 64 bit:
      1. Goto HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Dazzle
  1. Under Dazzle modify AllowAddStore to A

Installation NOT successful for ‘USB’, error: 1603.

Error – CComponentManager::GetInstallStatus(400) – Installation NOT successful for ‘USB’, error: 1603.

The problem could be some stucked registry keys from a previous installation

Solution:
Start regedit

Delete this keys: (Maybe you need to take control of HKLM\SYSTEM\ControlSet001\Enum and HKLM\SYSTEM\ControlSet002\Enumto delete them.

HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_CTXUSBM
HKLM\SYSTEM\ControlSet002\Enum\Root\LEGACY_CTXUSBM

 

Remember to restart you computer

Microsoft CRM failed to install

Microsoft CRM Outlook Client Connector has the Visual C++ 2010 x86 Redistributable as a dependancy.

It will automaticaly install the Visual C++ 2010 x86 Redistributable when you install Microsoft CRM outlook Client connector, but it may failed with:
Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100. Result: Asia.

in Danish:

Installationen af Microsoft Visual C++ Runtime mislykkedes. Afslutningskode: 5100. Resultat: Asien

 

If you try to download and install Microsoft Visual C++ Runtime 2010 manual, you get a better error messages:
A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.

Just remove  Microsoft Visual C++ Runtime 2010 from Programs in Control Panel and try to install it again

Softgrid Appv: Clear AppV Cache

Sometimes problem with AppV Client can be resolving by clearing up the application cache.

To get a list of cache application:

sftmime query obj:app /short

To Remove just one programs from the cache:

sftmime.exe remove app:”ApplicationName” /complete

To empty the cache:

sftmime.exe remove obj:app /global /complete

If you want to wipe the complete cache, you can change State key to Zero, and then reboot the machine.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SoftGrid\4.5\Client\AppFS\