Hi @Varma ,
system variabeles can be set in PowerShell like this (admin permission is required to modify/add system variables !):
[Environment]::SetEnvironmentVariable("MYNewVariable", "MyTestValue", "Machine")
An existing variable can be read via PowerShell like this:
[Environment]::SetEnvironmentVariable("MYNewVariable", "MyTestValue", "Machine")
[Environment]::GetEnvironmentVariable("Path","Machine")
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten