Editing Calendar Permissions in Office365 via Powershell

First you need to connect to Office365.

Next, simply run this commandlet:
Add-MailboxFolderPermission calendar@company.com:\Calendar User guy@company.com AccessRights Author

Your accessrights options are: Owner, PublishingEditor, Editor, PublishingAuthor, Author, NonEditingAuthor, Reviewer, Contributor, AvailabilityOnly, LimitedDetails

If you’d like to get permissions, you can simply use:
Get-MailboxFolderPermission Identity calendar@company.com:\Calendar User guy@company.com

Finally, to remove permissions:

RemoveMailboxFolderPermission Identity calendar@company:\calendar user dude@company.com

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:



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.


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