ITExperience.NET Rotating Header Image

“The ActiveSyncDevice cannot be found” in Exchange 2010 while removing a

Users prefer to sync their email with all their devices. The total of home and work devices can easily exceed the default limit of 10. Especially when they are ‘techy’ and buy/sell new devices whenever they want. :)
When users have linked a total of 10 devices (including retired devices), they can remove unneeded / retired devices by using OWA.
However, if a user is moved in Active Directory between the moment they set up partnership with their mobile Phone and the moment they want to remove the partnership, they may receive an error.

If you, as an Exchange administrator, want to remove the device partnership using the Administrator Console (GUI), you will also receive the error:

The ActiveSyncDevice fqdn/ou/ou/username/ExchangeActiveSyncDevices/iPhone§ApplXXYYZZ cannot be found.
Click here for help… http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.3.181.6&t=exchgf1&e=ms.exch.err.Ex0FBD0C
Exchange Management Shell command attempted:
Remove-ActiveSyncDevice -Identity ‘fqdn/ou/ou/username/ExchangeActiveSyncDevices/iPhone§ApplXXYYZZ’

ok The ActiveSyncDevice cannot be found in Exchange 2010 while removing a

Exchange 2010 error remove mobile phone

This error occurs because the device has moved to another location in Active Directory.
The trick in this issue is to remove the device on its GUID.

  1. First, open the Exchange Management Shell
  2. Run the following cmdlet: Get-ActiveSyncDeviceStatistics -Mailbox emailaddress@yourdomain.com
  3. Find the device you want to remove, and copy paste the GUID
  4. Run the following cmdlet: Remove-ActiveSyncDevice -Id 0215da00-227e-4470-a498-e4a44615a223  (replace the guid with your GUID)

Cheers!

 

 

An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted (Windows Azure)

When you attempt to join a Windows 2012 R2 server to a domain in Windows Azure, you may receive the error An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted

If you click Details, the relevant part of the explanation is:

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain “x.x.com”:
The error was: “DNS name does not exist.”
(error code 0x0000232B RCODE_NAME_ERROR)
The query was for the SRV record for _ldap._tcp.dc._msdcs.x.x.com”

In most cases, the domain controller is reachable. If you have enabled PING to your DC, you can try to ping and you will probably get an answer back. In that case, this error can easily be resolved by manually adding a DNS Server Address in the Advanced TCP/IP settings of the network adapter.

There’s a screenshot below (click to enlarge!) that visualizes the following steps to fix this problem:

First, logon to the machine that you want to join to the domain (your client)

  1. Go to your Network and Sharing Center
  2. Click the Network Adapter that you use to join the domain (typically there is only one adapter, but in some scenarios you may have multiple NICS connected to your network)
  3. In the window “Network Adapter” Status, click Properties
  4. In the new window, select the Internet Protocol Version 4 (TCP/IPv4)
  5. Then click Properties
  6. In the Internet Protocol Version 4 (TCP/IPv4) window, click Advanced…
  7. In the Advanced TCP/IP Settings, select the tab DNS
  8. Beneath the “DNS Server addresses, in order of use” click Add…
  9. A small window pops up. Enter the IP address of your Domain Controller, and click OK
  10. Close all Windows with the OK button. It may be necessary to restart the computer. Retry to join the domain.
image thumb An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted (Windows Azure)

DNS name does not exist

“The version does not support this version of the file format” in Hyper-V Manager

While building a lab environment in Hyper-V, the following error occurred when I tried to start a VM with a preconfigured VHD from the Microsoft website:

“Win2012-DC1” failed to start.

Microsoft Emulated IDE Controller (Instance ID x) Failed to Power on with Error ‘The version does not support this version of the file format’.

Failed to open attachment …

image thumb “The version does not support this version of the file format” in Hyper V Manager

The solution is easy: make a copy of the VHD file, remove the original VHD from the VM and then attach the copy to the VM.

Offering WIFI profiles as a “GPO preference” in Windows 7

WIFI profiles can be configured very easily by using Group Policies. However, using GPOs to set WIFI settings limits the user in defining his own preference. A setting like “Auto connect to this network when in range” is set by the system administrator and cannot be unset by a user.

image thumb Offering WIFI profiles as a “GPO preference” in Windows 7

To avoid this problem, I was thinking about a “WIFI offering”. A computer should be provisioned by the right WIFI settings to connect to that SSID. However, if a user wants to modify the setting to its own desires, he should be able to to this. In addition, I also wanted to have the WIFI profile recreated in case the user accidentally deleted the profile.

The solution for this scenario is much easier than I thought, but I think it’s still useful to blog :)

1. First, we need to configure the “recommended” WIFI settings on a Windows 7 laptop. You can do this in the Network and Sharing Center. To quickly open the Network and Sharing center, enter the following command in a command prompt:

control.exe /name Microsoft.NetworkAndSharingCenter

2. After having the WIFI connection configured as desired, you should export these settings to an XML-file, using the netsh command. Type the following command in a command prompt:

netsh wlan export profile my-first-wifi folder=c:\

3. The netsh command above has now created a Wireless-Network-Connection-my-first-wifi.xml file in C:\ . Save this file to a network location that is accessible to all domain computers. For example your NETLOGON directory

4. Next, we need to create a batch file with the following commands:

netsh wlan show profiles | find /i "my-first-wifi"
if errorlevel 1 (
netsh wlan add profile filename="\\contoso.com\netlogon\Wireless-Network-Connection-my-first-wifi.xml" user=all
)

