开发者

What is Get-Command -CommandType Script?

What is Get-Command -CommandType Script? What kind of comma开发者_Python百科nds does it cover? Help about Script tells “-- Script: Script blocks in the current session.” but I am not sure what kind of script blocks it means. Are there cases when Get-Command -CommandType Script actually returns anything?


The get-command commandtype parameter reuses an enum that is used elsewhere in powershell. In other places where it's used (for example, in the parser), it will make sense to be of type Script. But in this case, for get-command, Script is not a value that is actually relevant for command types.

-Oisin

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