Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like


3,285 views

SNAGHTML1ca684c

I needed to adapt some scripts that create a user with mailbox for Exchange 2010. The existing scripts had a hardcoded database for new mailboxes.

I wanted the mailbox to be created in the smallest database, but how do we determine this?

For Exchange 2010 this is fairly easy using PowerShell:

4,984 views

SNAGHTML1ca684c

By default Exchange 2007 and 2010 are installed in Trial mode so before going into production you need to enter the Product Key.

The Exchange Management Console will warn you if one or more servers are still in trial mode:

image

Read the rest of this entry »

10,161 views

The GetTokenInformation function can be used with the TokenLinkedToken Information Class on Windows Vista and higher to the linked (Elevated) token.

This is useful when User Account Control is enabled and you want to launch an elevated process e.g. from a service.

This example code fails however when User Account Control is disabled:

GetLastError() returns 1312 which is defined in winerror.h as ERROR_NO_SUCH_LOGON_SESSION with description “A specified logon session does not exist. It may already have been terminated.”

So you should check if User Account Control is enabled in such cases (or make this error non critical).

3,512 views

Snippet below can be used to programmatically determine if User Account Control is enabled:

3,087 views

SNAGHTML1ca684c

I am currently working on an Exchange migration from 2003 to 2010. For the implementation of a load balancing solution for the CAS/HUB servers I needed to set Static RPC Ports for the RPC Client Access Service and the Exchange Address Book Service.

The procedure of changing these ports is described on the Technet Wiki: Configure Static RPC Ports on an Exchange 2010 Client Access Server

Since I am lazy I decided to do this with a PowerShell script that would automatically do this for all CAS/HUB servers in my 2010 environment.

Read the rest of this entry »

3,534 views

Exchange 2010 Logo

I got the following error while installing Exchange 2010: “There are no more endpoints available from the endpoint mapper. (Exception from HRESULT: 0x800706D9)”

I looked up HRESULT 0x800706D9 which is defined in winerror.h as EPT_S_NOT_REGISTERED with the same error text.

I looked at the ExchangeSetup.log in C:\ExchangeSetupLogs and this indicates that the error occurs when the install-ADTopologyService cmdlet tries to add some rules to the firewall:


Windows Firewall LogoThe Windows Firewall service was disabled, so I set it to Automatic, started it and enabled it and then the setup ran without errors

  • 1 Comment
  • Filed under: Uncategorized
  • 2,381 views

    Mac OS X Snow LeopardI am running a virtualized Mac OS X machine in my VMWare Workstation but I noticed that after a period of inactivity the virtual machine would sometimes freeze.

    Because this only happens after inactivity I assumed it had something to do with Power Saving so I changed the Energy Saver settings and that fixed it!

    Read the rest of this entry »

  • 2 Comments
  • Filed under: Apple, VMWare
  • 3,638 views

    I have used the WP-Postviews WordPress plugin for a while to keep track of the number of times my blog posts are being read.

    But after installing the W3 Total Cache plugin I noticed that the read counters weren’t properly updated anymore. I figured this was a consequence of using a cache.

    Read the rest of this entry »

  • 0 Comments
  • Filed under: General
  • 9,360 views

    In my previous post I wrote about a problem I had with duplicate RID Allocation pools.

    But how do we get more insight into these RID Allocation pools?

    The DCDIAG tool can display this information per domain controleler using the following syntax

    Example output:

    DCDiag Ridmanager Test

    But where in Active Directory is this information stored and can we display it for all Domain Controllers at once for larger environments?

    Read the rest of this entry »

    7,287 views

    SNAGHTML1ca684c

    I encountered another interesting error during Exchange 2010 installation today. During the Organization Preparation I got the following error:

    The requested object has a non-unique identifier and cannot be retrieved.Active directory response: 0000219D: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0

    The setup.log doesn’t give us much more detailed info:

    I remembered from a Tweet by Helge Klein recently that the Active Directory schema has no mechanism for enforcing uniqueness of an attribute.

    Read the rest of this entry »

    Blogroll


    Categories


    Archives