Skip to content

Tag: PowerShell

Enabling Defender for Cloud at the Resource Level with PowerShell

Enabling Defender for Cloud at the Resource Level with PowerShell Efficiently managing Azure resources can be challenging, especially in large environments. To help with this, I’ve developed a PowerShell script designed to automate the process of managing Defender for Cloud pricing configurations across various Azure resources, including Virtual Machines (VMs), Virtual Machine Scale Sets (VMSS),…

Leave a Comment

Enhanced Security in Microsoft Teams: New Controls to Block External Access in Trial-Only Tenants

Enhanced Security in Microsoft Teams: New Controls to Block External Access in Trial-Only Tenants Overview Microsoft Teams continues to evolve with enhanced security measures to safeguard communications. A significant update is on the horizon that introduces a new admin control aimed at strengthening defenses against malicious activities through Teams trial-only tenants. Starting from July 29,…

Leave a Comment

Quick Management of Azure Subscriptions: Introducing AzureSubscriptionPicker

Quick Management of Azure Subscriptions: Introducing AzureSubscriptionPicker In line with the spirit of ThatLazyAdmin, I’m constantly on the lookout for ways to make our IT tasks quicker and more efficient. That’s why I’ve developed a new PowerShell script, the AzureSubscriptionPicker, designed to streamline the way we manage multiple Azure subscriptions. This tool does exactly what…

Leave a Comment

Streamlining High Volume Email Management in Microsoft 365 with PowerShell

Streamlining High Volume Email Management in Microsoft 365 with PowerShell I developed the HVEAccountManager.ps1 script to streamline the administration of High Volume Email (HVE) accounts in Microsoft Exchange Online. This script harnesses the capabilities of automation to ease this process, offering a straightforward and effective tool for HVE account management. It exemplifies how automation can…

Leave a Comment

Simplifying Microsoft 365 Admin Role Audits with a PowerShell Script

Simplifying Microsoft 365 Admin Role Audits with a PowerShell Script In the world of Microsoft 365 administration, knowing who holds what admin roles is key for security. I’ve created a PowerShell script that makes auditing these roles straightforward and efficient. Using Microsoft Graph, the script fetches all admin roles within your Microsoft 365 environment and…

Leave a Comment

Effortlessly Retrieve Your Microsoft Tenant ID with PowerShell and Microsoft Graph

Effortlessly Retrieve Your Microsoft Tenant ID with PowerShell and Microsoft Graph In the dynamic world of IT and cloud services, the Microsoft Tenant ID plays a pivotal role, especially for administrators and developers working with Microsoft 365 and Azure services. It acts as a unique identifier for your organization’s tenant in Microsoft’s cloud platform, essential…

Leave a Comment

A Guide to Executing Test-MdiReadiness.ps1

A Guide to Executing Test-MdiReadiness.ps1 In today’s rapidly evolving cybersecurity landscape, ensuring your environment’s readiness for advanced protection solutions is crucial. Microsoft’s Test-MdiReadiness.ps1 script is a powerful tool designed by the Microsoft Team to streamline the deployment of Microsoft Defender for Identity (MDI). This script provides a thorough pre-deployment check, assessing your domain, domain controllers,…

Leave a Comment

How to Automate Guest Account UserType Updates in Microsoft Entra with PowerShell

Managing guest user accounts in Microsoft Entra (formerly Azure Active Directory) is a critical aspect of maintaining the security and functionality of your organization’s tenant. Guest accounts often require specific permissions that differ from those of regular users, and sometimes, it becomes necessary to elevate these permissions by changing the account type from Guest to…

Leave a Comment

Step-by-Step Guide: Enforcing Password History in Intune

Step-by-Step Guide: Enforcing Password History in Intune Keeping your organization’s data secure is paramount in today’s digital age. One key aspect of this is ensuring that passwords are not reused too quickly, which can be a significant vulnerability. In this guide, we’ll walk you through the steps to enforce a password history of 24 or…

Leave a Comment

How to Deploy a PowerShell Script via Intune to Remove AnyDesk from Devices

How to Deploy a PowerShell Script via Intune to Remove AnyDesk from Devices In light of recent security concerns, it’s become increasingly important for IT administrators to be able to quickly respond and mitigate potential threats. One such measure could involve the removal of potentially compromised software, like AnyDesk, from all managed devices. This blog…

Leave a Comment

Streamlining Azure Lab Deployment with PowerShell

As a cloud enthusiast, I’ve crafted a PowerShell script that serves as a cornerstone for anyone looking to establish a dynamic lab environment in Azure. This script is not just a tool; it’s a gateway to a realm where testing, learning, and experimentation happen seamlessly. Hosted on GitHub within the “DeathStarScriptHub” repository, this script automates…

Leave a Comment

Add Microsoft Teams Members using PowerShell

Add Microsoft Teams Members using PowerShell In this post, we will look at how to add Teams Members using PowerShell. To find out how to create a Team using PowerShell view the following post: http://www.thatlazyadmin.com/create-new-microsoft-team-using-powershell/ To get started, we need to first get the Teams GroupId as this will be used to add the new…

Leave a Comment