fbpx
PowerShell Games
Sep27

PowerShell Games

Bored of coding automation scripts or learning PowerShell and want to work on something fun? Why not write your own text based game in PowerShell! Here is a selection of mini games i’ve written in PowerShell either to test out some new coding ideas or just because I wanted to work on something fun! I’ve linked the code repository to each game below so give them a try for yourself and let me know what you create! Power...

Read More
Build a Split Flap Display Using a Raspberry Pi and PowerShell
Jul06

Build a Split Flap Display Using a Raspberry Pi and PowerShell

I love messing around with the Raspberry PI especially when I can write scripts using my favourite scripting language PowerShell and the IoT Module! This is a guide to my latest project, a split flap display. I built it to lean how to control stepper motors and to break out the 3D printer since it had been sitting unused for too long. Checkout the end result in the video below. It has two modes, one is for counting from 0 to 999 and...

Read More
Blog Progress 2021
Jul04

Blog Progress 2021

I cant believe its been 5 years blogging about Microsoft 365, Azure and PowerShell and in that time I’ve written or contributed to three published books, written 173 blog posts and guest posted for several of the most well known vendors in the Managed Service Provider (MSP) space. Looks like my work is attracting nearly 2k unique visitors on a daily basis. It’s an awesome feeling to know I’ve shared my knowledge and...

Read More
Azure EndPoint Policy Manager
Jun08

Azure EndPoint Policy Manager

Do you struggle with implementing templated Microsoft 365 EndPoint policies across multiple clients? I did so I created this handy PowerShell script which can export policies from one tenant and then import them into another! This script does contain bugs and unknown issues so test it in your test environments first to verify it does what you need and to confirm you understand how it works! Download EndpointPolicyManager.ps1 using the...

Read More
Raspberry PI + PowerShell Social Media Like Counter
Feb11

Raspberry PI + PowerShell Social Media Like Counter

A few months back I was looking at social media follower and like counters to display on my desk. There are a few options out there but I had a Raspberry PI and and old display module handy so thought id try making my own! A while back I found out how to run PowerShell on a standard PI image and experimented with the PowerShell IoT module. I’m loving this combination because I’m doing a lot in PowerShell at the moment so I...

Read More
Microsoft 365 How To Enable DKIM Using DKIM Manager PowerShell Script
Nov28

Microsoft 365 How To Enable DKIM Using DKIM Manager PowerShell Script

DKIM Manger Download: DKIM Manager (433 downloads) Or pull from GitHub here: DKIM Manager on GitHub Everyone should be trying to improve their email security setup and using DKIM (Domain Keys Identified Mail). DKIM works by the sending server adding an encrypted version of the email header into the email. The recipient server can then look at your public DKIM keys published in DNS and decrypt the header and compare it to the...

Read More
Using Akixi API with PowerShell
Nov04

Using Akixi API with PowerShell

Akixi is a great reporting platform for the Horizon VOIP telephony platform. Recently i’ve been working on pulling off report data and inserting that data into our central dashboard systems. They don’t provide code examples in PowerShell so I wanted to share the basics so you can get a head start with your own project. All I ask is that you post a comment below and share your project details with other readers 🙂 First up...

Read More
PowerShell For Fun And Profit: Online Arbitrage Scanner
Sep19

PowerShell For Fun And Profit: Online Arbitrage Scanner

What is online arbitrage? It’s where you find things for sale online, buy them and sell them elsewhere and make a profit! How do I find things to sell? Browse popular deal sites, clearance pages or like me, you automate the process and let a PowerShell do the boring work for you! If you want to grab the code, go download it from my Github repository: https://github.com/slashadminsource/PSOnlineArbitrage Setting Up Download the...

Read More
PowerShell Trading Bot For Interactive Brokers
Sep19

PowerShell Trading Bot For Interactive Brokers

This bot is for educational purposes only!This bot will loose all of your money if you try to get it working.I do not support this bot, its provided to the PowerShell coding community for educational purposes.Trading stocks is very risky, I’m not a professional trader or an accountant, I’m an IT guy who likes to mess around with coding projects from time to time.This code most definitely contains bugs and errors and...

