Fanget opp av
Category: PowerShell

Download Azure VHDs without your computer!

Download Azure VHDs without your computer!

But how? On my mobile device? No! In a container, using Docker, Linux, Tmux and AzCopy. Come on, I’ll show you how I do it! The problem Downloading VHDs from Azure can take a lot of time. Especially if they are several hundred gigabytes (or Terabytes!) in size. VHD stands for Virtual Hard Drive, and is essentially a hard disk for virtual machines in the cloud. Why you need to download them may vary, but legal reasons may be one….

Les mer Les mer

Create teams and channels in bulk

Create teams and channels in bulk

Thanks to the magic of PowerShell and JSON, we can add teams and channels in bulk! Had to do a project lately with a lot of teams and channels that needed to be created in a way that minimizes errors and potential screw-ups. Since I’m all for automating these kinds of tasks, I created this project that I want to share with you! You do need some prerequisites: Create the JSON-file First, you need a source for what structure you…

Les mer Les mer

List Teams with users from specific domains

List Teams with users from specific domains

You have probably been in this situation where you need to migrate a sub-set of users from one tenant to another. This typically happens when a company for a reason splits out and only some users will be migrated. How are you going to get a list of the Teams they are a member of so you can begin migrate the correct data? Fear not! I’ve recently been in this situation where the users already had a specific domain as…

Les mer Les mer

Creating a library for Office templates in SharePoint

Creating a library for Office templates in SharePoint

Are you moving all your file shares to SharePoint and scratching your head for what to do with all your companys Office templates? Look no further, I’ve got you covered! Not only will I explain how it all works but also provide you with some PowerShell-lines to create a document library where you can store your templates. How it all works in Office 365 Microsoft has provided a native solution for customers going full cloud and needing a centralized store…

Les mer Les mer

Delete specific files in SharePoint

Delete specific files in SharePoint

Have you ever been in a situation where you need to delete files of a certain type, or file names containing some key words? Well, I have recently. After a – in general – successfull migration from on-prem file server to SharePoint we noticed that we also copied over a bunch of temporary files (*.tmp) and files beginning with the characters ~$. This is temporary files and garbage from Word and Excel that’s been accumulated over the years and not…

Les mer Les mer