简体   繁体   English

powershell内置函数未被识别为cmdlet的名称

[英]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.

相关问题 Powershell - 术语“=”未被识别为 cmdlet 的名称 - Powershell - The term '=' is not recognized as the name of a cmdlet Powershell 2.0-条件(Else)无法识别为cmdlet的名称,功能 - Powershell 2.0 - Conditional (Else) not recognized as the name of a cmdlet, function Powershell错误“术语'Get-SPWeb'未被识别为cmdlet的名称,函数......” - Powershell Error “The term 'Get-SPWeb' is not recognized as the name of a cmdlet, function…” Powershell-文件路径,未被识别为cmdlet的名称。 功能脚本文件 - Powershell - File path, is not a recognized as the name of a cmdlet. function script file 术语“​​​​​”不被识别为 cmdlet、函数、 - the term '​​​​​' is not recognized as the name of a cmdlet, function, 术语“...”未被识别为 cmdlet function 的名称 - The term '...' is not recognized as the name of a cmdlet function Azure函数-PowerShell,安装az cmdlet ::不将术语“ az”识别为cmdlet的名称 - Azure Function - PowerShell, installing az cmdlet :: The term 'az' is not recognized as the name of a cmdlet Powershell “'get-error' 未被识别为 cmdlet 的名称 - Powershell "'get-error' is not recognized as the name of a cmdlet PowerShell,术语“xxxxxx”未被识别为 cmdlet 的名称 - PowerShell, The term 'xxxxxx' is not recognized as the name of a cmdlet PowerShell 和 TFS | 术语“tfpt”未被识别为 cmdlet 的名称 - PowerShell and TFS | The term 'tfpt' is not recognized as the name of a cmdlet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM