Troubleshooting

Getting Help and Support for the Microsoft Store for Business

Posted on

Are you looking to get some help and support with the Microsoft Store for Business?  One route that you can go through is directly in the business store portal (https://businessstore.microsoft.com/en-us/manage/support).  Just as seen in the image below.

MSfB

Advertisement

Windows Autopilot device import error 806 ZtdDeviceAlreadyRegistered

Posted on Updated on

I was recently setting up some different scenarios and tests using a VM with Windows Autopilot for Windows 10 1803 vs 1809 .  Being lazy, and thinking that I was being “smart”, I just reused the same VM but had a different VHDX disks for 1803 and 1809.  Each Windows instance had a unique hardware hash (see below snipet).

Autopilot GUIDs

However, the import failed with message “Device is already registered to the same Tenant. Error code: 806  –  ZtdDeviceAlreadyAssigned”.

autopilot-error-806

The error message gives a hint to the problem about the device already being registered. But when you delete the system from within the Autopilot profiles section, it seems to NOT actually delete it.  Such that the device isn’t removed and subsequent imports fail with the same error.  This is caused because the delete was triggered to remove the device from the Microsoft Store for Business, but the change hasn’t yet synchronized back into Intune.

My experience has been that there are variance on how quickly the delete is reflected.  So if you need to expedite the scheduled sync cycle, just simply click the Sync button.  Then that should get it back into a position where you can import the new Autopilot hash CSV file successfully.

autopilot-profile-sync

Auto MDM Enroll: Failed (The system tried to delete the JOIN of a drive that is not joined.)

Posted on Updated on

When setting up hybrid Azure AD join with on-premises Windows 10 environments, if you encounter the an error that “The system tried to delete the JOIN of a drive that is not joined.“, then there is a good chance that the device has not yet synchronized into Azure AD.

Event76

A few tips to help you isolate the cause and get past this issue:

  1. First, confirm the device exists in Azure Active Directory (or not).  In the Azure portal, navigate to Azure Active Directory > Devices > All devices.
    AzureDevicesList
  2. Review the steps in Troubleshooting hybrid Azure Active Directory joined Windows 10 and Windows Server 2016 devices.  Note that this article points back to another article on How to configure hybrid Azure Active Directory joined devices, which presently contains way more helpful information to help you troubleshoot.
  3. In the most current Azure AD Connect releases, use the built-in Troubleshooter.  Then in the PowerShell windows which launches, use both options to troubleshooting options for Object Sync and Password Hash Sync.
    AADC_troubleshooter

In my case, the troubleshooting guides were useful to confirm that I had configured everything correctly.  Then the Azure AD Connect troubleshooter reported an error that “Password Hash Synchronization cloud configuration is disabled”.  Searching that issue on the Internet led me to discover that the cause was likely due to mismatched passwords between the Azure AD account “On-Premises Directory Synchronization Service Account” with the password currently set in the local synchronization service.

To fix that, first set a new password for the “On-Premises Directory Synchronization Service Account”.  To do that, try setting it in Azure directly.  However, given that it’s a special account, it may be necessary to reset the password through PowerShell with the MSOL cmdlets.  While I’m not getting into the full end-to-end setup and use of those add-on Azure PowerShell cmdlets, the command could be as simple as:

Connect-AzureAD
Set-AzureADUserPassword -ObjectId abc123def456xyz980 -Password MyP@ssw0rd! -ForceChangePasswordNextLogin $false

Next, start program Synchronization Service Manager, then click on Connectors.  Locate the Windows Azure Active Directory Account and click Properties.

syncservice

Finally, set the password.  Voila, devices will now sync to Azure AD on the next synchronization!

AADsyncProperties

No Internet on Hyper-V guest using Default Switch

Posted on Updated on

Beginning in Windows 10 1709, Hyper-V networking included a “Default Switch” to help simplify Internet connectivity to guest VMs. The idea is that this switch would automatically share whatever Internet connection is used by the Host, then NAT the addresses to the guests. This sharing is accomplished using the Internet Connection Sharing (ICS) service on the Host.

While in theory this makes the networking of guests easier, one particular challenge with this solution still exists today with Windows 10 1803….occasionally this guest loses it’s ability to work through the Host’s connection. And thereby the guest has no Internet access. So, if you’re faced with this issue, try restarting the ICS service on the host to restore connectivity.

For Internet connection issues with the default switch on a Windows 7 guest VM, I found the best solution to be changing the “Automatic metric” settings on the NICs in the VM.  This workaround/solution was posted in a TechNet forum thread, but the details are copied below for ease of reading.

“Go to <Network and Sharing><Change Adapter Settings> and right click your wired and wireless adapters one at a time to change the properties. Select IPv4, click <Properties> then click <Advanced>. For each one, clear the “Automatic metric” check box and assign the metric value manually. I set the wireless to 1 and the wired to 2, which gave me the behavior I wanted.”

Azure AD Proxy: BadGateway, Possible Loop

Posted on

When using Azure AD Premium’s Application Proxy feature, if you should receive an error that states “Status code: BadGateway” along with the line “The service detected a possible loop. Make sure that the internal URL doesn’t point to the external URL of any application.”

Example web page error:

BadGatewayLoop

The cause – when making a change to the internal URL, I had incidentally set the internal URL to use the external URL.  The surprising thing is that App Proxy actually allowed me to save the changes!

BadGatewayLoop2

 

Azure AD Connect – User Name or Password Is Incorrect

Posted on Updated on

Recently when setting up a new tenant for Azure / Enterprise Mobility Suite, the Azure AD Connect software gave me error “the user name or password is incorrect”.  This was caused by using the .onmicrosoft.com account that was set as the Subscription administrator.

aadc1

To resolve this, create a new Co-Administrator account in the Azure AD Premium console. Under Settings > Administrators, create/add a new user that will be a co-administrator.

aadc2

Next, go to All Items, click the domain, select Users, then select the new co-administrator.  Change the Organization Role to Global Admin.

aadc3

After completing these quick steps, then Azure AD Connect will allow the wizard to continue and complete the setup!

aadc4

 

 

ConfigMgr 2007 to 2012 R2 – Hung Conversions

Posted on Updated on

Recently when helping a customer migrate to ConfigMgr 2012 R2 SP1 + CU1, the site had major problems with fully completing DP upgrades.  First, it would start the uninstall of a CM07 secondary site, then do nothing.  So we would restart the process to which it reassigns the DP and then stalls again…but even worse, it never completed the process and it couldn’t be restarted again.  So the status never came to a full completion and the old content (SMSPKG, PCK files, etc.) were not removed.  Additionally, the state of the migration status never went beyond “Reassigning distribution point” as in the image below.

cm12conversion1

Ultimately I had to engage Microsoft to get an answer.  Even they had to dig through the SQL stored procedure (sp_MIG_ UpgradeDistributionPoint) to understand for themselves what the conversion process does.  Essentially the stages boil down to these high-level steps:

  1. Uninstall of the 2007 components, then delete the values in MIG_DistributionPointSource in the database
  2. Drop a .dpu file into the distmgr.box  (for more info, see TechNet article “DP converts, but content fails“)
  3. Convert DP values of various package and DP mapping values in SQL
  4. And finally, set the DPUPgrade status where Action=2 and Status=0 for complete.  The example below shows an incomplete “hung” state of a DP with Action=2 and Status=1.

cm12conversion2

To get these statuses, the following SQL query was used so that we would know when the remote server had completed the uninstall of the secondary site and was ready to have a manual .dpu file dropped in distmgr.box to initiate the content conversion.

-- Result must be empty
select * from MIG_DistributionPointSource where PKGServer like '%ServerName%'

-- Result must have content listed
select * from PkgServers_G where NALPath like '%ServerName%'
select * from PkgServers_L where NALPath like '%ServerName%'&amp;nbsp;
select * from PkgStatus where PkgServer like '%ServerName%'
select * from ContentDPMap where ServerName like '%ServerName%'
select * from DistributionStatus where DPNALPath like '%ServerName%'

-- Result must have Action=2 and Status=1 to know server is ready to convert content
select * from DPUpgradeStatus where NALPath like '%ServerName%'

-- Use the DDPID number to create the .dpu file name
select * from DistributionPoints where ServerName like '%ServerName%'

The secondary site conversion woes occurred in primarily three ways:

  • First problem – a rerun the stored procedure did not occur after the uninstall of 2007 components.  While this is still unsolved and would take ‘significant’ effort to diagnose the cause, PSS provided a query to identify if the site is ready for the content conversion by creating a dummy .dpu entry.
  • Second problem – A manual restart of the conversion tools led to the system having a “failed to convert content”.  This was occurring because a couple dozen of the packages had mysteriously updated their source files, so there is a hash mismatch between 2007 and 2012.  The solution will be to delete those identified packages in 2012, re-migrate from 2007, and then restart the failed DP conversion (or drop a dummy .dpu)
  • Third problem – On a “completed” DP, files were leftover on the DP, both the PCK and extracted SMSPKG$ files.  Since we did not migrate ALL packages that were on the 2007 DP into 2012, those files are left behind such that they still could be converted at some point if desired.  Otherwise they need to be manually deleted after the conversion process completes.  Then, any package that had a CM07 advertisement that is set to “run from server” will migrate over to CM12 with the option to “Copy content to a package share on DP” – meaning the files in the SMSPKG$ share will remain.  These files should not be deleted from the SMSPKG$, but rather it would be better to change the package setting to not copy the contents (if appropriate for that package).

ConfigMgr 2012 R2 SP1 – Setup Site Maintenace Unavailable

Posted on Updated on

I recently needed to add multi-language clients that I had missed during the initial install of ConfigMgr 2012 R2 SP1.  Typically this is accomplished through site maintenance of the setup wizard.  New with the ConfigMgr 2012 R2 SP1 install is to first install ConfigMgr “RTM” SP2, then update the server with the lightweight R2 SP1 bits.

But when I ran the setup from the original ConfigMgr 2012 SP2 media, the only options available were to recover a site or uninstall the site.  The option to perform site maintenance was grayed out (see image below)!

sm-grayed-out

Fortunately there was an easy workaround.  Instead of running setup from the media, instead run it from the current ConfigMgr installation directory, under \bin\X64\.  Optionally, run Configuration Manager Setup from the program files menu.  Then voila, the option was available!

CM-setup

Windows Deployment Services (WDS) startup error 0x2

Posted on Updated on

On some distribution points in ConfigMgr, the WDS service may not start on Windows Server 2012 R2, which would prevent PXE boot. Trying to start the service produce error 0x2 in the event logs. This problem is likely being caused by the multicast option for the DP.

The fix is simple:
1. Remove the multicast option on the ConfigMgr DP role for that server. The logs can be monitored for removal completion in \\servername\drive$\sms\logs\
2. Start the WDS service.  If there is still an error, a reinstall of WDS may be necessary prior to continuing.
3. Re-add the multicast option and monitor the logs for completion
4. Restart the WDS service to verify it can still start

It also does not appear that Update 1 (KB2883200) for WinSvr 2012 R2 has a positive impact to prevent this, but it may. So I recommend setting up your monitoring tools to watch the state of this service.

WSUS install error “Log on as a service”

Posted on

During installation of WSUS (a prerequisite for the ConfigMgr 2012 R2 SUP role), a GPO prevented the installation of WSUS on a Windows Server 2012 R2 system. The specific policy that caused the problem was for the “Log on as a service”.  In this specific instance, the GPO was restricting access to two AD groups. WSUS needs to create a local service and grant the logon rights during the install process, even if not selecting to use the Windows Internal Database (WID).

KB2832204 describes the issue precisely, even though it was written with regard to ADFS (and not WSUS). The workaround was to do the following:

  1. Move the server into the Computers container (so the GPO was not applied)
  2. Install WSUS (database on SQL Server, not the WID)
  3. Perform the WSUS server role post install tasks
  4. Uninstall Windows Internal Database
  5. Move the server back into the proper OU