Easily Enable Active Directory Recycle Bin in Windows Server 2012 R2

I recently enabled Azure Active Directory (AD) Connect and wanted to turn this feature on. After doing some reading, I found a simple way to enable the AD Recycle Bin.

  1. In the management console, go to ToolsActive Directory Administrative Center
  2. Select Local Domain and in the Tasks Pane
  3. Select Enable Recycle Bin.
  4. Click OK

    NOTE: Be aware this feature cannot be disabled.

  5. Click OK.  Once enabled, wait for AD replication to complete as this is a change made on the configuration partition. This process may take a while should your organization have a large active directory infrastructure.

A very simple enablement of a process that could save you hours of restore time.  Again, this process cannot be reversed once invoked.

Empty the Recycle Bin for All Users with Powershell

On a new client’s server, I ran into an issue where a drive was running low on space and I found that another user account on the server (which had been deleted) had files in the Recycle Bin!

Thankfully, I found this Powershell command which worked to delete the files. All you have to do is open a Powershell console as admin and run the following command:

Get-ChildItem “C:`$Recycle.bin\” -Force | Remove-Item -Recurse -force

You can append -Whatif to do a test run and see what files will be deleted before actually deleting them.

Grabbing Dell ServiceTag via XenServer

I have an old XenServer still alive at a client and I needed to get its service tag. Using this command via the XenServer console, you can get it!

dmidecode -s system-serial-number

Hit enter and you’ll have it!

Reset Your Password in Windows 10 Bash / Ubuntu

If you forget your root password for Bash on Windows, you can do the following to reset your password:

First, run: lxrun /setdefaultuser root . This will open a new Bash window as root.

From there, run: passwd your_username and then enter your new root password

Then change the default user for Bash back to your user: lxrun /setdefaultuser your_username

 

That’s it! Enjoy Bash on Windows 10.

Installing Windows Server 2016 (Part One)

So you’ve seen that Microsoft released an evaluation version of the Windows Server 2016 RTM and want to install it? Let’s get this started then! I’ll be doing this on my ESXI hypervisor. I’ve uploaded the ISO and created a VM. My machine had 1 CPU, 100GB of space, and 4GB of RAM.

Once you get the VM booted, you’ll see the purple screen you’ve come to recognize:

Click Next, and then you’ll have one option to install. You can’t say this is hard:

Next, you’ll have to choose the version that you want to install. You can install the eval with the desktop GUI or without it.

Choose the drive you want to install on and you’ll be off to the races.

It’s booting!!!!

And that’s it! You’ll boot into the screen below and you’ll be off on your Server 2016 adventure.

Have a Broken iLo?

I had an iLo that I couldn’t access today via its HTTP / HTTPS interface. You can simply SSH into it and use the reset or restart command (depending on version) to reboot the device. In my case, it came back up and it was accessible!

Rebooting ESXI Host in a Stuck State

Sadly had to use this one this morning… fire up SSH and run this command to force a reboot:

reboot -n -f

 

You’ll lose the SSH connection and the host will reboot

 

 

 

Enable Syncing of Ublock Whitelist and Settings

I’ve been a big fan and user of Ublock (and now uBlock Origin) for a while now, but hated having seperate whitelists on all my devices. I recently found out you can indeed sync those lists if you sync settings within your Chrome or Firefox browser!

Simply right-click on the uBlock icon and click on Options

And on the first page that pops up, you’ll see this option which you should check off:

On your various settings, rules, and whitelist pages you should now see these arrows:

Click the up arrow to upload your current list and then on your other devices, you can enable the setting and hit the down arrow to download that list. And you’re all set!

More info can be found on the github wiki

 

Sharepoint Error – User Not in Directory

Had an odd one today. An internal user with permissions to a Sharepoint site was getting the error “user not in directory”. Searching Google comes up with many different options and reasons for this error, but no concise cause / solution.

The user was able to login to Office365 webmail normally without any errors and was had a Sharepoint license for several weeks and hadn’t reset their password recently.

Eventually, I had the user un-invited and then re-invited and it worked!

Trouble With Running Microsoft eDiscovery Export Tool

I ran into this one yesterday. I was attempting to export a PST file with the findings of a compliance search within Office365. I couldn’t run it on my computer, nor the server where I was offloading the PST to. The error I got was simply “Make sure the export content hasn’t expired”.

Helpful. It obviously hadn’t expired.

Eventually I did the following: First, I started using Internet Explorer to do the export. Next, I found this Microsoft help doc that stated to add the following websites to the trusted or intranet zone in IE.

*.outlook.com, *.office365.com, *.sharepoint.com and *.onmicrosoft.com are added to the Local intranet zone trusted sites.

Voila! That did the job and my PST downloaded nicely.