我的问题是关于 PShell 的,我尝试使用的命令是 .\nvramcheck.ps1,响应显示有关 .\dmp2csv.ps1 的内容。该脚本曾经运行正常,但现在出现此错误。有人知道原因吗?或者如何修复?
The term 'C:\nvramcheck\dmp2csv.ps1' is not recognized as the name of
a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct
and try again.
At C:\nvramcheck\nvramcheck.ps1:169 char:21
+ $spiDUMP_array = & <<<< "$script_path\dmp2csv.ps1" $spiDUMP
+ CategoryInfo : ObjectNotFound: (C:\nvramcheck\dmp2csv.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
答案1
它说它试图访问另一个 powershell 脚本'C:\nvramcheck\dmp2csv.ps1
但找不到它,可能是因为它不存在或者您没有权限访问它。
我猜你从某个地方复制了这个脚本,但没有复制依赖的脚本'C:\nvramcheck\dmp2csv.ps1