Read More
Cant Remove Hyper-V VM Cannot Connect to Virtual Machine Configuration Storage
Aug13

Cant Remove Hyper-V VM Cannot Connect to Virtual Machine Configuration Storage

Found a redundant VM on your Hyper-V host? This typically only happens in test environments but rarely in production and caused by a VM folder being deleted or moved. In the screenshot below you can see the VM ‘Mindex’ in an off-critial state. You cant remove this server from the host using the GUI. Open a Powershell windows as admin and type ‘Get-VM’ and press enter. This will list all of the VM’s on the...

Read More
Basic Setup Guide for Using GitHub With Visual Code and PowerShell
Dec27

Basic Setup Guide for Using GitHub With Visual Code and PowerShell

This guide is a complete beginners guide to creating an account on GitHub and setting up somewhere to store your code and then linking that to Visual Code which is a cool free Microsoft tool used to write code. I’ll like to leave out the fluff and filler so ill keep the text brief, so follow along and use the screenshots for reference. By the end of this guide you will know how to: Create GitHub repositories for your code...

Read More
How To Develop PowerShell Scripts For The Raspberry Pi
Sep16

How To Develop PowerShell Scripts For The Raspberry Pi

A.K.A How to Run PowerShell on the Raspberry PI Ok you want to run PowerShell scripts on your Raspberry PI. Well look no further because I have a detailed step by step guide below! This guide assumes you have already connected your Raspberry PI to your network either by a cable or via wireless. This guide also assumes you prefer to develop the code on your Windows PC using a program with similar features to the PowerShell ISE. Basic...

Read More
Bypass MFA for Azure Runbooks
Sep03

Bypass MFA for Azure Runbooks

If you use Azure runbooks and utilise scripts which connect to Office 365 services you will run into issues if the account you use to authenticate has MFA enabled on it. One option is to bypass MFA on the account for any connections coming from a specific Azure datacenter. This doesn’t open up the account to the internet but please understand that anyone trying to access your account from the same datacenter will also be able to...

Read More
How To Enable OneDrive Files On Demand
Jul23

How To Enable OneDrive Files On Demand

OneDrive Files On Demand is a feature which sets OneDrive to only download files to a local device when a file is clicked on rather than potentially downloading gigabytes or terabytes of files. From the users perspective they don’t really see any difference, they can still see all of the files and folders except they are not using up space on their PC until they open or edit a file. You can enable this option manually on each...

Read More
How To Uninstall Programs Using PowerShell
Jun05

How To Uninstall Programs Using PowerShell

Listing all installed programs, checking to see if a program is installed by its name and uninstalling programs is super easy and efficient using PowerShell and the Get-WmiObject cmdlet. List All Installed Programs Get-WmiObject -Class Win32_Product Running this cmdlet will produce a list of all installed applications. Note this wont list any Windows Apps which are installed. List Installed Programs By Name Get-WmiObject -Class...

Read More
Export Office 365 to The Email Laundry
Jan19

Export Office 365 to The Email Laundry

If you use The Email Laundry for advanced email and threat protection and your an MSP you will know how time consuming it is to setup. Adding all the email accounts into The Email Laundry manually, even exporting users from Office 365 to CSV and formatting the import file can be a real pain. Well I had enough of all the manual work and wrote a little PowerShell script to speed up the process. Before attempting to run this script...

Read More
PowerShell Games Power Bomber
Nov19

PowerShell Games Power Bomber

I love messing around with code and recently I’ve been learning a few new PowerShell techniques and writing little games. I’m no expert by any stretch of the imagination but find messing about and not taking it too seriously helps me code better and most importantly write scripts faster for use in our business and with our clients. This game is called Power Bomber and is very loosely based on the classic Bomber Man. This...

Read More
Power Invaders – Old School Games Programming using PowerShell
Oct18

Power Invaders – Old School Games Programming using PowerShell

I’m loving PowerShell at the moment, not just because its a great tool to automate stuff or a way to build handy reporting scripts but because i’m having so much fun writing games! I’m currently working on a new book and I was going to save this just for the book but I couldn’t resist sharing it! Its a Space Invaders style game but in Power Shell! Download the zip, extract it and run the script. You may need to...

