In order to help our customers (and their users) fully transition from Skype for Business to Microsoft Teams, I’ve updated the Disable-SkypePlugin script that I published back in 2020 and put it on the PowerShell Gallery.… [ Continue reading ]
Tag: Powershell
Refreshed and Migrated the “Allow List” listing tool
A customer I was working with last week had trouble tracking down all the places that an email address was placed in an allow list–across multiple transport rules and other filter policies.
I created a tool just for this back in 2018, but it got lost in the TechNet Gallery decommission. … [ Continue reading ]
Exchange Function to Test MRSProxy Endpoint Authentication
This week, I was helping someone troubleshoot authentication issues when hybrid migration mailboxes to Exchange Online.
In order to migrate a mailbox successfully, the EWS endpoint virtual directory should have NTLM/Negotiate authentication method available.
You can quickly see what the endpoint is showing available by using this function:
Function Test-MigrationEndpointAuthentication($Url) { # Build URL $Url = $Url.TrimEnd('.').TrimEnd('/').TrimEnd('.')… [ Continue reading ]
Function to find the folderID for a Security & Compliance Content Search or eDiscovery Search
Sometimes, you just get too much stuff, and you need to filter it.
It’s true in life, with YouTube cat videos, and with M365 Content Search.
In this post, we’ll talk about using the FolderId parameter to include/exclude mailbox folders in a content search. … [ Continue reading ]
Wipe-ExchangeOnlineMailbox has moved!
Just a quick post today–I’ve re-published my Wipe-ExchangeOnlineMailbox script to the PowerShell gallery.
Hopefully, this helps everyone who continues to want to use this script. Good luck!
And, if you accidentally delete too much stuff, be sure to check out my post about recovering from self-inflicted wounds: Using Restore-RecoverableItems, or “how I saved my own bacon”
Unable to Install NuGet Provider
While writing my last post, I uncovered a problem on one of my lab machines:
Finding Active Directory Duplicates Preventing Azure AD Synchronization
As you’ve possibly seen in a previous post from a few years back, I wrote a tool specifically to identify a gap in our IDFix tool (namely, the inability to identify which objects were duplicates across one or more forests).… [ Continue reading ]
Create a Catch-All Mailbox in Office 365
While working on a cross-tenant issue with a customer, I had the requirement minimize the number of non-delivery reports sent to external users. I suggested the best way to do this might be a catch-all mailbox.… [ Continue reading ]
Check External IP Function
Here’s a quick one for today–I wanted to upgrade the Check External IP function that I have in my PS Profile and expand it to be able to use more than one provider. It uses dyndns.com… [ Continue reading ]
Resolving Publish-PSArtifactUtility : Failed to generate the compressed file for script ‘C:\Program Files\dotnet\dotnet.exe failed to pack: error
Since we had announced the retirement of the TechNet gallery last year, I’ve been slowly moving my scripts to the PowerShell gallery. I haven’t posted any new scripts in a couple of months and wrote a new one today. … [ Continue reading ]
Reviewing the Exchange Mailbox Diagnostics Log
A peer of mine today asked if it was possible to review the log of the Managed Folder Assistant, and, if it was, how to find the last time it ran.
As it turns out, you can! … [ Continue reading ]
Fun: Keep-Alive Mouse
This week I wanted to do something a little bit fun. You’ve probably seen scripts that keep your mouse moving so your machine doesn’t go to sleep…
But have you ever seen one with PowerShell?
Yes, with the [System.Windows.Forms.Cursor]
… [ Continue reading ]
Capturing ProxyAddresses Before-and-After
This past weekend, while working with a customer on a new proof-of-concept deployment of Exchange Hybrid and Microsoft Teams, we had a need to validate that no user accounts would be inadvertently updated during the upgrading of Exchange 2003 Recipient Policies to modern Exchange email address policies.… [ Continue reading ]
Unable to Install NuGet on Windows Server 2016 Due to TLS Error
This morning, while attempting to set up a virtual machine in my lab environment, I encountered an error while attempting to install the MSOnline module–the NuGet and PowerShellGet components were not already installed. Easy enough–the installation procedure prompts to install them anyway, so just hit yes, right?… [ Continue reading ]
Disabling OneDrive for Business
Today, a colleague asked how to disable OneDrive for Business for a customer.
The answer, of course, is like many tech answers.
In this case, it depends on whether you mean “prevent OneDrive from provisioning” or “prevent users from accessing OneDrive sites that have already been provisioned.” … [ Continue reading ]
Announcing the End of a Script with a PowerShell Music!
This week, I was testing something for a customer that required me to check back on a data replication/sync task. The fun part about continuously checking on something is that I’m human and I will eventually forget (or get bored and just stop doing it). … [ Continue reading ]
PowerShell OAuth Authentication Two Ways
This past week, I’ve been heads down working on an application to take inbound data from one application that doesn’t have a webhook or API available and query a Dynamics 365 instance.
In order to query Dynamics 365 (or any Azure/Microsoft 365 service, to be honest) successfully, you’ll need to work with OAuth. … [ Continue reading ]
Configuring a dedicated account for SharePoint Active Directory Import
Yesterday, I needed to help configure a SharePoint Server 2019 User Profile service to import from local Active Directory using the native SharePoint Active Directory Import.
In order to perform Active Directory Import, the service account you specify must have Replicating Directory Changes permissions.… [ Continue reading ]
Manually Disable Skype for Business COM Add-In for Outlook
Today, I was asked about manually disabling the Skype of Business Outlook plug-in for a customer where users have both Skype and Teams clients and are configured in Islands mode.
This is what I came up with. … [ Continue reading ]