PowerShell For Loop, ForEach, and Do While/Until Explained

One of the most fundamental functions in programming besides “If, Else” are loops. They allow you to process data or run a function until a certain condition is reached. In ... Read morePowerShell For Loop, ForEach, and Do While/Until Explained

How to Increase Mailbox Size in Office 365

Have you reached your Office 365 mailbox size limit and want to know how to increase it? Then we first have to check if you can increase the mailbox within ... Read moreHow to Increase Mailbox Size in Office 365

How-to use Test-NetConnection in PowerShell

Did you know that the ping command, with its 38 years, is older than the command prompt? You probably already have replaced the command prompt from your daily toolset with ... Read moreHow-to use Test-NetConnection in PowerShell

How to use GPUpdate /Force Command to update your Group Policies

The command gpupdate /force is used to force the update of group policies that are applied by your company. Changes made in the Group Policy are not applied immediately but ... Read moreHow to use GPUpdate /Force Command to update your Group Policies

How to Get your Azure Tenant Id

The Azure Tenant ID is a Global Unique Identifier (GUID) for your Microsoft 365 Tenant. It’s also referred to as the Office 365 Tenant ID. The ID is used to ... Read moreHow to Get your Azure Tenant Id

How to use Try, Catch, Finally in PowerShell

Errors in your PowerShell script can stop the execution of your script, but sometimes that is completely unnecessary. Try Catch blocks in PowerShell help you to handle those errors properly. ... Read moreHow to use Try, Catch, Finally in PowerShell

PowerShell Enable MFA for Office 365 Users

If you don’t have an Azure AD Premium license then you only have two options to enable MFA for your Office 365 users, turn it on for all users with ... Read morePowerShell Enable MFA for Office 365 Users

Get MFA Status of Office 365 users with PowerShell

One of the reports that I really miss in the Microsoft 365 Admin Center is a clear overview of the MFA status of each user. MFA is a really important ... Read moreGet MFA Status of Office 365 users with PowerShell

Find Email Addresses in Office 365 with PowerShell

Sometimes you need to find the user or a mailbox that is using a particular email address. Especially aliases are sometimes hard to find, and you don’t want to open ... Read moreFind Email Addresses in Office 365 with PowerShell

How to Connect to Exchange Online with PowerShell

Some settings in Exchange Online can only be changed with PowerShell. But how do you connect to Exchange Online with PowerShell? Especially when you are using MFA, or want to ... Read moreHow to Connect to Exchange Online with PowerShell

Microsoft Teams Uninstall, Reinstall, and Cleanup Guide & Scripts

Microsoft Teams is not like your average program when it comes to installing and uninstall it. The problem with Microsoft Teams is that it’s installed for every user, in the ... Read moreMicrosoft Teams Uninstall, Reinstall, and Cleanup Guide & Scripts

Remove Empty Folders in SharePoint Online

After merging duplicate folders in SharePoint Online I needed to remove the empty folders. This is something we can do as well with PowerShell and PnP. The script will go ... Read moreRemove Empty Folders in SharePoint Online

Merge Duplicate folders in SharePoint with PowerShell

A reader of this blog reached out to me if I knew a way to merge duplicate folders in SharePoint Online. Users had already worked in the duplicate folders, so ... Read moreMerge Duplicate folders in SharePoint with PowerShell

How to Remove Empty Directories with PowerShell, or Robocopy

Removing empty directories in Windows 10 is really simple with a small PowerShell script or RoboCopy cmd. There is really no need to install any program to clean up the ... Read moreHow to Remove Empty Directories with PowerShell, or Robocopy

How to Enable Sharepoint External Sharing

One of the great advantages of SharePoint Online and OneDrive is that you can easily share your content internally and with external and guest users. External Sharing in SharePoint Online ... Read moreHow to Enable Sharepoint External Sharing

Terminal for Windows 10 is Finished! – How to Install, Update & Tips

A year ago I have written about the new Terminal for Windows 10. Back in 2019 it’s was still a beta release, but I already loved it. Now, a year ... Read moreTerminal for Windows 10 is Finished! – How to Install, Update & Tips

customizing windows terminal

Customizing the new Windows Terminal

Normally I start a new year with cleaning up my desktop, getting rid of all the crap that I stored on it the last 12 months or so. But this ... Read moreCustomizing the new Windows Terminal

How to Connect PowerShell to Office 365 and Exchange Online

PowerShell is a great way to manage your Office 365 environment. It allows you to automate a lot of tasks by writing your own scripts or changing settings with a ... Read moreHow to Connect PowerShell to Office 365 and Exchange Online

PowerShell GUI – Howto get started

I have created many PowerShell scripts for the last couple of years. All with a single purpose to automate my IT work as much as possible. But this week I ... Read morePowerShell GUI – Howto get started

OneDrive Migrate Home Folder

Migrate Users Home Drives to OneDrive for Business with PowerShell

We have Office 365 now for 3 years almost and one the things on my to-do list was migrating the users home folders to OneDrive for Business. I tried it ... Read moreMigrate Users Home Drives to OneDrive for Business with PowerShell

