[英]powershell build-in function not recognized as the name of a cmdlet
The term 'Write-Host' is not recognized as the name of a cmdlet, function, script file, or operable program. 术语“写入主机”不会被识别为cmdlet,函数,脚本文件或可操作程序的名称。 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。
The term 'New-Object' is not recognized as the name of a cmdlet, function, script file, or operable program. 术语“新建对象”不会被识别为cmdlet,函数,脚本文件或可操作程序的名称。 Check the spelling of the name, or if a path was included, verify that the path is correct and try again
检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试
aka:Write-Host is build-in function in powershell. aka:Write-Host是PowerShell中的内置函数。 how to find root cause of that issue?
如何找到该问题的根本原因?
Update 更新
The same script works while executed in other dev machine. 在其他开发机器中执行时,相同的脚本可以工作。
update 更新
I have tried to set max memory of powershell for single instance to 1GB, and set max memory of powershell for single user to 100M. 我试图将powershell的单个实例的最大内存设置为1GB,并将单个用户的powershell的最大内存设置为100M。 It still not work.
它仍然无效。
Looks like there is a limit on number shell instances that can be run by a single user. 看起来可以由单个用户运行的数字shell实例存在限制。 Are you hitting that limit?
你达到了这个限度吗?
Ref: https://msdn.microsoft.com/en-us/library/ee309367(VS.85).aspx 参考: https : //msdn.microsoft.com/en-us/library/ee309367( VS.85) .aspx
MaxShellsPerUser: The maximum number of shells per user. MaxShellsPerUser:每个用户的最大shell数。 The default is 30.
默认值为30。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.