Fix “[SC] DeleteService FAILED 1072: The specified service has been marked for deletion.” without rebooting

Just another (un)usual day as a sysadmin. Today a colleague asked me to reboot a server, because he couldn’t get a service deleted from services.msc
Well, a reboot because of a service deletion sounds pretty exorbitant to me, so I tried to delete the service myself, but then faced the same error:

I then tried to use WMI to delete the service, but still no effect (powershell):

Solution:
Make sure all of your mmc.exe processes are stopped. Apparently, in my case, two other users were logged on to the server, running some mmc consoles. As soon as I killed all mmc.exe processes, deletion was successful:

Cheers. I hope this helped.

Read More

Join Azure AD won’t work while logged on as the Builtin Administrator

If you ever tried to join Azure AD with your Windows 10 client while you were logged on with the Builtin Administrator account, you have probably noticed it didn’t do anything at all. Clicking on “Join Azure AD” didn’t seem to do a thing.

Join_Azure_AD

That’s because Microsoft disabled the usage of that functionality while logged on as the built-in Administrator. You can verify this is the issue by looking into your Application log with Eventviewer:

Join_Azure_AD_error

Simply log on with another account (Microsoft or local) and retry and you’ll see it works :)

Some reference information:

Log Name:      Application
Source:        Microsoft-Windows-Immersive-Shell
Date:          1/13/2016 3:38:56 PM
Event ID:      5973
Task Category: (5973)
Level:         Error
Keywords:
User:          pc\Administrator
Computer:      pc
Description:

Activation of app Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy:App.AppXe35aa078nkgkdbkbrk5tjm2xds5rwz5q.wwa failed with error: This app can’t be activated by the Built-in Administrator. See the Microsoft-Windows-TWinUI/Operational log for additional information.

 

Read More

“We didn’t find anything to show here” when trying to use Mail app

The Mail app is a great standard app in Windows 10. Although not as rich as the Web portal, it’s a very handy offline client to have when you’re not connected to the internet.
I recently discovered my email wasn’t synced. I didn’t see any old email either. Only the message “We didn’t find anything to show here”.

I did remember that I had modified my Privacy settings a while ago, so I reverted those changes to their defaults: Settings -> Privacy -> Email -> Choose apps that can access and send email: On (2x)

mail app - privacy settings

However, my Mail app still didn’t sync. The caveat in this issue was the Calendar setting:
Settings -> Privacy -> Calendar-> Choose apps that can access calendar: On (3x)

mail app - privacy settings calendar

After allowing apps to access my calendar, Outlook mail was able to sync.

Read More

Export mailboxes to a PST with primary email address as filename

Yesterday, I was asked to export all Exchange mailboxes of all employees, whose last name begins with a ‘d’, to PST files.
While this is a very common request, and not difficult at all, an extra requirement was the filename had to be the email address. E.q. john.denver@contoso.com.pst
As a reminder for myself, and anyone who’s interested, here’s what I did:
Firstly, I need to filter all mailboxes of people with last name “D*”. Because get-mailbox doesn’t contain a last name field (it can only give me the alias and displayname), I have to use the get-recipient cmdlet first, and then pipe it to a get-mailbox cmldet

$mailboxes now contains all mailboxes to be exported
Because I want to create a separate PST for every individual mailbox, I use a ForEach loop. In addition, I also need the Primary Email address of each mailbox. A mailbox has an attribute PrimarySMTPAddress, but this can contain multiple values. I can use .ToString() to convert the value to a string.

To comply with a specific time range, I could add the parameter -ContentFilter
For example, to export all emails BEFORE January 1st 2015:

Note that the share must be accesible (Modify rights) for the Exchange Trusted Subsystem account. If this account does not have appropriate rights, you will receive the following error:

Unable to open PST file ‘\\servername\share\PST\john.denver@mail.com.pst’. Error details: Access
to the path ‘\\servername\share\PST\john.denver@mail.com.pst’ is denied.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 794F7DC,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

Read More

Windows 10 in Bootcamp crashes when enabling External NIC in HyperV

Recently I installed Windows 10 on my MacBook. Not in Parallels or VMWare Fusion, but just in Bootcamp. I like to work on a native OS for day-t-day activities.

During the buildup of a testenvirmonet in HyperV, I quickly faced a blue screen while trying to create an external vSwitch.

Scenario:

  1. Installed Windows 10 in BOOTCAMP environment on MacBook Pro 13″ retina.
  2. Installed HyperV
  3. Added External network switch in HyperV, connected to my wifi adapter in rMBP 13″

As soon as I try to add the external network switch, I got a bluescreen:
Driver bcmwl63a.sys – error SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M

System reboots, and the network adapter will be in bridged mode. In HyperV the external switch is configured in Private Mode.
No internet connection is possible as long as the NIC is in bridged mode. It will not get an (DHCP) IP address.
The only solution to get rid of the bridged mode seemed to be to disable the NIC in Device Manager, and then Rescan Hardware Changes. Windows will then find the adapter again. You will have to reconnect to your WiFi manually.
The current driver is 7.35.118.40 (24/7/2015)

Solution
(Update) I luckily found a solution: downgrade the driver of your Broadcom NIC to version 6.* for Windows 8.1
Go to https://support.apple.com/kb/DL1721 for example, download the support tools and extract the Bootcamp files.
Open Device Manager, delete the Wireless Network Adapter and tick the “Delete the Driver software for this device” checkbox.
Then install the Windows 8.1 wireless NIC drivers from the (older) Bootcamp support tools.

Read More