Just another great IT blog

April 10, 2013

Windows Server Backup to remote mount point: “The space on the backup destination is not enough to back up the source data”

Filed under: Uncategorized — Andy @ 8:38 am

I recently tried using Windows Server Backup on 2008 R2 SP1 to backup to a remote share that was mounted to an NTFS path (mount point) instead of using a drive letter. The volume had over 2x the disk space of the item I was trying to backup (an Exchange 2010 passive database copy). When I tried to setup the backup I received the error message:

“The space on the backup destination is not enough to back up the source data”

Quick research on the Internet turned up nothing, so I suspected it had to be related to using mount points. I assigned a drive letter to the volume and sure enough, Windows Server backup does not complain when using the drive letter.

I assume it’s a bug, without really looking into this I guess they are reading the free space of the volume that hosts the mount point.

April 9, 2013

Exchange: Find ActiveSync user by DeviceID

Filed under: Uncategorized — Andy @ 9:49 am

If you have on or more DeviceID (s) and need to find which user it belongs to, you can use this small PowerShell script:

$devices= “deviceID1”, “DeviceID2”
$users = @()

$Mailboxes = Get-CASMailbox -ResultSize Unlimited | Where {$_.HasActiveSyncDevicePartnership -eq $True }

foreach ($mbx in $mailboxes) {  

      $dev = Get-ActiveSyncDeviceStatistics -Mailbox $mbx.Identity

      foreach ($d in $dev) {  
              if ($devices -contains $d.deviceID) { $users += $mbx }   


$users | ft


December 20, 2012

Windows Server 2012 IPAM: IP Address Inventory empty

Filed under: IPAM, Windows Server 2012 — Andy @ 11:15 am

After I setup IPAM and added my DCs and 2008 R2 DHCP servers I was pretty disappointed to see that it wouldn’t populate the “IP Address Inventory”. At first I thought it’s a matter of time, then I assumed something was wrong – both incorrect.

The simple answer: IPAM does NOT import individual IP addresses. Why? I don’t know, seems like a crucial part of an IPAM system. There is also no obvious straightforward way to do it, and the documentation is lacking.

After searching for a while I found that there are some PowerShell cmdlets that let you import IP addresses from CSV files. Thankfully there are some scripts out there that automate this procedure, they export your info from DHCP and import it back into IPAM. One example can be found here:


A more sophisticated (not sure if it’s better though) is here:


And another one that imports DNS entries:


Windows Server 2012 IPAM: Failure occured when trying to fetch Custom Fields

Filed under: IPAM, Windows Server 2012 — Andy @ 10:43 am

I started playing with Windows Server 2012 IPAM, and to be completely honest was pretty underwhelmed after the initial installation. What is really frustrating is the lack of documentation out there, and it’s very difficult to find decent information.

I ran into the error noted in the subject line when using the IPAM PowerShell cmdlets (e.g. get-IpamConfiguration, export-IpamRange, export-IpamAddress, import-IpamAddress), in the Server Manager console everything worked fine though:

Export-IpamRange : Failure occurred when trying to fetch IP Ranges. Failure occurred when trying to fetch CustomFields.

Pretty obscure error and there is no information on the Internet about this one I could find. Adding parameters such as -verbose doesn’t give any more details and there are no other errors.The solution was simple: My server had UAC (User Account Control) turned on and my PowerShell console was not running ‘as administrator’.

August 13, 2012

DSACLS and Built-in groups

Filed under: Uncategorized — Andy @ 7:37 am

I had to add the “Account Operators” group to a bunch of accounts in AD. I often use DSACLS to make those kind of changes, however I wasn’t able to that for the builtin groups.

When running DSACLS to grant permissions I got the error messages:
No Sid found for <domain>\<group>
No mapping between account names and security IDs was done.

The solution is to use the SID in the DSACLS command instead of the group name. A list of well-know SIDs is available on Technet, or you can just look the attributes in AD. The syntax for DSACLS to give Account  Operators full control on an object:

dsacls <DN> /g S-1-5-32-548:GA



July 9, 2011

Lenovo W510 Sound Issues – Irregular volume on Windows 7

Filed under: Uncategorized — Andy @ 7:28 am

The sound quality on my Lenovo W510 was pretty bad, especially the volume seemed irregular, as if it was constantly fading in and out.

The solution was simple: Turn off all Sound Enhancements in Win 7. It’s important to check the “Disable all enhancements” box, because everything else does not seem to help.

Control Panel – Sound – Playback- Properties of Speakers – Enhancements

June 27, 2011

Exchange 2010 Routing Log Viewer Not Working

Filed under: Uncategorized — Andy @ 12:47 pm

Update: This problem has been addressed by Microsoft in a recent rollup fix. Please check out the comment section for a link.

When you try to open the Exchange 2010 routing log viewer, it won’t open the file and gives you an XML error message:

System.Xml.Schema.XmlSchemaValidationException: Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.Error: The element ‘SourceOrTargetServers’ has incomplete content. List of possible elements expected: ‘String’.

   at Microsoft.Exchange.Transport.RoutingTableLog.Parser.Parser.ValidateLog(XPathDocument doc, String schemaVersion)   at Microsoft.Exchange.Transport.RoutingTableLog.Parser.Parser.Parse(XPathDocument document)   at Microsoft.Exchange.Transport.RoutingTableLog.Viewer.MainForm.ParseLogBackgroundWorker_DoWork(Object sender, DoWorkEventArgs e)   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

This seems to be a bug in certain versions, and it is related to how the XML parsers reads the <SourceOrTargetServers /> tag. A workaround seems to be to remove those empty tags, so I wrote a quick & dirty powershell script. As always, use at your own risk.

Input file is any routing log file, Output file is c:\temp\routinglog.xml. You can easily change this to accept parameters as well, but I don’t use this often enough.

param ([String]$logfile= $(Read-Host -prompt “Input File Name”))

remove-item $fixedlog

$log = get-content $logfile

foreach ($line in $log) {

 if (-not ($line  -like ‘*<SourceOrTargetServers />*’))
    $line | out-file -FilePath $fixedlog -append -encoding ascii


After running this script, simply open C:\Temp\RoutingLog.xml in the Routing Log Viewer and you should be fine.

May 25, 2011

Running Exchange 2007 cmdlets remotely (using a remote Powershell session) fails…

Filed under: Uncategorized — Andy @ 12:57 pm

If you are trying to remotely run an Exchange 2007 cmdlet in a remote PSSession, it will fail with the following error:

An Active Directory error 0x80072020 occurred while searching for domain controllers in domain xxx.xxx

Remoting Exchange 2007  is not supported, that’s why it doesn’t work. There seems to be a workaround as explained here.

I didn’t try it myself because I avoid unsupported actions against production systems, but maybe it helps somebody else because I found it hard to find.

May 13, 2011

Overrides for Exchange 2010 SP1 MP in SCOM – KHI Alerts

Filed under: Uncategorized — Andy @ 10:57 am

When you try to create an override for an alert in the Exchange 2010 SP1 Management Pack for SCOM the usual way, you may find that there are not many options. Normally one would just right-click the alert, go to Overrides and change the threshold for a peformance alert, for example.

For the Exchange 2010 alerts, you can still create overrides like that, but you may find that there are only a few options, such as Enabled, Priority and Severity, but no obvious way to change a peformance threshold.

In my case I wanted to change the threshold for as low disk space error. To do that, find the alert in the alert view, right-click and open the Health Explorer. This view should show the actual monitor that raised the alert. Open the properties of the monitor and you should be able to set the overrides for more parameters, such as the free disk percentage.

Another way of finding this is to  go to “Authoring” in the SCOM console, open “Management Pack Objects” and go to “Monitors”. In the “Look for” box, enter the name of the alert that was raised, e.g. “The database copy is low on log volume space”. Make sure you identify the correct monitor (the example above will yield several results for different classes, some for mailbox databases and some for public folder database), then create a new override. Now you should see a host of other parameters, including the threshold for the free disk percentage.

April 25, 2011

Exchange 2010 Management Pack (SCOM) – Discoveries not working

Filed under: OpsMgr, SCOM 2007 — Andy @ 11:08 am

I recently installed the Exchange 2010 Management Pack and added a couple of Exchange 2010 servers to SCOM, but neither one of them would show up in the Exchange 2010 views. There were no errors in the eventlogs and no other clues as to why this wasn’t working.

After a while I noticed that I had forgotten to enable agent proxying for the SCOM agents (which is listed as a prerequistes in the Exchange MP documentation) so I turned it on, but the Exchange objects were still not discovered. Finally I flushed the health service state and cache (available as a task in SCOM), and since then everything looks good.

Older Posts »

Create a free website or blog at WordPress.com.