Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: PowerShell One-Liner: Removing a System Variable

    We've learned we can create system variables on a remote machine with the setx.exe command: PSH> setx -m remote.machine My_System_Variable VariableData However, setx doesn't give us a way to remove the variable. PSH> (new-object -com wscript.shell).environment("system").remove("My_System_Variable...
Page 1 of 1 (1 items)