agarabaghi Posted February 20, 2013 Posted February 20, 2013 So I am having some trouble getting my MDT to deploy a registry change. I have a folder "WUserver" and i add it as an application with source files, with the command line "cmd.exe /c WUserver.cmd" There are 3 files in the folder in the Application deployment folder: regedit.exe WUserver.cmd (this is what the .cmd has in it "reg import WUserver.reg") WUserver.reg which i exported from a registry When i select that application in the list from MDT it does not make a change, but if i run the .cmd file from a command prompt it works fine. Any clues? Im going to try to change the cmd line in MDT to reg import WUserver.reg Any clues?
VeryPC_Tom_M Posted February 20, 2013 Posted February 20, 2013 Which OS are you trying to apply the .Reg to? When I was deploying a .Reg in Windows 7, I just used regedit.exe /s background.reg called from a batchfile, which was in turned called as an app by MDT.
agarabaghi Posted February 20, 2013 Author Posted February 20, 2013 I tried that line in the .cmd file... are you saying i should make it WUserver.bat ?
agarabaghi Posted February 20, 2013 Author Posted February 20, 2013 Like i said it works when you run it from the CMD prompt manually... WUserver.cmd that is... but during deployment it does not seem to want to run ...
VeryPC_Tom_M Posted February 20, 2013 Posted February 20, 2013 I don't think there's much of a difference between .cmd and .bat (only Error level reporting). Are you running it as an application, or trying to call it as a command line?
agarabaghi Posted February 20, 2013 Author Posted February 20, 2013 Im loading it into MDT as an application with source files, and then it ask for the command line, and im using the same one that ive been using for all my other applications. Im trying the regedt32.exe file seems liek there might be an issue with running the 64 vs 32..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now