7 Replies Latest reply on Apr 11, 2016 6:15 AM by NDI_Landesk

    PowerShell script and registry change

    KrzysztofKrawczyk Apprentice

      Hello guys,

       

      I'm trying to change registry with my PowerShell script:

      Set-ItemProperty -Path "HKLM:\SOFTWARE\Intel" -Name LDAPUser -Value Admin

      it works when executing in Powershell console, but does NOT when distributing as package.

      I'm distributing on LocalSystem account. All package settings are standard. Distribution setting also rather standard.

      What am I missing?

      I made sure the execution policy is unrestricted on test computer.