PowerShell Cmdlets, Get-________ code line modification to get output in Text file

JoeP
SilverLounger
Posts: 2051
Joined: 25 Jan 2010, 02:12

Re: PowerShell Cmdlets, Get-________ code line modification to get output in Text file

Post by JoeP »

If you open a command prompt does pwsh start ps7?
Joe

User avatar
DocAElstein
4StarLounger
Posts: 545
Joined: 18 Jan 2022, 15:59
Location: Re-routing rivers, in Hof, Beautiful Bavaria

Re: PowerShell Cmdlets, Get-________ code line modification to get output in Text file

Post by DocAElstein »

You do not have the required permissions to view the files attached to this post.
I seriously don’t ever try to annoy. Maybe I am just the kid that missed being told about the King’s new magic suit, :(

JoeP
SilverLounger
Posts: 2051
Joined: 25 Jan 2010, 02:12

Re: PowerShell Cmdlets, Get-________ code line modification to get output in Text file

Post by JoeP »

I'm just guessing but maybe the VBA script needs the full path to the executable. Or try pwsh.exe instead of just pwsh first.
Joe

User avatar
DocAElstein
4StarLounger
Posts: 545
Joined: 18 Jan 2022, 15:59
Location: Re-routing rivers, in Hof, Beautiful Bavaria

Re: PowerShell Cmdlets, Get-________ code line modification to get output in Text file

Post by DocAElstein »

Thx, Joe, I will experiment a bit with that idea later and report back if I get anywhere.
I seriously don’t ever try to annoy. Maybe I am just the kid that missed being told about the King’s new magic suit, :(