Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, February 11, 2014 4:22 AM
Hi Guys
We are building machines in SCCM 2012 environment for three different groups (ABC, DEF, XYZ) using same task sequence. We got a requirement to add machines to respective Security groups OU in Actice Directory after machine build in completed.
I am looking to get a popup for deployment engineer at the start of tasksequence to enter group code ( (ABC, DEF or XYZ). Based on the value, a custom variable is assigned.
Later, With in the task sequence based on query, we can automatically move machine to requisite group.
I have read other posts where we can use HTA to achieve similar. Because of strict Change in place, I am not allowed to modify boot image. Is there any other way without using HTA?
At the moment, we are using below script to get a popup for Computer name. Is it possible to get a similar script to get a popup during task sequence for creating and adding value to custom variable?
set env = CreateObject("Microsoft.SMS.TSEnvironment")
'Set the OSDComputerName variable to the detected name assuming this is a known computer
env("OSDComputerName") = env("_SMSTSMachineName")
'If the detected name contains "MININT" then this is an unknown computer so ask for a name
If InStr(1,env("OSDComputerName"),"MININT",1) then
Name = inputbox("Rename Computer" ,"Please enter the new Computer name below:",env("OSDComputerName"),400,0)
env("OSDComputerName") = Name
env("ComputerName") = Name
env("HostName") = Name
End If
Thanks for your help
Regards
veday
Server Engineer
All replies (2)
Tuesday, February 11, 2014 5:44 AM ✅Answered | 1 vote
Hi,
You need to use for instance ServiceUI from the MDT toiolkit to be able to show a prompt in a task sequence, here is an example on how to do it. http://ccmexec.com/2012/10/block-installation-of-non-supported-computer-models-in-configmgr/
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter @ccmexec
Wednesday, February 12, 2014 1:34 AM ✅Answered
Thanks Jorgen
Your post was helpful. I was able to research more about ServiceUI.exe to resolve my issue.
I referred to below link and comes out to be perfect solution for my requirement
http://halcoberry.blogspot.com.au/2012/04/tick-box-hta-in-sccm-task-sequence.html
Thanks everyone
Regards
Veday
Server Engineer