Troubles deploying a 64 and 32 bit install from the K1000
So i have an install i need to push out to x86 and x64 bit systems via software distribution from the K1000. I have a batch script in a zipped folder that runs as follows.
@echo off
if defined ProgramFiles(x86) goto AMD64
:x86
start /wait "install info goes here"
start /wait REGEDIT.EXE /S "file.REG"
goto end
:amd64
start /wait "install info goes here"
start /wait REGEDT32.EXE /S "file.REG"
goto end
:end
exit 0
And a .reg file
--- Windows Registry Editor Version 5.00---
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\CMGShield]
"AlwaysApplySDE"=dword:00000001
"AllowNonDomainActivations"=dword:00000001
Im running regedt32.exe to try and emulate the instructions below.
https://support.software.dell.com/k1000-systems-management-appliance/kb/131517
So far my x86 deployments are going just fine, perfect even, but my x64 deployments are still putting regsitry changes in WOW6432. I need them to get back to HKLM/software/windows/windowsnt/winlogon/cmgshield. If i run the .reg from a thumb drive or the desktop its just fine on the x64 machines too. The files still go where they need to be. But when i run everything through software distribution the x64 install breaks.
I hope this all makes sense.
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
9 years ago
since the client is 32bit it is calling the regedit from the the 32 area. you can either use the %sysnative% varible or uploading 2 reg files and for the 64 bit use hklm64\software\....
Comments:
-
So just %sysnative% in front of regedt32.exe? - superanalog 9 years ago
-
%windir%\Sysnative\ - SMal.tmcc 9 years ago
-
I will give that a try. Thank you! - superanalog 9 years ago
Posted by:
SMal.tmcc
9 years ago
here are other examples of sysnative
http://www.itninja.com/question/bitlocker-script
http://www.itninja.com/question/xcopy-not-working-in-kace-script-works-in-command-prompt
http://www.itninja.com/blog/view/use-kace-to-store-and-retrieve-bitlocker-recovery-keys
http://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx
http://support.microsoft.com/kb/942589
http://www.itninja.com/question/bitlocker-script
http://www.itninja.com/question/xcopy-not-working-in-kace-script-works-in-command-prompt
http://www.itninja.com/blog/view/use-kace-to-store-and-retrieve-bitlocker-recovery-keys
http://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx
http://support.microsoft.com/kb/942589