Skip to content

Tag: PowerShell

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

Create new Microsoft Team using PowerShell

Create new Microsoft Team using PowerShell In this post, we will go through the steps for how to create a new Microsoft Team. To gets started the Microsoft Teams PowerShell module needs to be installed first, steps on how to install the Microsoft Teams PowerShell module can be found here: http://www.thatlazyadmin.com/install-microsoft-teams-powershell-module/ Once the Microsoft Teams…

Leave a Comment

Connect to Exchange servers using remote PowerShell

Connect to Exchange servers using remote PowerShell If you do not have local access to your Exchange server, you can use Exchange remote PowerShell to connect to your Exchange Servers. To get started open PowerShell on your local computer. Type the following $UserCredential = Get-Credential The create the new PSSession (Change the FQDN to that…

2 Comments

How to Restrict Users from Creating new Microsoft Teams and Office 365 Groups

The following process will prevent users in your Office 365 Tenant from creating Office 365 groups and new Microsoft Teams. To get started you will have to create a new group in Office 365 and this group will be used to manage who can create Office 365 groups in the organisation. Office 365 groups is…

7 Comments

Do not allow infected files to be downloaded from SharePoint Online

Do not allow infected files to be downloaded from SharePoint Online Office 365 helps protect your environment by detecting viruses and malware in file that users upload to SharePoint Online. Files are scanned for viruses after they are uploaded. If a file is found to be infected, a property is set so that users can’t…

Leave a Comment

Disable anonymous calendar sharing in Office 365 Admin Center and PowerShell.

Disable anonymous calendar sharing in Office 365 Admin Center and PowerShell During this post, we will run down on how to disable anonymous calendar sharing in Office 365. By default, anonymous calendar sharing is enabled, as an Office 365 admin can you decide what kind of information your user share externally. With Anonymous calendar sharing…

Leave a Comment