Using PowerShell to Update an AD User from a CSV file

I needed to update a bunch of AD Users with their new job titles. A new year has started and some made promotions and got a new job title. So ... Read moreUsing PowerShell to Update an AD User from a CSV file

Duplicate Microsoft Planner Plans

Duplicate Microsoft Planner Plans

One of the most requested features on the UserVoice forum for Microsoft Planner is the ability to create Microsoft Planner Templates and make new plans from them. Microsoft is working ... Read moreDuplicate Microsoft Planner Plans

PowerShell add Printer Port and Printer

How to add a Printer with PowerShell

I have written before about how to install a printer and printerport from the command line. Great for batch scripts, but these days we use PowerShell for this of course. ... Read moreHow to add a Printer with PowerShell

Install Microsoft Teams Client

Microsoft Teams is going to replace Skype for Business Online. Microsoft Teams is now generally available in Office 365 so it’s a good time to take a look at how ... Read moreInstall Microsoft Teams Client

Restore recycle bin sharepoint online pnp

Restore Recycle bin SharePoint Online with PowerShell

One of my users deleted a complete document library containing more than 12000 items. He synced the folder to his desktop, to find out it was way too big. Unfortunately, he ... Read moreRestore Recycle bin SharePoint Online with PowerShell

Managing email addresses with PowerShell

One of the most common tasks as an administrator is to find, change or add an email address to a user mailbox.  PowerShell makes this tasks a lot easier, you ... Read moreManaging email addresses with PowerShell

Export Yammer user profile photos with PowerShell

Yammer allows you to export the users to a CSV file, but that comes without there profile picture. But there is a Yammer API, so with PowerShell and the data ... Read moreExport Yammer user profile photos with PowerShell

Enable BitLocker using PowerShell

We can use PowerShell to enable Bitlocker on domain-joined Windows machines remotely. By using PowerShell for this task we can enable it on multiple machines at once while we also ... Read moreEnable BitLocker using PowerShell

Manage Office 365 Group Members and Owners with PowerShell

With PowerShell UnifiedGrouplinks cmdlet we can easily manage the Office 365 Group member- and ownerships. The UnifiedGroupLinks cmdlet is part of the Exchange Online PowerShell session. So before we can start ... Read moreManage Office 365 Group Members and Owners with PowerShell

Disable AutoSave for Office 365

This article describes how you can disable autosave in Office 365 for every file with the use of PowerShell. Some background info on the Autosave feature If you are using ... Read moreDisable AutoSave for Office 365

Copy Sharepoint list items to another list with Powershell and PnP

You can easily copy Sharepoint list items to another list with Powershell and PnP. First, connect to the source Sharepoint site with PnP-Online: Get the list items Now we need ... Read moreCopy Sharepoint list items to another list with Powershell and PnP

Share Sharepoint files and folders from an Office365 Group

Sharing files in Sharepoint, that shouldn’t be that hard right? Well if you are using Office 365 Groups you might have noticed that you are not able the share a ... Read moreShare Sharepoint files and folders from an Office365 Group

Opening UWP apps like Edge in Full Screen Mode

You can run Microsoft Edge and other UWP (Universal Windows Platform) apps in fullscreen mode by pressing the key combo Win + Shift + Enter. But what if you want ... Read moreOpening UWP apps like Edge in Full Screen Mode

Connect to Google API with Powershell

We are going to connect to the Google API with OAuth2.0 and the Powershell Invoke-RestMethod cmdlet. Before we can start scripting in PowerShell we first need to get a ClientId, ... Read moreConnect to Google API with Powershell

Using Microsoft Graph API with Powershell

Microsoft Graph API gives you the ability to interact with the continually evolving Azure services through a single endpoint: https://graph.microsoft.com. We are going to connect to Graph with Powershell, OAuth ... Read moreUsing Microsoft Graph API with Powershell

Enabling in-place archive for all users with PowerShell

The In-Place Archive that you get with Exchange Online, provides your users with additional storage space. With PowerShell we can enable the archive mailboxes quickly for all users. Connect to ... Read moreEnabling in-place archive for all users with PowerShell

error 0xFFFD0000

Fix Error 0xFFFD0000 after running Powershell Scheduled task

I used a lot of scheduled PowerShell tasks to make my life as SysAdmin a bit easier. Recently one of the scripts returns the error 0xFFFD0000 as the last result. ... Read moreFix Error 0xFFFD0000 after running Powershell Scheduled task

Add users to Office 365 Retention Policy with Powershell

To preserve your Office 365 content you can use a Retention Policy that you can create in Microsoft Purview (Compliance Manager). An important step is to add users to the ... Read moreAdd users to Office 365 Retention Policy with Powershell

Show Meeting Details of an Office 365 Room mailbox Calendar

By default, the Room calendar shows a busy status. But in most organizations, you want to see the organizer of the meeting and you might also want to know what ... Read moreShow Meeting Details of an Office 365 Room mailbox Calendar