Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, November 20, 2014 2:11 PM
I have a file (test.ps1) that I try to run and the command immediately returns with no errors. It just seems to do nothing. When I execute the statements individually, line by line, that are in the file I get the output that I expect. I have run 'set-exceutionpolicy Unrestricted' and when I run 'get-executionpolicy' I can confirm that the policy is indeed set. I am running the command as ./test.ps1 from the Windows PowerShell Console. What am I doing wrong?
Thank you.
Kevin
Kevin Burton
All replies (2)
Thursday, November 20, 2014 2:15 PM ✅Answered
I assume you are running this in a task sequence. Are you using a Run Command Line or a Run PowerShell Script step?
Daniel Ratliff | http://www.PotentEngineer.com
Thursday, November 20, 2014 2:39 PM ✅Answered | 1 vote
try .\Test.ps1
from the powershell prompt if you start to type the name of the script then use the TAB key it should auto complete with the correct syntax.