Shanda L.
asked on
Run Command Line -OSD SCCM 2012
I'm having issues with my task sequence running. Needing to add a registry key to the OS within the OSD task sequence. Im using run command line option. I enter cmd c/ reg add "HKLM\Software\Microsoft\W indows\Cur rentVersio n\Policies \System" /v "EnableFirstLogonAnimation " /t REG_DWORD /d 0 /f (which works if i open cmd as run as admin) in the command line box but its not running in OSD task sequence. What should I be looking at? I attached the smst log and my settings. I have also tried to creating a .bat file package and adding it. Please let me know what im missing.
smsts.log
OSD_task1.PNG
OSD_task2.PNG
smsts.log
OSD_task1.PNG
OSD_task2.PNG
The SCCM client is a 32bit application. Look in HKLM\Software\Wow6432Node\Microsoft\Windows\Current Version\Po licies\Sys tem and you'll find what you added.
Add the /reg:64 argument to force the 64bit registry view.
And there is no need to use cmd.exe, you can use reg.exe directly.
Add the /reg:64 argument to force the 64bit registry view.
And there is no need to use cmd.exe, you can use reg.exe directly.
C:\Windows\system32\reg.exe add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableFirstLogonAnimation" /t REG_DWORD /d 0 /f /reg:64
ASKER
Thank you. I didn't find the reg key in Wow6432Node; but im trying your command to see if there is a change.
Hi,
Two things: one you don't need cmd /c so take it out. You only need that for commands the redirect output. Reg is direct so doesn't need that.
The other point is that you are setting a machine setting so you don't need to use a run account. Use the default one, which runs as local system. This will NOT work for setting user profile registry keys (without hassle at least) but works fine with machine settings.
Mike
Two things: one you don't need cmd /c so take it out. You only need that for commands the redirect output. Reg is direct so doesn't need that.
The other point is that you are setting a machine setting so you don't need to use a run account. Use the default one, which runs as local system. This will NOT work for setting user profile registry keys (without hassle at least) but works fine with machine settings.
Mike
try to use dism and change registry inside the image
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
or create a batch file and in batch file give the reg key
and then
cmd.exe /c xxx.bat