Posted in: Powershell Automation, Windows Virtual Desktop

WVD Set Drain Mode Powershell

This is a blogpost about a script to set drain mode for all session hosts via powershell in one WVD hostpool. This is a script for the spring release. The fall release CMDLets of WVD uses other CMDlets. WVD Script Firstly, we need to connect to Azure using Powershell. We can do this by using […]

Posted in: Intune, Microsoft 365, Powershell Automation

UnAttended Azure AD Join

This is a blogpost about joining Windows 10 machines unattended to Azure AD with a provisioning package created with the Windows Configuration Designer. The enrollment is done with a token which is created by a service account which services the Azure AD Join. Prerequisites Create a service account in Azure AD to create the bulk […]

Posted in: Powershell Automation

Upload files encrypted via SFTP using Powershell

This blogpost is about moving files over the internet in an old but secure way. I am going to write about automating the upload of files via STFP using Powershell and use encryption to do so. WinSCP is used to upload files and 7Zip (powershell module) is used for encrypting the files. We are going […]

Posted in: Exchange Online, Powershell Automation

Connect to Exchange Online script with modern authentication

In october this year basic authentication for Exchange Online will no longer be available. That is why I’ve written a blog which explain how to use a script with encrypted credentials to connect to Exchange Online via modern authentication. Prerequisites You need to have the module “ExchangeOnlineManagement” installed. You can do so by running the […]

Posted in: Exchange Online, Microsoft 365, Powershell Automation

Exchange Online Migrations Tips & Tricks

I have done a lot of Exchange Online Migrations over the years and I would like to share my tips & tricks in moving the mailboxes via Powershell. I am going to discus moving a single mailbox, moving mailboxes in bulk, offboarding mailboxes back to Exchange On-Premises. Furthermore I am going to show you how […]

Posted in: Intune, Microsoft 365, Powershell Automation

Collect AutoPilot Info from Remote Machine

How can you collect AutoPilot information from a Remote Machine? In this blog I will show you how you can grab this information. Prerequisites Remote Machine You need to have the following prequisites ready: 1. On the remote machine the WinRM service must be running.2. The network must allow WinRM connections. 3. The Windows Firewall […]

Posted in: Intune, Microsoft 365, Powershell Automation

Update Application via Win32App in Microsoft Intune

This blog is about updating an application which you can not update through automation like Chocolately and/or PatchMyPC. I am going to update an application via Win32App in Microsoft Intune. I am deploying this using a script which first uninstalls the old version and then installs the new one. The application that I am going […]

Posted in: Intune, Microsoft 365, Powershell Automation

AutoPilot info auto upload script

I have created a script which auto uploads your Windows 10 AutoPilot info to your tenant. I didn’t do the hard work, that is someone called Nickolaj Andersen. He wrote the script that you can download from the Powershell Galery. This is his original post: https://www.scconfigmgr.com/2019/06/04/import-windows-autopilot-device-identity-using-powershell/ The Script It is a simple script, it is […]

Posted in: Azure, Intune, Powershell Automation

Enable Azure AD Device Script

I have been testing with Windows 10 AutoPilot White Glove and I have run in to the problem where the Azure AD Device was not able to find my organisation. Problem definition The error looked like this: I had uploaded the hardware hashes to Intune using a CSV. Therefore, I was very suprised to see […]

Posted in: Microsoft 365, Powershell Automation

Powershell Function for packaging a Win32App

(code is at the bottom of the page) This blog is about the powershell function that I wrote for packaging Win32Apps. Normally this would take sometime creating folder and find the tools etc… Now you just only need to supply these 5 parameters: Preparation/Set Parameters 5 parameters need to entered like this:The parameters need to […]