• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Gerjan
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Gerjan

    @Gerjan

    0
    Reputation
    188
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Gerjan Unfollow Follow

    Latest posts made by Gerjan

    • RE: Problem with snapin and client registery keys

      I have tried many ways and it seems that powershell can’t do this or i missed something.

      What i have tried now is to make a snapin pack with psexec.exe and a batch file.
      Also in this batch i can’t write to HKCU.

      I used now the following code to store the key and this works for now. It’s not a nice solutions but it works.

      If anyone can give me the trick to do this in powershell, let me know.

      PsExec.exe -i -s -u %COMPUTERNAME%\%username% -p -nobanner -accepteula -i REG ADD "HKLM\SOFTWARE\Test" /v "Machinenummer" /t REG_SZ /d %COMPUTERNAME% /f
      
      posted in FOG Problems
      G
      Gerjan
    • Problem with snapin and client registery keys
      Server
      • FOG Version: 1.4.4
      • OS: CentOS 7
      Client
      • Service Version: 0.11.12
      • OS: Windows 10
      Description

      I have a problem with a Powershell script.
      I want to add some register keys to all clients. Everything in this Powershell script is working just fine only for the register keys. Snapin task give no errors.
      I have read a article on the internet that the service on the client is running as SYSTEM user.
      How can i do this within a Powershell script?

      Here is some of my register keys within the powershell script.

      New-Item -Path HKCU:\Software\Test -Force
      New-ItemProperty -Path "HKCU:\SOFTWARE\Test" -Name "Machinenummer" -Value $env:computername -PropertyType String -Force | Out-Null
      
      
      posted in FOG Problems register snapins windows 10
      G
      Gerjan