SCCM deploy OS

Miki-3491 100 Reputation points
2024-09-13T05:57:52.4966667+00:00

My Requirement:

In the task sequence, I need to assign computers to a specific OU based on the model and rename the computer according to the serial number following a set rule.

My Issue:

When redeploying the OS on the same machine, there is already a computer account with the same name in OU, and the device can be found in the SCCM console. Since the OU already contains a computer account with the same name, the task sequence cannot rename the computer as required, I tried using a script to delete the previous computer account before renaming, it works ,but this results in two devices with the same name still showing up in the SCCM console.

Is there a better solution for this? Are there better Task Sequence workflows for repeatedly installing the operating system?

Your help is much appreciated,thanks.

problem solved

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
992 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 45,231 Reputation points Microsoft Vendor
    2024-09-13T07:40:12.3+00:00

    Hi, @Miki

    Thank you for posting in Microsoft Q&A forum.

    Here are the possible solutions per my experience:

    1. One possible solution is like your solution, use a script to move the existing computer account to another OU before renaming the computer.
    2. Another option is to use a different naming convention that includes a unique identifier, such as the MAC address or UUID, to avoid conflicts with existing computer accounts. This can be achieved by modifying the task sequence to use a custom script to generate the computer name based on the unique identifier.
    3. It is also recommended to periodically clean up inactive computer accounts in SCCM to avoid clutter in the console. This can be done using the "Delete Aged Discovery Data" maintenance task in SCCM.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.