Skip to content

Close-FileExplorer

Closes the File Explorer

(New-Object -ComObject Shell.Application).Windows() | %{$_.quit()}
exit 0 # success

This script has no configurable parameters.

An interactive directory of PowerShell scripts.