Hi Luc,
could you check following screenshot .
here it started with get-vm command and continue using pipeline for filtering poweredon vms.after that one more pipe to get datastore .
is it possible to change the object type from virtualmachine to datastore .
$_ will remain vmobject till the end of pipeline or can it be altered??
No, you will have a Datastore object at that point.
This is an issue with intellisense.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No, you will have a Datastore object at that point.
This is an issue with intellisense.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Not sure how it happened but its a serious bug ,
entirely changing the concept of pipeline.should I switch to some other IDE.
The Visual Studio Code (VSC) editor PowerShell extension shows the same behaviour.
Not sure if there are any IDE that do this correctly.
Btw, you seriously should consider moving to the VSC.
This is not really a PowerShell issue like I said, it's an intellisense flaw.
I suggest you open an issue on the VSC PowerShell Extension git.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks I m checking this.