PowerShell 2.0 and “The term 'Param' is not recognized as the name of a cmdlet, function, script file, or operable program”

后端 未结 4 1354
北荒
北荒 2020-12-29 00:59

I am running Windows 7 RTM. PowerShell 2.0 is installed by default. I am using the excellent Windows PowerShell ISE to edit my scripts. I have the following script:

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 01:54

    Also had this "kind" of problem, but I couldn`t run any of my ps1 scripts. Solution: Change encoding from UTF-8 (or which you have) to ANSI. Perhaps it will help someone too.

提交回复
热议问题