Category Archives: Powershell

Simple function for logging PowerShell script

When writing larger scripts, logging is a must, so in this post I will share a simple function for logging PowerShell script.

Posted in Powershell | Tagged , , , , | Leave a comment

Create blob storage in Azure with PowerShell

In this post I will show you how to create blob storage in Azure with PowerShell. Azure blob storage is great for storing large amount of  data that is accessible from all around the world through HTTP or HTTPS. I … Continue reading

Posted in Powershell | Tagged , , , , , | 1 Comment

Create a scheduled task with PowerShell

Sometimes during OSD I need to create a scheduled task with PowerShell so that the clients runs another script once the user has gotten the client. In this short post, I will show you how to create a scheduled task that … Continue reading

Posted in Powershell | Tagged , , , , , | 1 Comment

Check if the network cable is unplugged through PowerShell

In a recent script I did for a customer I needed to check if the network cable is unplugged through PowerShell on clients before continuing to execute the rest of the script. With PowerShell you can get a lot of … Continue reading

Posted in Powershell | Tagged , , , , , | 1 Comment

Configure a SMTP server in Azure

Sometimes in my scripts I need to send the result in a mail, but I don’t always have access to a SMTP server, so I decided to configure a SMTP server in Azure that I can use. I will use … Continue reading

Posted in Azure, Powershell | Tagged , , , , | 6 Comments

Get users in an AD-group and mail the content

Today I got a question if could write a small script to get users in an AD-group and mail the content to the service-desk. (Easy way to keep track of licenses for O365 for example) The complete script can be found … Continue reading

Posted in Powershell | Tagged , , , , , | Leave a comment

PowerShell and Windows Forms

I’ve been getting questions about how to use PowerShell and windows forms for a while from different customers and friends, so I’ve decided to write a series of posts covering the basics and show what you can do with this. … Continue reading

Posted in Powershell | Tagged , , | Leave a comment

Remove characters from file names with PowerShell

As we all know, OneDrive does not accept files or folders containing certain characters, so here is a short guide on how to remove characters from file names with PowerShell.

Posted in Powershell | Tagged , , , , , , | 6 Comments

Find files modified after a certain date with PowerShell

This will be a short post on how to find files modified after a certain date with PowerShell, something that might come in handy when working with scripts that copies files. 

Posted in Powershell | Tagged , , , | 1 Comment

Open a webpage from PowerShell

The day might come when you need to open a webpage from PowerShell. It might be when a user clicks on a link in a graphical UI you’ve created or when a task has been completed in one of your … Continue reading

Posted in Powershell | Tagged , , , | 1 Comment