Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Not able to run powershell script?

$
0
0

Under powershell, I get Unrestricted for this commend Get-ExecutionPolicy.

When I input .\ABC.psl, it returns not able to recognize '.\ABC.psl' as Cmdlet, number, command or executable file.

Location row: 1 , word: 14

.\ABC.psl <<<<<

CategoryInfo : ObjectNotFound: (.\ABC.psl:String) [], CommandNotFoundException

FullyQualifiedErrorId : CommandNotFoundException

Does anyone have any suggestions on what wrong it could be?
Thanks in advance for any suggestions

Scripts

# File is generated on 22-Jun-14 | Clean directory for the next update files
get-childitem D:\Temp\CSV -recurse |
 select -expand fullname |
 sort length -descending |
 remove-item


Thanks in advance for any suggestions



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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