Powershell Object not being piped through to Functions

 ̄綄美尐妖づ 提交于 2019-12-02 06:19:16

This is expected behavior. The begin {} block runs before any pipeline objects are encountered, so you have no access to any parameters that come in through the pipeline in your begin block.

The process {} block is run once for each item, so the code you have in the begin block really needs to be put there (because it's specific to a single VM).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!