sid-500.com
PowerShell Last Operation Status Variable: $?
The $LASTEXITCODE variable returns a code that tells you whether the last operation was successful or not. There’s another variable that is similiar and it is called $?. $? tells us if someth…