- Aug
- 2,799
- 144
This works;
This also works;
This also also works;
This does not work;
From the help file;
Can anyone else duplicate this?
Joe
Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11
Name Value
---- -----
PSVersion 5.1.19041.7181
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.7181
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
This also works;
Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11 /output=r:\results.txt
E:\Utils>type r:\results.txt
Name Value
---- -----
PSVersion 5.1.19041.7181
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.7181
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
This also also works;
Code:
E:\Utils>pshell /s "$PSVersionTable" | tpipe /simple=11 /output=clip:
E:\Utils>type clip:
Name Value
---- -----
PSVersion 5.1.19041.7181
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.7181
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
This does not work;
Code:
E:\Utils>tmp /c tmp9: & pshell /s "$PSVersionTable" | tpipe /simple=11 /output=tmp9:
type tmp9:
From the help file;
/output=filename
Filename to write. This can be either a disk file or CLIP:. If it is not specified, TPIPE will write to standard output.
The output filename can also be any of the CLIPn: or TMPn: pseudo-devices.
Can anyone else duplicate this?
Joe
Code:
E:\Utils>whatver
_x64: 1
_admin: 1
_elevated: 1
TCC 36.00.42 x64 Windows 10 [Version 10.0.19045.7184]
BuildNumber Caption CSDVersion OSArchitecture Version
19045 Microsoft Windows 10 Pro 64-bit 10.0.19045
22H2