Jump to content
DeployCentral

yalawadi

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by yalawadi

  1. Hello,

    Anyway I can unjoin a machine before imaging it? We sometimes reimage the same machine but under a different name depending on the department, which causes duplicates in AD.

    When we reimage and rename the same machine and join it to AD, it adds the same machine but under a different name. Can we run a task before the image is applied to unjoin the domain? Without asking the techs to manually remove the machine from AD before imaging?

    Something like:

    cmd.exe /C wmic.exe /interactive:off ComputerSystem Where name="%computername%" call UnJoinDomainOrWorkgroup UserName="ad" Password="password"

    The above command works in a normal cmd.exe interface when I run it inside windows. How can I do that through smartdeploy? 

    --Yousef

×
×
  • Create New...