Scripting Question

Trying to add a registry file with k1000

04/12/2017 2201 views
Hey guys, a little stuck here....
Im trying to add this reg file with the K1000...

Windows Registry Editor Version 5.00

;Microsoft Edge
;File Types: .htm, .html

;File Types: .pdf

I did try the 'Registry' under 'Configuration Policies' using only the keys alone and it came back as a fail when I ran it
I called it in a bat & cmd script, it downloaded but did no execute
I tried to import it with the script as well and no luck

I have tried everything i can search for and not having any luck

What am I doing wrong?
Any help is appreciated.

1 Comment   [ + ] Show comment


  • Unless you are running the script as the logged in user the registry keys will try to import to the SYSTEM user. Keep that in mind when the keys are in HKEY_CURRENT_USER. Also remember that the KACE client is 32bit so 64bit keys are more tricky.

Community Chosen Answer

I have never done it as gwir suggests but that makes sense. I have always scripted it, uploaded the registry  file and a batch file and run the batch to call the reg file, like

@echo off

regedit /S filename.reg

as Task 1 Verify. Run a batch file

Answered 04/12/2017 by: rockhead44
Red Belt

All Answers

If you want to do it with a script add your reg file as an attachement and configure this task :

Hope this help

Answered 04/12/2017 by: gwir
Brown Belt

thanks guys...
I tried both ways you suggested and they went through as Succeeded. However no changed were actually made in the registry. ...I ran it as 'Chucksteel' suggested as 'Logged in User'. (I actually tried it on all 'Windows Run as') with no joy.

We are using x64 machines, does this differ?
Would have never thought that a simple reg change can be such a challenge.

Answered 04/12/2017 by: vjc
Senior Yellow Belt

  • Did you run as logged in user with the /reg:64 flag? The KACE agent is a 32bit application so any child processes will also be in the 32bit context. The /reg:64 flaf gives reg.exe access to the 64bit portion of the registry.
For HKCU, there's no separation for "bitness", so adding /reg:64 makes no difference. Yes, you'll notice some stray crud there in a 'Microsoft\Active Setup' branch (I never have got round to finding out which product puts that there...) but nothing else.
Answered 04/14/2017 by: VBScab
Red Belt

I tried it as Local and Logged-in user with the /reg:64 and it stated Succeeded, however it didn't change anything.
I know the script works as after it downloads I run it and it does the changes.

I even tried it as Verify "run a batch file" and even 'On Success' and added the text into the script, it stated Succeeded but no changes were made.

I ran a simple notepad.exe at the end of the script to test whether it executes after the download (thinking that it does not execute) but it does, notepad opens fine but no changes to the registry.

So I'm stuck!
Answered 04/17/2017 by: vjc
Senior Yellow Belt

  • I have the same problem now vjc......
    Did you ever get his resolved ?
    Would you mind sharing if you did.?
    Have tried all the know methods to deploy a ,reg file.....no luck.
    Even though the task says succeeded.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