Skip to main content

Recently Updated Pages

Ping-WithTimestampAndLog

Windows - Scripts System

Ping With Timestamp and Log Remove line 1 from each code block to remove the logging to file. T...

Updated 1 year ago by Ryan

Ping With Log

Windows - Scripts System

@echo off set /p host=host Address: set logfile=Log_%host%.log echo Target Host = %host% >...

Updated 1 year ago by Ryan

Compress WinSxS Folder

Windows - Scripts File System - Windows

Query service status. Track its state. sc query msiserver sc query TrustedInstaller Stop...

Updated 1 year ago by Ryan

Get-AllDisabledandInactiveComputers

Active Directory - Scripts

How to Find Disabled Computers in Active Directory Using PowerShell Report? For those who prefer...

Updated 1 year ago by Ryan

Outlook Ribbon's Font Size is Scaled Too Large

Outlook Bugs

    1. Open Calendar in a NEW window (right click on the calendar icon on the bottom left of th...

Updated 1 year ago by Ryan

Get-ADUserPasswordNeverExpires

Active Directory - Scripts

get-aduser -filter * -properties Name, PasswordNeverExpires | Where-Object { $_.passwordNeverExp...

Updated 1 year ago by Ryan

Get-UserAccountControl for Specific Machine

Active Directory - Scripts

<# .SYNOPSIS Retrieves UserAccountControl values for machine accounts across multiple server...

Updated 1 year ago by Ryan

Get DNS Diagnostics

Active Directory - Scripts

Generated by Claude.ai Can you generate a script that gathers the DNS logging information fr...

Updated 1 year ago by Ryan

Disable DNS Debug Logging

Active Directory - Scripts

Generated from claude.ai # GUI Script to disable DNS debug logging on multiple domain controll...

Updated 1 year ago by Ryan

Get List of All Attributes in AD

Active Directory - Scripts

# Import Active Directory module Import-Module ActiveDirectory # Retrieve schema information fo...

Updated 1 year ago by Ryan

Get User SID

Active Directory - Scripts

$objUser = New-Object System.Security.Principal.NTAccount("USERNAME") $strSID = $objUser.Transla...

Updated 1 year ago by Ryan

Get USERID From SID

Active Directory - Scripts

$objSID = New-Object System.Security.Principal.SecurityIdentifier ("S-1-5-21-2484819571-212552959...

Updated 1 year ago by Ryan

List Active Directory Users In Groups

Active Directory - Scripts

$Members = @() $domains = (Get-ADForest).domains foreach ($domain in $domains) { $Groups...

Updated 1 year ago by Ryan

Create daily scheduled task for AD snapshots

Active Directory - Scripts

#region Check if System is DC and logged-on user is admin $DomainRole = Get-WmiObject -Class W...

Updated 1 year ago by Ryan

Compare Two Azure/AD/M365 Groups and Print the Results

Active Directory - Scripts

Compare two AD Groups. $GROUP1=Get-ADGroupMember -Identity "Domain Admins" | select-Object Name ...

Updated 1 year ago by Ryan

Test gMSA Account on DCs

Active Directory - Scripts

# This will run on all Domain Controllers. . Replace 'adhealthcheck' with actual gMSA name Invok...

Updated 1 year ago by Ryan

Create Recovery Partition

Windows - Walkthroughs Windows Server and Client

#1. Create Recovery Partition Manually First, verify there is no recovery partition. Open Dis...

Updated 1 year ago by Ryan

Windows Command Line Cheatsheet

Windows - Cheatsheet

Powershell Enable ISE using powershell In the few months that I’ve been developing powershell, ...

Updated 1 year ago by Ryan

Get-AppLockerFileInformation

AppLocker - Walkthrough

Get-AppLockerFileInformation Reference Feedback Module: AppLocker Gets the f...

Updated 1 year ago by Ryan

Get ACL for Files and Folders

Active Directory - One Liners

The first PowerShell cmdlet used to manage file and folder permissions is get-acl; it lists all o...

Updated 1 year ago by Ryan