Install Disk Cleanup without Rebooting Server

If you’re on Server 2008R2 and want to install Disk Cleanup, Microsoft tells you to install an update or two, enable a Windows feature, and reboot the server.

What they don’t tell you, but hide on a small TechNet article is that you can “install” disk cleanup yourself by copying two files. Basically, you’ll need to find these two bad boys if you’re running 64-bit Windows:

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui

The cleanmgr.exe goes in Windows\System32 and the cleanmgr.exe.mui goes into Windows\System32\en-us folder. That’s it!

TechNet article here.

TrashBox on Buffalo Terastation

A client’s backup stopped working and started throwing a bunch of errors. Being Acronis, the errors were extremely not helpful. Finally, I found that the Buffalo Terastation had a little feature where files that were deleted (by Acronis when cleaning up old backups) were not really deleted. They were put in a TrashBox folder.

I found this document here, which highlighted this. http://sg.faq.buffalo-global.com/app/answers/detail/a_id/14207/p/31,32,515,518

If you want to turn this feature off, you can do the following:

Log into the TeraStation’s settings, navigate to Shared Folders – Shared Folder Name, and disable Recycle Bin.

FIX for “There was a problem sending the command to the program”

I encountered this error the other day and hadn’t seen it before:

When starting any office program by opening a file, the user saw: “There was a problem sending the command to the program.” Then when dragging the file to Excel, the file opened fine. What the heck?!

Turns out you have to turn off something called DDE (Dynamic Data Exchange) in the settings. This Microsoft KB article details the problem.

Go to the Office app in question and go to the Options. From there, click on Advanced and make sure “”Ignore other applications that use Dynamic Data Exchange (DDE)” is UNCHECKED like below in my version of Excel 2016.

dde

Disable the Calendar on a User or Shared Mailbox In Exchange

This works for Office365 or an internal Exchange server to disable the calendar on a Shared Mailbox or User’s Mailbox. First, you’ll have to pull up the Exchange Management Shell. Then run the following commands:

New-OwaMailboxPolicy –Name “New Policy Name”

Creates a new mailbox policy


Set-OwaMailboxPolicy –Identity “New Policy Name” –CalendarEnabled $false

Sets the calendar for all mailboxes under the policy to be off

Set-CASMailbox –Identity “shared mailbox” –OwaMailboxPolicy “newpolicy”

Applies the policy to the mailbox in question

 

Enabling SMB1 or CIFS on Windows Server 2012

Ran into this this week. Even though I hate doing it and definitely don’t recommend it, I had to enable CIFS on a Server 2012 instance. To do this, you first have to install the “SMB 1.0/CIFS File Sharing Support” Feature, and then do the following:

Open the Registry Editor, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer and change the value of DependOnService from SamSS Srv2 to SamSS Srv.

Reboot the server and that’s it! Enjoy your legacy application / device!

Outlook 2016 Crash at Startup

Ran into this one today… the Office 2016 Preview for Mac crashes. The solution is to open Terminal and run the following commands:

defaults delete com.microsoft.Outlook

killall cfprefsd

They delete old preference files and then kill cached preferences. Voila!

Using Dell Command Configure to Enable TPM for Bitlocker

After configuring Wake On Lan via Command Configure in a previous post, I then wanted to enable Bitlocker on the Windows 8 machine. Unfortunately, the Dell laptop did not have TPM enabled in the BIOS, which allows for a secure key to be saved. Command Configure to the rescue!

There are a few commands you have to run. For some reason, Dell requires you to have a BIOS password to enable the TPM. Don’t worry, you can enable it and disable it all at once without needing to reboot the machine. Here is what you need to run:

cctk –setuppwd=biospassword        // This sets a BIOS password

cctk –tpm=on –valsetuppwd=biospassword         // This turns TPM on and provides the BIOS password you set previously

cctk –tpmactivation=activate –valsetuppwd=biospassword          // This activates TPM and provides the BIOS password you previously set

cctk –setuppwd= –valsetuppwd=biospassword          // This removes the BIOS password. Just put one space after the = sign. You need to feed the old BIOS password to make the change.

That is it! You’ll have to restart the computer and Windows will see the TPM device and be able to enable Bitlocker.

Using Dell Command Configure to Enable Wake On Lan (WOL)

I’ve been playing with Dell Command Configure recently and will be doing a few posts on my work.

First up is enabling Wake On Lan (WOL) on Dell Optiplex, Latitude, XPS, Insprion, systems. The main advantage is this can be done remotely, through Windows, and can even be scripted.

You’ll need Dell Command | Configure which you can grab from here. If you are interested in more features, you can read up on the full documentation in the Reference Guide here.

After you install it, you can open the aptly named “Command Configure Command Prompt” tool. From there, you can enter all your arguments that you want to change. To change your Wake On Lan settings, simply type in:

cctk –wakeonlan [enable, disable, enablewakeonwlan, lanorwlan]

The options above are what you can do. You can set it to wake on just wireless, or both wireless and ethernet LAN. For both wlan and lan, your command would be:

cctk –wakeonlan lanorwlan

 

Windows 10 Will Let You Choose Which Drive to Store Default Folders On

With the growing popularity of SSDs, a lot of users have been using SSDs for boot drives and HDDs for storage. In Windows 10, there is an exciting new feature which will automatically and seamlessly let you choose what folders and files get put on a secondary HDD. This includes “My Documents”, “My Pictures”, and even applications.

The setting is under Settings > System > Storage and can be seen below:

Windows10Choice