Jump to content


Commands in Task Sequence

Recommended Posts

I am fairly new at SCCM. I have done the build and capture win7x64, with updates and software installed. I am now taking my captured image and appling it. I need to change things like the power settings, UAC and run a few other command line items.


To turn off UAC with a command line, it needs to run in the elevated command prompt. I am unsure how to do this in the task sequence. I have tried running under my SCCM domain admin Account, as .\administrator, with no account... all seem to fail.


I set the Disable 64-bit file system. no luck


In the task sequence It is after the "setup windows and configuration manager". I have also added a restart computer "current installed" before. still errors.



Any ideas on what I am doing wrong?

Share this post

Link to post
Share on other sites

Hi set a command line component in the TS and enter in


reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f


and set a time out of 1 min.



This should be done anywhere after the setup windows and configuration manager.......and then after this simply add a restart command...the disable UAC will immediately take affect with the restart, thus not requiring the first logon user to restart it.

Share this post

Link to post
Share on other sites



I was using

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft
\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f


It just sets there. I tried a time out but it said it erred due to a time out.


I will give the above command a try

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...