Export Active Directory Group Names to CSV
This PowerShell script retrieves the names of all Active Directory groups and exports them to a CSV file. By leveraging the Get-ADGroup cmdlet, the script compiles a list of group names, which is then selectively exported to a CSV file for further analysis or documentation.
2
views
A PowerShell Script for Automatic System Shut Down on Internet Connection Loss
This PowerShell script continuously monitors the internet connection by periodically pinging a specified IP address. In the event of a lost connection, the script takes proactive measures by initiating an automatic system Shut Down.
2
views
A PowerShell Script for Tracing RDP User Logons
This script empowers you to efficiently audit and analyze Remote Desktop Connection (RDP) user logon history from Security logs using PowerShell. Gain critical insights into remote access activity, identify potential security threats, and streamline compliance management.
1
view
Retrieve and Display Security Events with User Information with PowerShell
This PowerShell script utilizes the Get-EventLog cmdlet to fetch security events from the Windows Security log, specifically those generated by "Microsoft-Windows-Security-Auditing." The script excludes events with Event IDs 4624 (Logon) and 4634 (Logoff) to focus on other security-related events.
1
view
PowerShell Script to Check Office 365 Installation on Remote Computers
This PowerShell script utilizes PowerShell remoting to check whether Office 365 is installed on a remote computer. It examines the existence of the Office 365 registry key and provides a result indicating whether Office 365 is present on the specified remote machine.
3
views
PowerShell Script for Bulk Emailing with CSV Integration
This PowerShell script enables efficient bulk emailing by leveraging a CSV file to dynamically populate recipient email addresses, names, and other personalized details. The script is designed to enhance automation, allowing users to send customized emails to a list of recipients effortlessly.
1
view
Retrieve External Monitor Brightness Remotely with PowerShell
This PowerShell script allows you to remotely retrieve information about the brightness settings of an external monitor on a specified computer. The script defines a function, Get-DisplayInfo, which queries the WMI (Windows Management Instrumentation) for monitor brightness information. Using the Invoke-Command cmdlet, the script can be executed on a remote computer, providing insights into the current brightness levels of connected external monitors.
1
view
Filtering Folders by Uppercase Letters and Numeric Digits in PowerShell
This PowerShell script retrieves and displays all folders in a specified directory. It then applies a filtering condition to include only those folders whose names consist exclusively of uppercase letters and numeric digits.
1
view
Checking User Profile Existence on Remote Computers
This PowerShell script iterates through a list of specified computers to determine the existence of a user profile for the user.
3
views
Efficient PowerShell Folder Analysis and Reporting
This PowerShell script retrieves size, file count, and folder count details for subfolders within a specified directory. The information is displayed on the console in a custom format and can be optionally exported to a CSV file for further analysis or documentation.
2
views
PowerShell Script for Bulk File Name Replacement
This PowerShell script is designed for bulk file name replacement, allowing you to specify the word you want to replace and the replacement word without hardcoding any specific terms. It provides a flexible solution for customizing file name changes in a directory, making it a versatile tool for managing file naming conventions.
1
view
Retrieve Registered Devices for a User in Azure Active Directory with PowerShell
Discover how to use PowerShell to retrieve and display the registered devices associated with a specific user in Azure Active Directory (Azure AD). This script utilizes Azure AD cmdlets to search for the user, extract their object ID, and list their registered devices, providing valuable insights into user device management within your Azure AD environment.
5
views
Automatically Extract Specific File Extensions from a Zip Archive Using PowerShell
Learn how to use PowerShell to automatically extract files with a specific file extension from a zip archive. This step-by-step guide demonstrates the creation of a unique temporary folder, extraction of files from the archive, and selective copying of files with the specified extension to a destination folder. Discover an efficient way to manage and organize your zip archive contents based on file types.
1
view
PowerShell Script to Check If a Computer Belongs to a Specific OU in Active Directory
Learn how to use PowerShell to determine whether a computer, identified by its name, is part of a specified Organizational Unit (OU) in Active Directory.
5
views
Analyzing the Differences Between Two PowerShell Scripts
This exploration delves into the similarities and differences between two PowerShell Scripts.
4
views
How to Retrieve Microsoft 365 License Details with PowerShell
Learn how to use PowerShell and the Microsoft Online Services Module for Azure to retrieve comprehensive information about available Microsoft 365 licenses, including their names, service plans, and individual service plan details within each license.
6
views
Email Delivery Failure Analysis with Get-MessageTrackingLog in Exchange
This script queries the Message Tracking Log in your Exchange environment for email delivery failures within a specified date range. It extracts and displays key information about these failed emails, including timestamps, sender details, recipient information, message subjects, and the reasons for delivery failure. The script serves as a valuable tool for diagnosing email delivery issues and monitoring your email system's performance.
1
view
Automated Deletion of Expired User Accounts in Specific Organizational Units with PowerShell
This PowerShell script automates the process of identifying and deleting expired user accounts within specific Organizational Units (OUs) in Active Directory. The script allows you to set a criteria for expiration, such as accounts that have passed their expiration date, and provides flexibility in targeting specific OUs.
2
views
Automatic Cleanup of Old Files in a Folder with PowerShell
This PowerShell script automates the process of cleaning up outdated files within a specified directory. It calculates the age of each file based on its last modification date and removes files that are older than a defined threshold (e.g., 7 days). Here's how the script works:
2
views
Dynamic Console Color for Ping Status with PowerShell
This PowerShell script creates an engaging and interactive console experience by continuously pinging a specified target (8.8.8.8 in this example) and dynamically changing the console window's background and text colors based on the success or failure of each ping.
2
views
Creating Custom PowerShell Functions
This guide provides step-by-step instructions on how to create custom functions in PowerShell. A custom function allows you to encapsulate a specific set of instructions or tasks for reuse within your PowerShell scripts.
2
views
Windows Defender Malware Detection PowerShell Script
This PowerShell script checks for the presence and status of Windows Defender, Microsoft's built-in antivirus solution. If Windows Defender is installed and enabled, the script allows you to scan a specified directory for malware. It reports whether malware is detected or not and provides details on any threats found, including their names and actions taken.
1
view
Active Directory User Statistics PowerShell Script
This PowerShell script allows you to gather essential statistics about users in your Active Directory environment with ease. It provides a comprehensive overview of your user base, including the total number of users, the count of enabled users, and the count of disabled users. Use this script to maintain a clear understanding of your Active Directory user population and ensure proper user management.
3
views
Check Which Computers a User Is Logged Into Using PowerShell
This PowerShell script allows you to determine which computers a specific user is currently logged into. Simply specify the username and a list of computer names to check. The script establishes remote sessions to each computer, queries the active user sessions, and reports whether the specified user is logged in on each computer in the list.
2
views
Automated Batch Image File Renaming in PowerShell
#powershellscripting #powershell #powershelltraining #tutorial
This PowerShell script facilitates the automated renaming of image files in a specified directory. It iterates through each image file, pads the image name with leading zeros to ensure a consistent length of six characters, and then renames the file accordingly.
1
view