Skip to content

close-file-explorer

Closes the File Explorer

#Requires -Version 5.1

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

This script has no configurable parameters.

An interactive directory of PowerShell scripts.