Read More
Enable Office 365 Message Encryption
Sep16

Enable Office 365 Message Encryption

Message encryption is a great way to allow users to send sensitive information to people by simply adding a special word into the subject line of an email. The system will detect the special word which in my case is ‘Encrypt:’ and it will use 365 message encryption to ensure only the recipient can read its contents. When you send an encrypted email the recipient receives an email from you letting them know its encrypted...

Read More
How to Sync an Existing Office365 Tenant into a New Active Directory Domain Using PowerShell
Mar13

How to Sync an Existing Office365 Tenant into a New Active Directory Domain Using PowerShell

If you are in a situation where you currently use Office365 with lots of users and you now need to implement an on-premises active directory domain its not all that straight forward. The sync software is not quite able to take care of this for us yet but it is getting there with it’s AD write back features. If you haven’t already then check out my post on how to perform this task manually by creating all of the accounts in...

Read More
List Users Groups And Contact Email Addresses and Alias in Office 365 Using PowerShell
Oct11

List Users Groups And Contact Email Addresses and Alias in Office 365 Using PowerShell

Get this blog post sent to you as a PDF file to read later Enter your email address and press Send Now Δ I spend most of my time administering the Exchange side of Office 365 so it pays spend some time experimenting with the commands. The more proficient you are using them the easier your job becomes especially when you need to do something a little more than the web portal is capable of. List users, groups and contacts E-Mail...

Read More
How to make a game using PowerShell Old School Style – Dragon Slayer
Sep17

How to make a game using PowerShell Old School Style – Dragon Slayer

I love messing around from time to time and recently I’ve been working on a new book which I’ll be releasing on Amazon which focuses on writing fun games using PowerShell! If you want to keep up to date on its development you should subscribe to the notification list here. Back in the day I spent many hours writing ASCII based games at school and college and I wanted to give it a try again only this time put together a...

Read More
How to Bulk Add Users into Office 365 using PowerShell
Aug30

How to Bulk Add Users into Office 365 using PowerShell

One of the easiest ways to import users in bulk when not using AD Connect to synchronize an on-premises Active Directory is to use a CSV file. Create a new text file and copy in the following text and save the file as users.csv. Use these entries as an example and modify them to match your own requirements. One thing to note here is that the AccountSkuId value defines the license you want to assign to the user: ENTERPRISEPREMIUM =...

Read More
Set Passwords to Never Expire in Office 365 Using PowerShell
Aug17

Set Passwords to Never Expire in Office 365 Using PowerShell

Just don’t do it! However, there may be some cases where you are asked to break company policies and set an account to never expire. In smaller organizations this usually comes from the business owners or managers but try and resist for their own good and explain the security risks involved. When ever possible, compromise and come up with a suitable password policy for the business to use. You could set the following password...

Read More
How to List Users in Office 365 Using PowerShell
Aug09

How to List Users in Office 365 Using PowerShell

If you don’t know how to connect PowerShell to Office 365 then read this post first to get started: How to Connect PowerShell to Office 365 List Users The easiest way to return a list of all users is to run the Get-MsolUser cmdlet. By default, it will return only the UPN, Display name and the isLicensed attributes. Get-MsolUser User Attributes Each user contains a number of attributes defining their settings and personal...

Read More
How to List Office 365 Subscriptions Using PowerShell
Aug05

How to List Office 365 Subscriptions Using PowerShell

Subscriptions in Office 365 define the features and services available and how many licenses you have available to issue to user accounts. Each subscription has its own Account SKU ID such as ENTERPRISEPREMIUM for E3 subscriptions. When you reference a subscription ID in PowerShell you will need to prefix it with your 365 tenant name. This is the part before your onmicrosoft.com address you chose when creating your account. Our test...

Read More
How to Connect PowerShell to Office 365
Aug03

How to Connect PowerShell to Office 365

Required Tools In order for you to manage your Office 365 account, you will need to download and install a few tools. You can manage your account from any Windows PC, you don't need to install them to a server so can manage accounts directly from your PC or laptop. Download and install each of the following tools: Microsoft Online Services Sign-in Assistant http://www.microsoft.com/en-us/download/details.aspx?id=41950 Azure Active...

Read More