🖨️
Tool
Công cụ mạng
Script xử lý các lỗi "Windows cannot connect to the printer" phổ biến khi kết nối máy in chia sẻ trong LAN — chạy trên máy chủ chia sẻ hoặc máy con.
sua-loi-ket-noi-may-in-share-11b-709.ps1
# Sửa lỗi kết nối máy in chia sẻ — cần quyền Administrator
# Nhấp đúp bản .cmd để chọn chế độ, hoặc chạy trực tiếp:
# .\sua-loi-ket-noi-may-in-share-11b-709.ps1 -Role Client -Printer \\PC-KETOAN\Canon2900
💙
Tool
Tiện ích Windows
Liệt kê các lần màn hình xanh gần đây, mã lỗi (bugcheck), các lần tắt máy đột ngột, file minidump và gợi ý cách xử lý theo từng mã lỗi.
tool-phan-tich-loi-man-hinh-xanh-bsod.ps1
# Phân tích màn hình xanh (BSOD) — chạy với quyền Administrator để đọc đủ nhật ký
$tips = [ordered]@{
'0x000000ef' = 'CRITICAL_PROCESS_DIED — file hệ thống hỏng: chạy sfc /scannow và DISM /Online /Cleanup-Image /RestoreHealth'
🦠
Tool
Bảo mật & Diệt virus
Cập nhật mẫu virus, chọn quét nhanh / toàn bộ / USB / quét ngoại tuyến, rồi liệt kê mối đe doạ đã phát hiện — dùng Defender có sẵn trên Windows, miễn phí.
tool-quet-virus-microsoft-defender.ps1
# Quét virus bằng Microsoft Defender — chạy với quyền Administrator
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole('Administrators')) {
Start-Process powershell "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit
🔑
Tool
Tiện ích Windows
Xem Windows, Office đã kích hoạt chưa, loại key (Retail/OEM/Volume), 5 ký tự cuối của key và ngày hết hạn — chỉ đọc thông tin, không thay đổi hệ thống.
kiem-tra-ban-quyen-windows-office.ps1
# Kiểm tra trạng thái bản quyền Windows & Office — CHỈ ĐỌC, không thay đổi hệ thống
$statusText = @{ 0='Unlicensed (chưa có bản quyền)'; 1='Licensed (đã kích hoạt)'; 2='OOB Grace'; 3='OOT Grace';
4='Non-Genuine Grace'; 5='Notification (chưa kích hoạt)'; 6='Extended Grace' }
🧹
Tool
Script tự động
Xoá file tạm, cache Windows Update, thùng rác và mở Disk Cleanup — an toàn, không đụng tới dữ liệu cá nhân.
don-rac-windows-giai-phong-o-c.bat
@echo off
net session >nul 2>&1 || (echo Hay chay voi quyen Administrator! & pause & exit /b)
echo Dang don file tam...
📶
Tool
Công cụ mạng
Ping song song cả dải /24 trong vài giây, hiển thị IP đang online kèm tên máy (nếu phân giải được).
quet-ip-dang-hoat-dong-lan.ps1
param([string]$Subnet = "192.168.1", [int]$Timeout = 500)
$tasks = 1..254 | ForEach-Object {
$ip = "$Subnet.$_"
🔄
Tool
Công cụ mạng
Một file .bat xử lý 80% lỗi mất mạng: reset Winsock, TCP/IP, xoá cache DNS, xin lại IP từ DHCP.
reset-ket-noi-mang-windows.bat
@echo off
title Reset mang Windows
net session >nul 2>&1 || (echo Hay chay voi quyen Administrator! & pause & exit /b)
🧾
Tool
Tiện ích Windows
Xuất tên máy, hệ điều hành, CPU, RAM, ổ cứng, IP, MAC và số Serial chỉ với một lệnh — tiện cho kiểm kê tài sản IT.
script-kiem-tra-thong-tin-may-tinh.ps1
$cs = Get-CimInstance Win32_ComputerSystem
$os = Get-CimInstance Win32_OperatingSystem
$cpu = Get-CimInstance Win32_Processor | Select-Object -First 1