yalawadi Posted March 12, 2018 Report Share Posted March 12, 2018 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 Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now