Forum Discussion
hexler
Apr 20, 2022Copper Contributor
Hello, I ran into a strange problem when I was using PowerShell 5.1
I want to use the following command: Call PowerShell script through CMD C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe /c D:\\test.ps1 -test But I ran into a very strange ...
fatherjack
May 23, 2022Copper Contributor
"/c" is not a PowerShell parameter. All PowerShell parameters begin with '-'.
Check for a profile on the problem server, or run the command with -NoProfile to avoid load it on any servers. Loading the profile might be adding the extra time that you are observing.
Check for a profile on the problem server, or run the command with -NoProfile to avoid load it on any servers. Loading the profile might be adding the extra time that you are observing.