puppet-windowsfeature icon indicating copy to clipboard operation
puppet-windowsfeature copied to clipboard

add command line parameters to powershell.exe

Open brajjan opened this issue 6 months ago • 0 comments

Pull Request (PR) description

Adds command line parameters to powershell.exe to not load powershell profile, hides the copyright banner at startup, create sessions that shouldn't require user input and sets executionpolicy to bypass.

Before

Executing: 'C:\Windows\system32\WindowsPowershell\v1.0\powershell.exe $ProgressPreference='SilentlyContinue'; Import-Module ServerManager; Install-WindowsFeature telnet-client'

After

Executing: 'C:\Windows\system32\WindowsPowershell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command $ProgressPreference='SilentlyContinue'; Import-Module ServerManager; Install-WindowsFeature telnet-client'

This Pull Request (PR) fixes the following issues

Fixes #175 Fixes #168

brajjan avatar Aug 18 '25 13:08 brajjan