MDT Windows 10 PRO RRS feed

  • Question

  • Hello, 

    I am trying to disable the Administrator account and prevent it from Logging on Automatically when the deployment finish and the machine reboots. However I use the command from MDT Run Command Line : net user Administrator /active:NO ... but it didnt disable the administrator account even after I reboot the machine couple of times. 

    Please help I need to complete the Windows 10 Image... but my Task sequence is aborting / failing 

    Tuesday, July 30, 2019 8:05 PM

All replies

  • Hello Bassim,

    In which state are you running this command? I do something similar with a script to disable the admin account and this runs during STATE RESTORE phase, after Windows Updates task, but before Restore User State task.

    What does the BDD log show? Any return codes for that command?

    ~ Darren

    Wednesday, July 31, 2019 5:44 PM
  • Hello, 

    I have this command as a Run Command Line in the State Restore I put it before the Restore User State and still the same error. Actually; the whole task sequence is aborting and I get a msg at the end that the deployment didnt complete successfully with 12 Errors and 8 Warnings. But I am sorry I should mention that I am trying to create a secondory account 

    put the account in the local admin group

    and disable the administrator account. The task sequence is aborting on this command. 

    net user "whatevername" "whateverpassword" /Add

    net localgroup Administrators "whatevername" /Add

    Wednesday, July 31, 2019 8:59 PM
  • Please excuse me I am sorry I have been tasked to create Windows 10 Image but I am not familiar with MDT much. so Here is the Error BDD.Log 

    Exception calling "SetBufferContents" with "2" argument(s): "The method or operation is not implemented." TaskSequencePSHost 7/31/2019 2:57:44 PM 0 (0x0000)

    At line:4 char:1
    + $RawUI.SetBufferContents(
    + ~~~~~~~~~~~~~~~~~~~~~~~~~ TaskSequencePSHost 7/31/2019 2:57:44 PM 0 (0x0000)
    NotSpecified: (:) [], MethodInvocationException TaskSequencePSHost 7/31/2019 2:57:44 PM 0 (0x0000)

    Litetouch deployment failed, Return Code = -2147467259  0x80004005 LiteTouch 7/31/2019 2:57:46 PM 0 (0x0000)
    Event 41014 sent: Litetouch deployment failed, Return Code = -2147467259  0x80004005 LiteTouch 7/31/2019 2:57:46 PM 0 (0x0000)

    Wednesday, July 31, 2019 9:06 PM
  • If you are unfamiliar with MDT, you should start with a simple configuration. Learn how the process works, test a couple deployments. Then work on your scripts and customization after you know that MDT works as intended and you have become a bit more familiar with it.

    MDT relies on using the local "Administrator" account to do everything. You can disable it, but do that towards the end of the task sequence if not at the very end, when MDT will no longer need to use the account.

    Daniel Vega

    Thursday, August 1, 2019 3:24 PM