FIX: Operation not permitted as root in OS X Terminal

Switch OffWhen running commands in El Capitan OS X terminal, even as root  you may be greated with a rather unhelpful error message of ‘Operation not permitted’. In fact, this isn’t an error message at all – it’s part of an OS X El Capitan feature called System Integrity Protection.

The following is a description from the Apple website:

System Integrity Protection is a security technology in OS X El Capitan that’s designed to help prevent potentially malicious software from modifying protected files and folders on your Mac.

In OS X, the “root” user account previously had no permission restrictions and could access any system folder or application on your Mac. Software gained root-level access when you entered your administrator name and password to install it and could then modify or overwrite any system file or application.

System Integrity Protection restricts the root account and limits the actions that the root user can perform on protected parts of OS X.

Read more

 In order to switch off the System Integrity Protection, you firstly need to boot your Mac from the built in recovery partition, to do this follow the steps below;
  1. Power off your Mac
  2. Press and hold CMD + R on your Mac keyboard
  3. From the Utilities menu, select Terminal
  4. Copy and paste or type in the following:

    csrutil disable
    reboot

Once El Capitan has finished booting back up, you should be able to perform your advanced file manipulation without any more operation not permitted messages.

It is worth bearing in mind, if you leave this switched off you’re leaving your Mac vunerable to accidental or malicious system level file changes, which could result in it needing a complete reinstall or worse. So unless you are a confident advanced user, it would be worth repeating the steps above but replacing disable with enable.

Read More

Watch BBC iPlayer in Safari without installing Flash Player

Last week, due to the demands of a busy Sky Planner, I wanted to watch a programme on BBC1 at the same time as two other channels were recording. My preference being that I wanted the output on a larger screen rather than an iPad therefore I setup my MacBook upstairs, plugged in the TV and navigated to the BBC iPlayer page, only to encounter the problem that I do not have Flash Player installed.

noflash

Since I have only recently started on a clean OSX installation again, I have been trying my very best to avoid installing third party software like Flash. It was looking like I would be left with no choice until I stumbled across the following workaround:

  1. The first step is to enable the Develop menu in Safari (if you already have this enabled, just proceed to step 3). Start by opening the Safari preferences, finding this in the Safari menu in top left hand corner
    prefmenu
  2. Select the ‘Advanced’ tab and set the ‘Show develop menu in menu bar’ option to active
    safariadvpref
  3. Whilst on the BBC iPlayer page (which should still be demanding that Flash Player is installed), open the Develop menu then from the User Agent option, select any of the ‘Safari – iOS…’ options. It will be set to Default as standard however I generally choose the iPad option
    developmenu
  4. You should now find that the iPlayer is happy to allow you to view the content using the HTML5 framework
    playiplayer

This is because the BBC has only released the HTML5 version of iPlayer to tablets at present. By following the above steps, you are simulating your browser as a tablet which is why the functionality is enabled.

Credit goes to the original source Unop for this suggestion.

Read More

Migrate Mailbox to 365 using PowerShell

Migrating mailboxes to 365 using the GUI options or the website can be time consuming, especially if you have hundreds to do. (Of course, if you was doing batches of mailboxes you’d change this PowerShell to import from a file)

The following, connects to your on premise exchange server, and then connects to your 365 tenant and initiates the transfer of the mailbox.

Set-ExecutionPolicy Unrestricted -Force
$365ADMIN = Get-Credential
$HYBRIDADMIN = Get-Credential
$BADITEMLIMIT = 1000
$SESSION = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $365ADMIN -Authentication Basic -AllowRedirection

Import-PSSession $SESSION
Connect-MsolService -Credential $365ADMIN

$UPN = Read-Host "Please enter UPN of the user to migrate to 365"
New-MoveRequest -Identity $UPN -Remote -RemoteHostName mail.domain.co.uk -TargetDeliveryDomain tenant.mail.onmicrosoft.com -RemoteCredential $HYBRIDADMIN -BadItemLimit $BADITEMLIMIT

Note – the on premise exchange server (in my case at least) required credentials in the DOMAIN\USERNAME format, the 365 admin credentials are passed in full UPN format.

Once the above job has been queued, your PowerShell will return to the prompt. If you’d like to get the status of this, or any other move requests currently taking place you can use the Get-MoveRequest commandlet and pipe it to Get-MoveRequestStatistics as per the below

Get-MoveRequest | Get-MoveRequestStatistics

Read More

Evernote Tags Tutorial

Evernote has become an important part of my filing process. However one thing I’ve been trying to get better at is tagging my Evernote notes for even easier locating. 

A recent vlog from Enrico Nahler contains some really useful tips on how to make the best of Evernote’s tags.

Have you found a unique way to keep track of your Evernote notes? Let me know in the comments below.

Read More

VBScript: Completely remove Office 2007

The below VBScript can be used to completely remove all Microsoft Office 2007 components from a machine. This is a deep deep clean, so can take anything up to 2 hours to complete, depending on spec of the machine.