PowerShell

AWS EC2 – Get all EC2 instances in all profiles and all regions

In this blog I will share one way to get all AWS EC2 instances in all profiles and all regions including instance’s Id, name, state, private & public IPs and other instance information. I will show how to calculate the instance’s name and state (running, stopped, etc.) The result can be displayed or saved to a file.

By Saad Khamis November 27, 2023 AWS , PowerShell 15806 views

AWS Backup – List all protected resources in all profiles and all regions

Would you like to know resources protected by AWS Backup?
In this blog I will share one way to list all AWS protected resources in all profiles and all regions. Also, query the backed up EC2 state and Backup tag.

By Saad Khamis November 17, 2023 AWS , Backup , Cloud , PowerShell 17079 views

Windows – Get all installed patches, updates and hotfixes

In this blog I will share one way to get all installed patches, updates and hotfixes on a local or a remote Windows workstation or server.

By Saad Khamis October 25, 2023 Azure , PowerShell , Windows 20370 views

Azure – Get Storage Account Lifecycle Management Policy Rules

Azure NSG Flow Logs Explorer is an easy to use explorer like tool to view Azure NSG flow logs.

By Saad Khamis October 12, 2023 Azure , PowerShell , Storage 33950 views

Windows – Find built-in administrator account name and disable it

Introduction We will find the built-in administrator account name, even if it was renamed, and disable it. When Windows workstation or server is installed, the default built-in administrator account name is Administrator. Some companies rename the local built-in administrator account, …

By Saad Khamis December 14, 2022 PowerShell , Windows 33688 views

Azure SQL Server: Get Azure SQL Server Firewall Rules

Introduction In this blog I will share one way to get Azure SQL Server firewall rules and the option to save the result in a CSV file. I will also show how to use parameters in PowerShell command. My blogs …

By Saad Khamis August 25, 2022 Azure , PowerShell , SQL Server 35505 views

Azure App Services: Get App Services Role Assignments, including slots

Introduction In this blog I will share one way to get an Azure App Service (WebApp), and associated slots, role assignments. My blogs have relatively simple, and sometimes complex, examples. I’m hoping that you will be able to tailor them …

By Saad Khamis August 25, 2022 App Services , Azure , PowerShell 27473 views

Transport Rule Properties updates using PowerShell

In this blog I will share one way to write a function to update, add or remove values, a specific property of an Exchange Online transport (mail flow) rule using PowerShell. Note: Function included in this post works with parameters …

By Saad Khamis November 7, 2021 Exchange , Microsoft 365 , PowerShell 35349 views

Microsoft 365 – Exchange – Function to Get Transport Rule Properties using PowerShell

In this blog I will share one way to write a function to get all or specific properties of an Exchange Online transport (mail flow) rule using PowerShell. I will also show how to a function can accept pipeline input …

By Saad Khamis November 3, 2021 Exchange , Microsoft 365 , PowerShell 28490 views

Windows Servers: Import SSL certificate on IIS and set up HTTPS binding using PowerShell

In this blog I will share one way to import SSL certificate on IIS and set up HTTPS binding to use the imported SSL certificate using PowerShell. If you already imported the new SSL certificate, you can skip that step …

By Saad Khamis October 30, 2021 PowerShell , Windows 19359 views