How to enable execution of PowerShell scripts

Often time system administrators are asked to make company-wide changes. These can be very hard to do unless you run a PowerShell script.  Many scripts that you write or find online are unable to run with a generic error message saying you need to enable execution of PowerShell scripts.  This article shows very briefly how to fix this.

PowerShell command needed to enable execution of PowerShell scripts

Enter the following commands within PowerShell run as administrator:

Set-ExecutionPolicy Unrestricted

enable execution of powershell scripts

You need to have administrative rights to the computer/server you are using in order for this command to run successfully.

Now that you have run this command, you can take advantage of some of the following scripts:



Export Exchange Mailbox to a PST using Powershell

Tonight’s story is one of success.  In my nerdy nature, it brought me great joy.

Recently, I had a request come in to recover a specific email attachment.  From 2014.  Thankfully, the user was smart and sent me the information I needed to begin my search.  I did not tell them that this would be an impossible task because our email backups only go back 60 days, not to mention, we recently migrated them from on-premises Exchange 2010 to Office 365 (Exchange Online).

The Hunt

Continue reading “Export Exchange Mailbox to a PST using Powershell”