This command will first check whether “my-first-wifi” exists. If it does exist (“if errorlevel 0”), do nothing. If the WIFI profile “my-first-wifi” does not exist (“if error level 1”), it creates the profile with “netsh wlan add profile …”

5. Now since you have created the BATCH file and have exported the XML file with WIFI settings, the only thing you need to do is run the batch-script at computer startup. I prefer doing this in the Computer Configuration of a Group Policy in “Windows Settings –> Scripts (StartUp/Shutdown)”, but configuring at “Administrative Templates –> System –> Scripts” will do fine too.

And we’re done! Steps above will:

  • supply new domain computers with a pre-configured WIFI profile
  • allow users to modify the profile in their own needs
  • re-create the profile in case a user accidentally deletes the profile
  • allow Service Desk to quickly help a user “repairing the WIFI profile”: simply delete the wireless configuration and restart the computer!

How to set up a WordPress website in your Windows Azure account

In Windows Azure, your WordPress blog can be up and running in only 2 minutes (if you click fast enough ;-) ).
This How-to helps you step by step to get it done quickly.

Your very first step would certainly be the signup for a free Windows Azure trial. If you don’t have it, sign up here: Free Trial – Windows Azure Though you need to fill in credit card information, this is a really free account. Your “spending limit” will be set to $0,00 by default, so unless you change this, you will never be charged for anything.

So, assuming you now have an Azure account,
1) Log on to the Azure Portal (https://manage.windowsazure.com/).
2) Click Web Sites in the left bar.

image thumb How to set up a Wordpress website in your Windows Azure account

Windows Azure has a so-called Gallery, which offers you a variety of popular web applications, including WordPress. The great benefit of the Gallery is the installation-free creation of your web application.

3) Click at the left bottom on New, then choose Compute –> Website –> From Gallery
4)
Type the URL for your blog (I chose itexperienceblog, so the final URL would be itexperienceblog.azurewebsites.net)
5) Choose the Region that’s closest to you, and click Create Web Site

image thumb1 How to set up a Wordpress website in your Windows Azure account

A new window appears, showing you all web applications offered by Azure’s Gallery.
6) Scroll down, click WordPress, and click –> (next)

image thumb2 How to set up a Wordpress website in your Windows Azure account

7) In the Configure Your App window, fill in the Site Settings fields. Assuming you don’t already have a database configured in Azure, leave the first 4 fields as they are…

image thumb3 How to set up a Wordpress website in your Windows Azure account

In this same window, as you scroll down to Deployment Settings, Azure will ask you a lot of unique phrases / keys. You may skip these and just click –> (next). However, for security reasons it would be good to fill in the fields. You don’t have to remember the keys, you just need to make them complicated. If you ever forget to logout from WordPress somewhere, you can change these keys to invalidate all existing cookies. This means all users will have to login again.
Need inspiration for your phrases? Use WordPress’ Salt Generator:
https://api.wordpress.org/secret-key/1.1/salt/  and copy-paste.

8) Fill in the keys fields (authentication key, secure authentication key, logged in key, nonce key, authentication salt, secure authentication salt, logged in salt, nonce salt) and click –> (next)

image thumb4 How to set up a Wordpress website in your Windows Azure account

While writing this How-to, I faced the following issue: Windows Azure doesn’t like some specific characters in the Key fields. So, if you see the same red exclamation marks, just replace the ‘ \ $ characters by something else :-)

image thumb5 How to set up a Wordpress website in your Windows Azure account

9) In the New MySQL Database window, leave the fields default. Check the “I agree to ClearDB’s legal terms” box and click V (complete installation)

image thumb6 How to set up a Wordpress website in your Windows Azure account

Windows Azure now asks you to be patient for 2 minutes, while it is creating your WordPress blog.

10) Wait for completion :-)

image thumb7 How to set up a Wordpress website in your Windows Azure account

11) Your blog is up and running. Try to open it by clicking the URL.

image thumb8 How to set up a Wordpress website in your Windows Azure account

12) WordPress now requires you to complete one final step: name your blog and choose a username / password to login. To get to this site, type http://yourblog.azurewebsites.net/wp-admin/ . In my case: http://itexperienceblog.azurewebsites.net/wp-admin/

image thumb9 How to set up a Wordpress website in your Windows Azure account

WordPress is now completely setup.
You may have noticed that you cannot “browse” through the PHP-files from the Dashboard in Windows Azure. There’s no file explorer. Instead, if you need to modify files, you must use WebMatrix. WebMatrix is an sort of locally installed file explorer for Windows Azure. It allows you to browse and edit files in Windows Azure websites, as well as deploy websites to Azure.

13) From the Dashboard of your website, click Install Webmatrix

image thumb10 How to set up a Wordpress website in your Windows Azure account

14) Follow the instructions. You’ll need to install a bunch of prerequisites as well for sue, so take your time.

image thumb11 How to set up a Wordpress website in your Windows Azure account

15) Finished the WebMatrix installation? Launch WebMatrix, sign in with your Microsoft account, and you’ll notice the WordPress site you just installed.
If you can’t find the shortcut to WebMatrix (like I had), open WebMatrix from Windows Explorer. The default location to WebMatrix is "C:\Program Files (x86)\Microsoft WebMatrix\WebMatrix.exe"

In the screenshot below, you see the wp-config.php file with the authentication keys I supplied in step 8.

image thumb12 How to set up a Wordpress website in your Windows Azure account

Well, I guess that’s it for this How-to.
Questions or comments? Please leave a message below! I’d like to hear from you!