Skip to content

Run PowerShell scripts without displaying the console window.

Notifications You must be signed in to change notification settings

moutaouakkil/PsLauncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

PsLauncher

Run PowerShell scripts without displaying the console window. The closest way is the WindowStyle hidden switch available from PowerShell version 2 onwards:

PowerShell.exe -WindowStyle hidden MyScript.ps1

This will still display a temporary PowerShell window. To completely prevent the window from displaying use this vbs to call the PowerShell script:

Set objShell = CreateObject("Wscript.Shell")
objShell.Run("powershell.exe -WindowStyle hidden -File MyScript.ps1"), 0

Done!

About

Run PowerShell scripts without displaying the console window.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published