/build/static/layout/Breadcrumb_cap_w.png

Best Practices Question


Postinstall Task - Run .reg file

02/04/2015 2174 views

Hi All

Could someone advise me step to run .reg file as postinstall task in K2000?

Thank you

 

Answer Summary:
0 Comments   [ + ] Show comments

Comments


All Answers

0
how many lines are in your reg merge file?

I used to upload the reg file and run regedit /s thefile.reg but I switched to just putting the lines in my tasks so I could easily see what I am doing to the registry in the tasks.

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1  /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 3 /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d Administrator /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password! /f
start /wait reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /f

start /wait reg.exe delete "HKLM\SOFTWARE\wow6432node\dell\kace" /v InstallId /f
start /wait reg.exe delete "HKLM\SOFTWARE\wow6432node\dell\kace" /v MachineId /f

start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters" /v SearchList /d "tmccadmn.tmcc.edu,tmcc.edu,tmccacad.tmcc.edu" /f

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background" /v OEMBackground /t REG_DWORD /d 1 /f

start /wait msiexec /qn /i "\\kbox\client_3\agent_provisioning\windows_platform\ampagent-6.3.305-x86.msi" HOST=kbox.tmcc.edu

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v ipv6kill /d "reg.exe add \"HKLM\SYSTEM\CurrentControlSet\services\Tcpip6\Parameters\" /v DisabledComponents /t REG_DWORD /d 4294967295 /f"

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v iconcopy /d "xcopy c:\windows\w2d\links\*.* c:\users\administrator\desktop /q /y" /f

Answered 02/04/2015 by: SMal.tmcc
Red Belt

 
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