CloudGuru
← All topics

Tag

Powershellscripting

4 articles

Entra ID2 min read

Managing Enterprise App Registrations in Entra ID

Why Do You Need This Script? Organizations register applications in Entra ID to authenticate users and grant access to Microsoft services. However, some apps:🔹 Lose valid secrets or certificates and stop working🔹 Remain unused for long periods but retain permissions🔹 Can be exploited if left unmanaged IT administrators need to identify unused applications and those …

Entra ID2 min read

Managing Guest Users in Entra ID with PowerShell

Why Do You Need This Script? Guest users in Entra ID (formerly Azure AD) are external users invited to collaborate within an organization. However, many guests:🔹 Never accept their invitations🔹 Stop using their accounts after a period of time🔹 Pose a security risk if their access isn’t revoked To maintain security and compliance, IT administrators …

PowerShell2 min read

PowerShell Script to Export Users’ Last Password Reset Dates to CSV

If you need to export the list of users in your Active Directory along with their last password reset or update date, here’s a simple PowerShell script that will help you achieve that. The script retrieves the PasswordLastSet property for all users and exports the results into a CSV file for easy analysis. PowerShell Script: …

PowerShell2 min read

PowerShell Script Logging and Debugging: A Comprehensive Guide

If you’re working on a PowerShell script and want to log all activities or debug it effectively, here’s a detailed guide to help you. This post will cover how to enable verbose output, handle errors, and implement global settings to streamline your debugging process. Enable Verbose Output PowerShell provides a built-in verbose stream for detailed …