Service Microsoft Docs article Related commit history on GitHub Change details
You can also use the Item cmdlets, such as `Set-Item`, `Remove-Item`, and
the `Set-Item` cmdlet to append `;c:\temp` to the value of the `Path` environment variable, use the following syntax:
+```powershell
+Remove-Item -Path Env:Path
+```
+
+In this command, the variable is cleared. Note that the environment
+variable is referenced as an Item path and `\$` is not used.
+ ```powershell Set-Item -Path Env:Path -Value (\$Env:Path + ";C:\Temp") ```
You can also use the Item cmdlets, such as `Set-Item`, `Remove-Item`, and
the `Set-Item` cmdlet to append `;c:\temp` to the value of the `Path` environment variable, use the following syntax:
+```powershell
+Remove-Item -Path Env:Path
+```
+
+In this command, the variable is cleared. Note that the environment
+variable is referenced as an Item path and `\$` is not used.
+ ```powershell Set-Item -Path Env:Path -Value (\$Env:Path + ";C:\Temp") ```
You can also use the Item cmdlets, such as `Set-Item`, `Remove-Item`, and
the `Set-Item` cmdlet to append `;c:\temp` to the value of the `Path` environment variable, use the following syntax:
+```powershell
+Remove-Item -Path Env:Path
+```
+
+In this command, the variable is cleared. Note that the environment
+variable is referenced as an Item path and `\$` is not used.
+ ```powershell Set-Item -Path Env:Path -Value (\$Env:Path + ";C:\Temp") ```
You can also use the Item cmdlets, such as `Set-Item`, `Remove-Item`, and
the `Set-Item` cmdlet to append `;c:\temp` to the value of the `Path` environment variable, use the following syntax:
+```powershell
+Remove-Item -Path Env:Path
+```
+
+In this command, the variable is cleared. Note that the environment
+variable is referenced as an Item path and `\$` is not used.
+ ```powershell Set-Item -Path Env:Path -Value (\$Env:Path + ";C:\Temp") ```