Skip to content

Conversation

@brajjan
Copy link

@brajjan brajjan commented Aug 18, 2025

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 brajjan force-pushed the add-cli-parameters branch from 5f98649 to f76a779 Compare August 18, 2025 14:28
@brajjan brajjan force-pushed the add-cli-parameters branch from f76a779 to 9a54a1f Compare August 18, 2025 14:37
@brajjan brajjan changed the title add command line parameters to powershell.exe WIP: add command line parameters to powershell.exe Aug 18, 2025
@brajjan brajjan marked this pull request as draft August 18, 2025 14:43
@brajjan brajjan changed the title WIP: add command line parameters to powershell.exe add command line parameters to powershell.exe Aug 19, 2025
@brajjan brajjan marked this pull request as ready for review August 19, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing command line parameters Module doesn't work with modern Powershell

1 participant