Issue with " Get-Item -Path $param1 -Stream * "

When I execute the below command in Powershell, " Get-Item -Path path-to-file -Stream * ", I get an output which is different when its executed within the form l load script of Powerscript pro.

May I seek some clarification here. Ideally, I like to get the same value in both environments.

Hey @MuruGuru,

Can you paste the output you are seeing? I will try locally but it would be nice to compare.

Thanks for your response.

Within Powershell Pro Visual Studio 2019 Environment, In my Form_load,

The variable $hasTags contains “System.Management.Automation.Internal.AlternateStreamData” after execution of the below code.

$hasTags=Get-Item -Path $param1 -Stream *

Where as I get the below output in Powershell Native Interface when I execute “Get-Item -Path path-to-file -Stream *”

PSPath : Microsoft.PowerShell.Core\FileSystem::C:\Users\Administrator\monodevelop-monodevelop-7.8.0.1624.zip::$D
ATA
PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\Users\Administrator
PSChildName : monodevelop-monodevelop-7.8.0.1624.zip::$DATA
PSDrive : C
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : False
FileName : C:\Users\Administrator\monodevelop-monodevelop-7.8.0.1624.zip
Stream : :$DATA
Length : 26940873

Please give some hint to proceed further. Its a roadblock for me…