Computing.net: Question & Answers Forum Latest Questions

computing
  • 7
  • 7

I thought I could make a simple, one-line script to add the current user to the local admins group: runas /env /user:administrator “net localgroup administrators /add %USERDOMAIN%\%USERNAME%” …but it doesn’t work when run from a network drive because Administrator doesn’t have the ...