I was working on white board and realized that it’s working too slow. Taking a lot of time to load the pages. Interestingly, few pages were not even loading. Since whiteboarding is part of my day-to-day activity, there were lots of pages added. None of them were useful to me. So, I decided to delete all of them. Tried exploring several options in Whiteboard to delete all but did not find any such option. Decided to check if our friend PowerShell can help here.

A simple search over internet gave me this:

Get-Whiteboard (MicrosoftWhiteboardAdmin) | Microsoft Docs

Obviously, we need the Module First. So tried following:

MicrosoftWhiteboardAdmin Module | Microsoft Docs

Well, the Module name is WhiteBoardAdmin (instead of MicrosoftWhiteBoardAdmin)

So, command will be…

Install-Module WhiteBoardAdmin

Select Yes/Yes to All for Untrusted Repository to get this working….

Get-Whiteboard

Re-visiting the Doc…

Get-Whiteboard (MicrosoftWhiteboardAdmin) | Microsoft Docs

Get-Whiteboard

   [-UserId] <Guid>

   [[-WhiteboardId] <Guid>]

   [-ForceAuthPrompt]

   [<CommonParameters>]

The highlighted one is Mandatory Parameter.

So, we need UserID for sure.

Important! You must have access to Graph API.

We can Connect to MGGraph to get MGUser List with ID and DisplayName

So let’s go for it…

Connect-MGGraph 'User.Read.All'
Get-MGUser
Get-WhiteBoard -UserID <ReplaceWithUserGUID>

Now you have Object in-front of you. You know what to do next.

Happy Scripting.

I’m Bindusar

Welcome to BINLABS, my cozy corner of the internet dedicated to IT admins and their daily encounter. Here, I invite you to join me for daily challenges with solution faced by admins using scripts. Let’s script together!

Let’s connect