The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.

Forum Discussion

hileman249's avatar
hileman249
Visitor
7 years ago

Windows Environmental Variables not working via One2Many in Powershell or Batch Files

Hi, I cannot get any windows environmental variables to work in powershell or batch files, such as %useranme% etc.  I am trying to run this simple powershell script.  It works when I run it directly on the user's machine, but not from Logmein:
Add-LocalGroupMember -Group "Administrators" -Member $env:username