PowerShell & Scripts
Collapse
Verified maintenance and automation scripts to repair, clean, or deploy Windows 11 efficiently.
-
Using PowerShell & Command-line Scripts Safely
-
Created by:
jmarket
- Published: 10-16-2025, 03:40 AM
- 13 views
- 0 comments
Using PowerShell & Command-line Scripts Safely
⚙️ Using PowerShell & Command-line Scripts Safely Category: Windows 11 • PowerShell & Command-line Scripts Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview Windows 11 includes several advanced administrative tools such as PowerShell, DISM, and Command Prompt. These tools provide system administrators and technicians with extensive control over Windows maintenance, deployment, and troubleshooting tasks. The scripts shared in this section are verified by PCHF S... -
Created by:
-
Deployment Automation Toolkit (DIS / MDT Integration Scripts)
-
Created by:
jmarket
- Published: 10-16-2025, 03:39 AM
- 0 comments
Deployment Automation Toolkit (DIS / MDT Integration Scripts)
Deployment Automation Toolkit (DIS / MDT Integration Scripts)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Lab
Version: 2.1 (October 2025)
Summary:
PowerShell automation suite for image capture and deployment using DISM and MDT.
Streamlines Windows 11 image mounting, servicing, and deployment creation.
Usage Example:
...Code:Mount-WindowsImage -ImagePath "C:\ISO\install.wim" -Index 1 -Path "C:\Mount" Add-WindowsPackage -Path "C:\M
-
Created by:
-
Windows Defender Offline Update and Quick Scan (PowerShell Script)
-
Created by:
jmarket
- Published: 10-16-2025, 03:38 AM
- 0 comments
Windows Defender Offline Update and Quick Scan (PowerShell Script)
Windows Defender Offline Update and Quick Scan (PowerShell Script)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Staff
Version: 1.2 (October 2025)
Summary:
Forces Defender to update signatures and run a quick scan from PowerShell.
Ideal for repairing Defender update failures or automating endpoint checks.
Usage:
Notes: • Built...Code:Update-MpSignature Start-MpScan -ScanType QuickScan
-
Created by:
-
Windows Update Reset and Repair (PowerShell Automation)
-
Created by:
jmarket
- Published: 10-16-2025, 03:38 AM
- 0 comments
Windows Update Reset and Repair (PowerShell Automation)
Windows Update Reset and Repair (PowerShell Automation)
Category: PowerShell & Command-line Scripts
Author: Microsoft Support / Modified for PCHF
Version: 3.0 (October 2025)
Summary:
Resets Windows Update components, clears the SoftwareDistribution and Catroot2 folders, and re-registers core update services.
Usage:
...Code:net stop bits net stop wuauserv net stop cryptsvc Del "%systemroot%\SoftwareDistribution" /s /q Del "%systemroot%\System32\ca
-
Created by:
-
Windows Cleanup and Maintenance Toolkit (PowerShell Script)
-
Created by:
jmarket
- Published: 10-16-2025, 03:38 AM
- 0 comments
Windows Cleanup and Maintenance Toolkit (PowerShell Script)
Windows Cleanup and Maintenance Toolkit (PowerShell Script)
Category: PowerShell & Command-line Scripts
Author: PCHF Staff / Community Toolkit
Version: 1.3 (October 2025)
Summary:
Automates Windows Update cleanup, temporary-file removal, log rotation, and Defender scan initiation—all via PowerShell.
Usage (sample commands):
...Code:Start-Process cleanmgr -ArgumentList '/sagerun:1' Remove-Item "$env:Temp\*" -Recurse -Force -ErrorAction SilentlyCon
-
Created by:
-
Windows Image Repair Sequence (SFC → DISM → Cleanup Commands)
-
Created by:
jmarket
- Published: 10-16-2025, 03:37 AM
- 0 comments
Windows Image Repair Sequence (SFC → DISM → Cleanup Commands)
Windows Image Repair Sequence (SFC → DISM → Cleanup Commands)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Staff
Compatibility: Windows 10 / 11 (25H2 supported)
Summary:
Sequential script to verify and repair system files using built-in Microsoft tools. Automates SFC, DISM CheckHealth, ScanHealth, and RestoreHealth operations.
Usage:
...Code:sfc /scannow DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /S
-
Created by:
-
Windows Image Recovery Sequence • SFC & DISM Repair Workflow (Windows 11 25H2)
-
Created by:
jmarket
- Published: 10-16-2025, 12:23 AM
- 0 comments
Windows Image Recovery Sequence • SFC & DISM Repair Workflow (Windows 11 25H2)
Windows Image Recovery Sequence • SFC & DISM Repair Workflow (Windows 11 25H2)
Category: Troubleshooting & Logs
Official Documentation: Microsoft Learn – DISM Overview
Publisher: Microsoft Corporation
Applies to: Windows 10, Windows 11 (25H2), and Windows Server 2025
Overview When Windows system files become corrupted or updates fail to install, it’s best to follow a structured repair process. This sequence ensures component integrity is restored safel... -
Created by:
There are no articles in this category.
Please log in to your account to view your subscribed posts.
Categories
Collapse
Article Tags
Collapse
There are no tags yet.
Latest Articles
Collapse
-
by jmarket⚙️ Using PowerShell & Command-line Scripts Safely Category: Windows 11 • PowerShell & Command-line Scripts Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview Windows 11 includes several advanced administrative tools such as PowerShell, DISM, and Command Prompt. These tools provide system administrators and technicians with extensive control over Windows maintenance, deployment, and troubleshooting tasks. The scripts shared in this section are verified by PCHF S...
-
Channel: PowerShell & Scripts
10-16-2025, 03:40 AM -
-
by jmarketDeployment Automation Toolkit (DIS / MDT Integration Scripts)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Lab
Version: 2.1 (October 2025)
Summary:
PowerShell automation suite for image capture and deployment using DISM and MDT.
Streamlines Windows 11 image mounting, servicing, and deployment creation.
Usage Example:
...Code:Mount-WindowsImage -ImagePath "C:\ISO\install.wim" -Index 1 -Path "C:\Mount" Add-WindowsPackage -Path "C:\M
-
Channel: PowerShell & Scripts
10-16-2025, 03:39 AM -
-
by jmarketWindows Defender Offline Update and Quick Scan (PowerShell Script)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Staff
Version: 1.2 (October 2025)
Summary:
Forces Defender to update signatures and run a quick scan from PowerShell.
Ideal for repairing Defender update failures or automating endpoint checks.
Usage:
Notes: • Built...Code:Update-MpSignature Start-MpScan -ScanType QuickScan
-
Channel: PowerShell & Scripts
10-16-2025, 03:38 AM -
-
by jmarketWindows Update Reset and Repair (PowerShell Automation)
Category: PowerShell & Command-line Scripts
Author: Microsoft Support / Modified for PCHF
Version: 3.0 (October 2025)
Summary:
Resets Windows Update components, clears the SoftwareDistribution and Catroot2 folders, and re-registers core update services.
Usage:
...Code:net stop bits net stop wuauserv net stop cryptsvc Del "%systemroot%\SoftwareDistribution" /s /q Del "%systemroot%\System32\ca
-
Channel: PowerShell & Scripts
10-16-2025, 03:38 AM -
-
by jmarketWindows Cleanup and Maintenance Toolkit (PowerShell Script)
Category: PowerShell & Command-line Scripts
Author: PCHF Staff / Community Toolkit
Version: 1.3 (October 2025)
Summary:
Automates Windows Update cleanup, temporary-file removal, log rotation, and Defender scan initiation—all via PowerShell.
Usage (sample commands):
...Code:Start-Process cleanmgr -ArgumentList '/sagerun:1' Remove-Item "$env:Temp\*" -Recurse -Force -ErrorAction SilentlyCon
-
Channel: PowerShell & Scripts
10-16-2025, 03:38 AM -
-
by jmarketWindows Image Repair Sequence (SFC → DISM → Cleanup Commands)
Category: PowerShell & Command-line Scripts
Author: Microsoft / PCHF Staff
Compatibility: Windows 10 / 11 (25H2 supported)
Summary:
Sequential script to verify and repair system files using built-in Microsoft tools. Automates SFC, DISM CheckHealth, ScanHealth, and RestoreHealth operations.
Usage:
...Code:sfc /scannow DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /S
-
Channel: PowerShell & Scripts
10-16-2025, 03:37 AM -