Archive for May, 2014

Deleting the winsxs folder

In C:\Windows there is a system folder called “winsxs” which stores all the installation files used to update and upgrade Windows.

This folder, on my Windows 7 64-bit system, took up 12GB of space on my precious 80GB SSD drive.

Launch the DOS prompt with administrator rights and run the following command to remove all the files.

Dism.exe /online /Cleanup-Image /SPSuperseded

Moving the MSOCache files

When you install Microsoft Office, by default it will leave a folder of installation files on the C: drive. You cannot delete this folder because every time MS Office needs to update itself, it uses those files.

With the MS Office 2013 edition, I have a folder with 830MB of files! On a small SSD, this is precious space that needs recovering. So what to do?

One trick I came across today is to move those files to another disk and create a symbolic link to them:

mklink /D "C:\MSOCache" "D:\MSOCache"

And that’s it!

 

Creating symbolic links in Windows

I learned today, it’s possible to create a symbolic link in Windows! Here’s what you need to do:

  1. Run the DOS prompt as Administrator.
  2. Use the following command as an example:

    mklink /D "C:\MSOCache" "D:\MSOCache"

  3. Without the “/D” it’ll be a symbolic link for a file. To link a directory and all its files, use the “/D” option.
    The first variable will be the actual symbolic link.
    The second variable is where the files will actually reside.

How to install the HTOP command

  • Navigate to http://packages.sw.be/rpmforge-release/
  • Look for the latest release for your architecture
  • Log into your server
  • Run the command wget http://packages.sw.be/rpmforge-release/rpmforge-release-XXXXX.rpm
  • Run the command rpm -Uhv rpmforge-release*
  • Now you can install htop with yum install htop

Android unable to connect to Exchange Server

After a local server maintenance, my Galaxy Nexus (Android 4.1.1) stopped connecting to the Exchange Server.
I removed the account to try re-adding the account and doing so lost all my emails, calendar and contacts.

No matter how hard I tried, I could not add my account “wind\jason.bickley”.
I received the error “Could not connect to the server”.

However, when I put in a random intern’s credentials it could connect.
Our I.T. Manager then found the following solution and corrected it in Active Directory.

http://technet.microsoft.com/en-us/library/dd439375(EXCHG.80).aspx

“In Exchange Server 2010, you may also experience this issue if the Exchange Servers group does not have the appropriate permission to the mailbox object in Active Directory. The most common cause for this is broken Access Control List (ACL) inheritance in Active Directory.

To check whether inheritance is disabled on the user:

  1. Open Active Directory Users and Computers.
  2. On the menu at the top of the console, click View > Advanced Features.
  3. Locate and right-click the mailbox account in the console, and then click Properties.
  4. Click the Security tab.
  5. Click Advanced.
  6. Make sure that the check box for “Include inheritable permissions from this object’s parent” is selected.

If the user is a member of certain protected groups such as Domain Administrators, it is normal for this box to be unchecked. If you are experiencing a problem with members of these protected groups you should check the permissions on the AdminSDHolder object.”