Forum Discussion
skaky
Jul 14, 2024Copper Contributor
NEWBIE QUESTION POWERSHELL
Hello, I have just started learning Powershell and have too many questions . The command $PSVersionTable why are we adding $ in front of the command ? We have several other cmdlets likebut we do...
sdtslmn
Jul 14, 2024MCT
The $ sign is used in PowerShell to indicate a variable.
$PSVersionTable is a built-in variable that holds information about your PowerShell version.
Commands like Get-Certificate and Get-Acl are cmdlets, not variables. Cmdlets perform actions and don’t require the $ sign.
$PSVersionTable is a built-in variable that holds information about your PowerShell version.
Commands like Get-Certificate and Get-Acl are cmdlets, not variables. Cmdlets perform actions and don’t require the $ sign.