Automatic Variables
suggest changeIntroduction
Automatic variables are created and maintained by Windows PowerShell. You can give a variable almost any name. The exceptions are the variables that PowerShell already manages. You will use these often. For example, $? indicates whether the last operation succeeded.
Syntax
$$- Contains the last token in the last line received by the session.$^- Contains the first token in the last line received by the session.$?- Contains the execution status of the last operation.$_- Contains the current object in the pipeline
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents