Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,763 questions
The problem isn't the script that PowerShell runs, it's the way that PowerShell is launched. The "WindowStyle" parameter belongs in the PowerShell.exe command line.
Thank you for the clarification @Rich Matheisen .
I ran this in SSIS and the window still appears:
-F C:\Users\Me\Documents\SSIS\UnZipFilesScript.ps1 -WindowStyle Hidden
Any suggestions on how to fix the window issue?
It's not a parameter for your script, it's a parameter for PowerShell.exe: about_powershell_exe
Hi @Rich Matheisen
SSIS won't let me enter anything after the PowerShell.exe. There is a browse option there to find the exe file and that is it. The only location where I can enter anything is the location where I enter the script.
I don't have any SQL servers to try anything with. But this link (execute-powershell-script-from-ssis-package) looks to me as if you can run a process and supply commandline arguments.
Sign in to comment