Categories
Microsoft Powershell

Using PowerShell to check Restart Events on remote computers

This script will prompt the user to enter a computer name and then get the last 3 events that has the Event ID 1074 and 1076. This will tell us the reason why and when the computer was restarted. This will also work with the legacy CMD Get-EventLog

Categories
Azure Microsoft Powershell

Creating a User account in AzureAD – from Azure Portal or using PowerShell

First, login to Azure Portal with an account that has the permission to create a user account.  Go to Azure Active Directory service. Doing it from the portal is quite straight Forward.  You can either create a user or invite an external user to join as a guest user. Fill in the required fields: User […]

Categories
Azure Microsoft Powershell

Installing AzureAD PowerShell Module

NuGet Provider, AzureAD and TLS 1.2

Categories
Powershell Uncategorized

PowerShell to delete folders/files older than x days

Delete files automatically.

Categories
Powershell

What to do when your PowerShell Output is truncated.

When PowerShell output is too long to display.

Categories
GSuite Microsoft Powershell

Send emails / SMS with Gmail and PowerShell with a Scheduled Task

A guide to setup automatic email / SMS reminder with Gmail and PowerShell.

Categories
Microsoft Powershell

RDWeb Farm Deployment – Part 4 – PowerShell

Deploying RDWeb PowerShell Style!