Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 96
  • Last Modified:

SCCM OSD HTA File

Hi All,

The interface needs to capture the following information:
•      User of the Device and/or location.  This will go in the AD “Description” field.
•      Employee’s ID.  This will need to go into the AD “EmployeeID” field in attribute.
•      The OU to put the device in correct OU.

All of that information needs to be written to AD during the image process, likely after the device joins the domain so we don’t have permissions issues.  That’ll mean storing as Task Sequence variables. the AD OU portion to be forced choice, meaning the tech’s will have a list to choose from (e.g. dropdown/combo box).

Can anyone please provide a script or HTA file
0
Gaurav Singh
Asked:
Gaurav Singh
  • 2
1 Solution
 
Mike TLeading EngineerCommented:
Hi,

That's a very ask, especially for free! I once re-wrote a HTA that joined the domain and validated the name, but nothing as complex as what you are asking.

The fundamental problem with each piece of info is that you are asking a human to type into a free form field, and with the best will in the world, people make mistakes and mis-type data or worse, get lazy and type any old rubbish just to get rid of the form. Most of the effort I spent on the HTA was to use a regular expression to heavily restrict what anyone could enter.

Do you have any such restrictions? Not allowing symbols (only alpha-numeric) is probably top of the list.

With regards the AD user, location and Employee ID, this requires an account setup with write permissions to AD. How do you use the info later? I'm just wondering how necessary it is. I've found that managers ask for X and it's done and no-one ever, ever makes use of the info.
It also predicates that machines belong to specific users and never move. Is that really true?

As for the Move OU step, that's the easiest, with a VBS script and a parameter, but how many OUs do you have to move to? I generally worked on systems that kept it simple: one OU that was either desktop or laptop. This meant machine types were treated equally, so it didn't matter what role users do.

You need to give a bit more detail, as above.

Mike
0
 
Mike TLeading EngineerCommented:
This question is really more suited to a consultancy piece of work - i.e. not free; I can give advice but don't have time or resources to give a full solution and neither do other experts.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now