Jump to content


Nyhuus

Established Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Nyhuus

  1. I have no solution to the code you wrote, but have you considered to give it a try using powershell insted? http://blogs.technet.com/b/heyscriptingguy/archive/2014/10/01/use-powershell-to-create-local-users.aspx http://serverfault.com/questions/120229/adding-a-user-to-the-local-administrator-group-using-powershell
  2. EDIT: Forget my suggestion, i just realised that i missed the part where you tell you have allready tried the executionpolicy It sounds like the Execution Policy on the machine is perventing it from running. You are try to set it manually on the machine by opening a administrative powershell and write; Set-Executionpolicy ByPass We do set it via the client settings in SCCM 2012, in the "Computer agent" section, there is a "powershell execution policy" option.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.