Recently Updated Pages
Ping-WithTimestampAndLog
Ping With Timestamp and Log Remove line 1 from each code block to remove the logging to file. T...
Ping With Log
@echo off set /p host=host Address: set logfile=Log_%host%.log echo Target Host = %host% >...
Compress WinSxS Folder
Query service status. Track its state. sc query msiserver sc query TrustedInstaller Stop...
Get-AllDisabledandInactiveComputers
How to Find Disabled Computers in Active Directory Using PowerShell Report? For those who prefer...
Outlook Ribbon's Font Size is Scaled Too Large
1. Open Calendar in a NEW window (right click on the calendar icon on the bottom left of th...
Get-ADUserPasswordNeverExpires
get-aduser -filter * -properties Name, PasswordNeverExpires | Where-Object { $_.passwordNeverExp...
Get-UserAccountControl for Specific Machine
<# .SYNOPSIS Retrieves UserAccountControl values for machine accounts across multiple server...
Get DNS Diagnostics
Generated by Claude.ai Can you generate a script that gathers the DNS logging information fr...
Disable DNS Debug Logging
Generated from claude.ai # GUI Script to disable DNS debug logging on multiple domain controll...
Get List of All Attributes in AD
# Import Active Directory module Import-Module ActiveDirectory # Retrieve schema information fo...
Get User SID
$objUser = New-Object System.Security.Principal.NTAccount("USERNAME") $strSID = $objUser.Transla...
Get USERID From SID
$objSID = New-Object System.Security.Principal.SecurityIdentifier ("S-1-5-21-2484819571-212552959...
List Active Directory Users In Groups
$Members = @() $domains = (Get-ADForest).domains foreach ($domain in $domains) { $Groups...
Create daily scheduled task for AD snapshots
#region Check if System is DC and logged-on user is admin $DomainRole = Get-WmiObject -Class W...
Compare Two Azure/AD/M365 Groups and Print the Results
Compare two AD Groups. $GROUP1=Get-ADGroupMember -Identity "Domain Admins" | select-Object Name ...
Test gMSA Account on DCs
# This will run on all Domain Controllers. . Replace 'adhealthcheck' with actual gMSA name Invok...
Create Recovery Partition
#1. Create Recovery Partition Manually First, verify there is no recovery partition. Open Dis...
Windows Command Line Cheatsheet
Powershell Enable ISE using powershell In the few months that I’ve been developing powershell, ...
Get-AppLockerFileInformation
Get-AppLockerFileInformation Reference Feedback Module: AppLocker Gets the f...
Get ACL for Files and Folders
The first PowerShell cmdlet used to manage file and folder permissions is get-acl; it lists all o...