设置磁盘为脱机 offline disk Set-Disk -IsOffline $true 设置磁盘为联机 online disk Set-Disk -IsOffline $false 磁盘初始化 convert mbr 或convert gpt Initialize-Disk -PartitionStyle <mbr/gpt> 清空磁盘的所有分区 clean Clear-Disk -Remove
Clean-CMUpdatePackage 清理Windows Defender 定义文件缓存: powershellCopy Code Clear-MpThreatCatalog 清理Windows 更新日志和临时文件: powershellCopy Code Remove-Item -Path "$env:LOCALAPPDATA\Temp\WindowsUpdateLogs\*" -Force -Recurse 清理PowerShell 缓存: powershellCopy Code Clear-Host 清理用户临时文件和...
12 ## Report Mode iex (iwr 'https://raw.githubusercontent.com/name/disk-cleanup/main/disk-cleanup.ps1') ## Cleanup Mode Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/name/disk-cleanup/main/disk-cleanup.ps1' -OutFile 'disk-cleanup.ps1' ; & '.\disk-cleanup.ps1' -clean...
在虚拟网路,实时快照,拖曳共享文件夹,支持PXE等方面均有特别之处,使用vmware,用户可在单一的桌面上...
Script to use disk clean up from GPO Scripts folder inside the SYSVOL share in empty SDDL Values for Event Log Access Seacrhing computer's OU or DN in WMI filter Searching all GPO settings Securing Group Policy Template and importing it to windows server 2016 Group Policy Security event log...
It is the very most straightforward method for PowerShell to get free disk space operation where all you can do is: Show all the drives and space allocation on the computer: Step 1: Tap the Win + R button together to run the Run command on your device. Step 2: Type PowerShell in ...
You can use this command when troubleshooting to temporarily rule out the Windows Firewall. It will be enable on next restart or when you enable it using the command below. Do not stop the Windows Firewall service (MPSSVC) or Base Filtering Engine (BFE) service as way to rule ou...
Do you want to download Command Prompt on your Windows 10/11 computer? In this post, we will show you where to download such a tool. Read More How to Open PowerShell on Windows? Way 1: From Start PowerShell is a downloaded app in your Windows computer. You can click the Start button...
This guide aims to introduce multiple ways to check disk space with PowerShell and an alternative tool to show disk usage.
Use this command to clean and optimize content from text files. Sometimes text files have blank lines, or the content has trailing spaces. These sorts of issues can cause problems when passing the content to other commands.This command will strip out any lines that are blank or have nothing ...