- 0
QuestionUsing Powershell or VBScript in a Task Sequence to rename computer before domain join - Windows 7
Asked by
Adminoob
Asked by
Adminoob
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Alright, I had this working fine in MDT, but I am trying a similar approach in SCCM to no avail; I added a package to SCCM with the necessary Powershell script (tested and working) to rename the destination PC with the SMBios computer name (Lenovo computers use the system s/n, which we use to identify them in Active Directory/SCCM). Right before the rename TS I have a command line running the PS comand to set the execution policy to unrestricted. These two TS' I put right after the configure Windows TS, it didn't rename the pc. I moved it to other locations, and cannot get it to work regardless. I figured the trouble might be with UAC, but then every application package I have created thus far works fine during the software install phase, but I tested my script within Windows and found that it worked as expected.
A couple points/questions:
1. I do NOT want to prompt for a computer name during any stage of the OSD, this must be a fully automated process.
2. Is VBScript a better option?
3. Should I perhaps try creating an MDT TS in SCCM and then mimic the process that used to work when all I was running was MDT?
4. Is there any better method to accomplish this?
Thanks!
Share this post
Link to post
Share on other sites