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.
2
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.
3
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.
1
view
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.
1
view
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.
1
view
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
Batch File Renaming Using PowerShell with CSV Mapping
This PowerShell script automates the batch renaming of files in a specified directory based on a mapping provided in a CSV file. The CSV file contains two columns, "OldfileName" and "NewfileName," representing the original and desired names of the files.
3
views
Display Duration of MP4 Files using PowerShell and FFmpeg
Learn how to use PowerShell in conjunction with FFmpeg to extract and display the duration of multiple MP4 video files in a specified directory.
3
views
Comprehensive Email Delivery Failure Report with CSV Attachment
This PowerShell script generates a detailed email delivery failure report covering a specified time range. The script queries the Microsoft Exchange Transport Log using Get-MessageTrackingLog to identify failed email deliveries. The relevant information, including timestamp, sender, recipients, message subject, and delivery failure reasons, is extracted and stored in both an HTML email body and a CSV attachment.
#exchange #powershellscripting #edge #transportservice
5
views
Convert GMT to IST Timezone in PowerShell
Learn how to convert a date and time from GMT (Greenwich Mean Time) to IST (Indian Standard Time) using a PowerShell script. This script demonstrates how to find the current GMT time, specify the IST time zone, and perform the conversion, allowing you to work with time zone differences in your PowerShell scripts or applications.
4
views
Find and Sort Files by Last Access Time with PowerShell
This PowerShell script allows you to locate files within a specified folder and its subdirectories based on their last access time. It then sorts and presents the files in ascending order according to their last access time.
Automated User Account Disabling Based on Last Logon Timestamp
This script automates the process of disabling user accounts in Active Directory based on a specified threshold for the last logon timestamp. By regularly checking user accounts, it identifies those that have not been used for a defined period (e.g., 90 days) and disables them to enhance security and manage Active Directory more efficiently.
1
view
Create a ZIP Archive from Selected Folders and Their Contents with PowerShell
Learn how to use PowerShell to create a ZIP archive that includes specific folders and all their contents. This script allows you to select particular folders from a source directory and compress them into a single ZIP file.
1
view
Creating a Compressed Archive with Exclusions in PowerShell
This PowerShell script demonstrates how to create a compressed archive of a folder while excluding specific folders from the archive. Exclusions are particularly useful when you need to selectively archive content from a directory, omitting folders that are not required in the compressed file.
1
view
Automated Removal of Disabled Computer Accounts in Active Directory Using PowerShell
Simplify Active Directory maintenance with an automated solution for removing disabled computer accounts using PowerShell. This script streamlines the process by identifying and eliminating disabled accounts, enhancing directory hygiene and optimizing resource allocation.
1
view
Individualized Bulk Password Management for Active Directory Users with PowerShell
This dynamic PowerShell script offers an individualized approach to bulk password management for Active Directory users. By utilizing a dictionary that maps each user's username to a unique password, administrators can ensure tailored security measures for every account.
5
views