PowerShell

6 posts

Connect to SharePoint Online using PowerShell

So you want to do some PowerShell stuff in SharePoint Online. You will need the “SharePoint Online Global Administrator” permission to perform the connection. Before we do that, lets check if we have the SharePoint Online Management Shell already installed. 1. Launch PowerShell in Administrative mode and run:-

2. […]

O365 – How to add a mail.onmicrosoft.com smtp address using PowerShell

So you are on-boarding user mailboxes to Exchange Online and your user does not have a <domain>.mail.onmicrosoft.com smtp address. STOP. Your mailbox migration will fail without it. (Maybe you know this and this is why you are here 🙂 ) If you used the Exchange Hybrid Configuration Wizard, by default, […]

Signing PowerShell Scripts for an SCCM App Detection Method

In this blog post we will look at signing the PowerShell scripts we use in the “App Detection Method” when distributing apps with ConfigMgr. The PowerShell Execution Policy can be modified in Client Settings to allow ConfigMgr to execute unsigned scripts. If your environment needs to be a bit tighter […]

Office 365 Migration – User Attribute Discovery and Export using Powershell

Identity is key. I cannot emphasise this enough as you begin to move workloads into Exchange Online, SharePoint Online and Skye for Business Online. One of the first pieces of advice you should have been given is the user UPN should match the primary SMTP address. Here is why:- The […]

Move-ActiveMailboxDatabase Error Content index catalog files in the following state Failed Exchange 2010

Move-ActiveMailboxDatabase Error: Content index catalog files in the following state: ‘Failed’ Exchange 2010

So we came across this when attempting a “Move-ActiveMailboxDatabase” powershell command to mount a mailbox database copy in our DAG. We have a powershell script that mounts all DBS on one exchange server so we can do maintenance on the other. 

AppSense Environment Manager Custom Action Script Exit Codes

AppSense Environment Manager Custom Action Script Exit Codes

Hands up, fair cop. In a recent blog post on scripting Internet Explorer Favorites I forgot to mention using script exit codes when I dealt with the custom actions. Any custom script you include in your configuration is always interpreted as completing successfully by the agent on exit unless you specify otherwise in your […]