I'm working on a project upgrading laptops and PC's
We're using Altiris to push out the images and software apps
We have to create the PC/laptop in Altiris first, and I have found the way to do that as a batch when you have more than a few to do
We have also for some reason got to Pre-Stage (create) the PC's/laptops into the correct OU within AD
(This is the only way to do it, on the last upgrade we did, we used SYSPREP to add the PC to the domain, then move it to the correct OU - Not allowed to mess about with it that much this time round!)
I have found a command called DSADD, which will allow you to add Computers to the coorect OU from a command line...
So this works fine, and adds the PC with the name PUDDING into the "Domain Computers" container.
NOW, what I need help with is making this run in a batch file, so I can copy that line as many times as I need to, edit each line with a new PC name, and run it.
Everytime I try it, it just displays the first line in the batch file over and over again in the DOS window, and doesnt even add the bleedin computer!!
It also buggers up the command prompt window, in that every time I try to run something in it, it too just displays repeatidly
This one for all the IT people out there....
I'm working on a project upgrading laptops and PC's
We're using Altiris to push out the images and software apps
We have to create the PC/laptop in Altiris first, and I have found the way to do that as a batch when you have more than a few to do
We have also for some reason got to Pre-Stage (create) the PC's/laptops into the correct OU within AD
(This is the only way to do it, on the last upgrade we did, we used SYSPREP to add the PC to the domain, then move it to the correct OU - Not allowed to mess about with it that much this time round!)
I have found a command called DSADD, which will allow you to add Computers to the coorect OU from a command line...
dsadd computer "cn=pudding, ou=domain computers,dc=home,dc=com"
So this works fine, and adds the PC with the name PUDDING into the "Domain Computers" container.
NOW, what I need help with is making this run in a batch file, so I can copy that line as many times as I need to, edit each line with a new PC name, and run it.
Everytime I try it, it just displays the first line in the batch file over and over again in the DOS window, and doesnt even add the bleedin computer!!
It also buggers up the command prompt window, in that every time I try to run something in it, it too just displays repeatidly
Someone help me please
Cheers
Steve