Category Archives: Computer

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\

Change autodiscover URL (EWS URL / OAB URL / ECP URL / Activesync URL) – Exchange 2010

If you want to change Autodiscover / EWS / OAB / OWA / ECP / Activesync Url, this is how it works

Set-WebServicesVirtualDirectory -Identity “SERVERNAME\EWS (Default Web Site)” -InternalUrl https://INTERNALURL/EWS/Exchange.asmx -externalurl https://EXTERNALURL/EWS/Exchange.asmx -BasicAuthentication:$true

Set-AutoDiscoverVirtualDirectory -Identity "SERVERNAME\Autodiscover (Default Web Site)" -internalurl https://INTERNALURL/autodiscover/autodiscover.xml -externalurl https://EXTERNALURL/autodiscover/autodiscover.xml

set-OabVirtualDirectory -identity "SERVERNAME\OAB (Default Web Site)" -internalurl https://INTERNALURL/OAB -externalurl https://EXTERNALURL/OAB

set-EcpVirtualDirectory -identity "SERVERNAME\ecp (Default Web Site)" -internalurl https://INTERNALURL/ecp -externalurl https://EXTERNALURL/ecp

set-OwaVirtualDirectory -identity "SERVERNAME\owa (Default Web Site)" -internalurl https://INTERNALURL/owa -externalurl https://EXTERNALURL/owa

set-ActiveSyncVirtualDirectory  -identity "SERVERNAME\Microsoft-Server-ActiveSync (Default Web Site)" -internalurl https://INTERNALURL/Microsoft-Server-ActiveSync -externalurl https://EXTERNALURL/Microsoft-Server-ActiveSync

Set-ClientAccessServer -Identity "SERVERNAME" –AutoDiscoverServiceInternalUri https://INTERNALURL/autodiscover/autodiscover.xml

Or if this is a single server installation you can do it like this:

get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -InternalUrl https://INTERNALURL/EWS/Exchange.asmx -externalurl https://EXTERNALURL/EWS/Exchange.asmx -BasicAuthentication:$true

get-AutoDiscoverVirtualDirectory | Set-AutoDiscoverVirtualDirectory -internalurl https://INTERNALURL/autodiscover/autodiscover.xml -externalurl https://EXTERNALURL/autodiscover/autodiscover.xml

get-OabVirtualDirectory | set-OabVirtualDirectory -internalurl https://INTERNALURL/OAB -externalurl https://EXTERNALURL/OAB

get-EcpVirtualDirectory | set-EcpVirtualDirectory -internalurl https://INTERNALURL/ecp -externalurl https://EXTERNALURL/ecp

get-OwaVirtualDirectory | set-OwaVirtualDirectory -internalurl https://INTERNALURL/owa -externalurl https://EXTERNALURL/owa

get-ActiveSyncVirtualDirectory | set-ActiveSyncVirtualDirectory  -internalurl https://INTERNALURL/Microsoft-Server-ActiveSync -externalurl https://EXTERNALURL/Microsoft-Server-ActiveSync

get-ClientAccessServer | Set-ClientAccessServer  –AutoDiscoverServiceInternalUri https://INTERNALURL/autodiscover/autodiscover.xml

Get mailboxes and witch groups there are member of

I need to get all mailboxes, and witch group there are member of.

You need Quest ActiveRoles Management Shell for this to work:
http://www.quest.com/powershell/activeroles-server.aspx

Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue

$File = "C:\groupslog.txt"
$Mailboxes = Get-mailbox -resultsize unlimited | select sAMAccountName,name,alias
$Mailboxes | ForEach {
   $User = Get-QADUser -samaccountname $_.sAMAccountName | Select sAMAccountName, memberOf
   $Line = $_.sAMAccountName
   ForEach ($GroupDN In $User.memberOf)
   {
      $Group = (Get-QADGroup $GroupDN | Select sAMAccountName).sAMAccountName
      $Line = "$Line,$Group"
   }
   echo $Line
} | out-File $File

In the file c:\groupslog.txt each line is a mailbox, and the first entry is the sAMAccountName, and each entry after this is the group the Mailbox is member of.

Stop error 0xc0000225 on P2V’d Windows 2008 R2

I have P2V a windows 2008 R2, from Xenserver to vmware.

But after the first good boot, it come with: Status: 0xc0000225, Info: The boot selection failed because a required device is inaccessible.

The machine will startup just fine one time, first i thougt it was the uninstall of XenServer tools?.
So i try to remove the Xenserver tools, before the P2V, but again i godt 0xC000225 error again.

I then google it, and found this post: http://web2.minasi.com/forum/topic.asp?TOPIC_ID=31980, and the fix was pretty simple:

  • Mount the Windows 2008 R2DVD in VMware and boot the virtual machine, with CDRom boot at the first boot device.
  • Hit any key to boot from the CDRrom.
  • At the first screen of the installation (Language Selection), you can hit Shift-F10 to get a command prompt.
  • Type Regedit at the command prompt.
  • Loaded hive HKEY_LOCAL_MACHINE (which mounts as a sub-hive)
    1. Highlight HKEY_LOCAL_MACHINE
    2. File > Load Hive
    3. Select < c: > \Windows\System32\config\system (name it something like “qwerty”)
  • Expand HKEY_LOCAL_MACHINE\qwerty\ControlSet001\Services\intelide
  • Change the data for value “Start” from “3” to “0”.
  • File > Unload Hive.
  • Exit regedit.
  • Reboot the VM.

 

Citrix Xendesktop optimize for Windows 7 – Optimization Guide

The link for downloading the PDF of the Citrix Xendesktop Guide, to optimize Windows 7 for using it with Xendesktop, can be found here: http://support.citrix.com/servlet/KbServlet/download/25161-102-648286/XD%20-%20Windows%207%20Optimization%20Guide.pdf

The services in danish name is:

English guide name Danish name
Background Intellingent Transfer Service BITS (Background Intellingent Transfer Service)
Desktop Windows Manager Session Manager Sessionshåndtering af Styring af skrivebordsvindue
Function Discovery Resource Publication Udgivelse af funktionsregistreringsressourcer
HomeGroup listener Lyttefunktion til hjemmegruppe
HomeGroup Provider Udbyder af hjemmegruppe
Indexing Service Indexing Service
Offine Files OfflineFiler
Security Center Sikkerhedscenter
SuperFetch Superfetch
System Restore System Gendannelse
Themes Temaer
Windows Defender Windows Defender
Windows Media Player Sharing Service Windows Media Player Network Sharing Service
Windows Search Windows Search