Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

.ps1 script does nothing

$
0
0

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


Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>