Forum Discussion

Sandeepkv3003's avatar
Sandeepkv3003
Copper Contributor
Oct 18, 2021

Powershell command to check output of last executed command

Just like in Linux, you can use $? to find the output of last command executed, is there any powershell command that I can use on the command line?

 

I tried $? but it returns True or False.

Resources