-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing CustomSettings.ini before TS execution #144
Comments
That is a custom plugin for MDT right? I don't fully understand the script's capabilities but keep in mind VBScript are not used in the PSD, all of that is now replaced with ps1. I also don't believe this feature is a native function in PSD either but I have a couple of options you can try:
As a simple example: In my cutomsettings.ini, I set: This is how I can control it dynamically but not sure what your Priority's would be based on to set the appropriate prefix...network or gateway perhaps? Is this what your looking for? |
It's not so much a custom module, as it is changing a couple lines in the file that I mentioned to make it rerun a gather before the TS kicks off. It executes on clicking the "Next" before it actually starts the process. I moved my OSDComputerName to my Default section since it is actually the same across all deployments, so there's no problem with me moving it there. I have my _SMSTSPackageName set to %TaskSequenceName% on %OSDComputerName%, which properly pulls the computer name, but does not show the TS name. Not a huge deal and I can just remove the TS name and be fine with that. Appreciate the insight. |
%TaskSequenceID% works if that helps. |
To be honest I got a bit confused here, if the _SMSTSPackageName=%TaskSequenceName% then what is set for %OSDComputerName%? Because the way you phrased it is a bit confusing. Also, as @PowerShellCrack mentioned, the PSD works differently than MDT, the first part is that it uses only PowerShell for the script/Wizard instead of VBScript. The second is that the solution is not a 100% replica of MDT, some things work differently some others don't or not yet implemented. Moreover the focus of the solution is to provide a secure way of imaging devices from anywhere, hence the IIS and certificates requirement and the move away from SMB for the file transfers. |
It's literally how I have the option phrased. It translates to "Running Clinical Configuration on SYM-12345". Quick easy way for me to see the TS I selected and make sure the PC auto-named properly. |
Ah OK, now I got it! Thanks! Sometimes it helps to have an example ;-) |
Under traditional MDT, I use a modification to the
DeployWiz_SelectTS.vbs
file that allows it to re-parseCustomSettings.ini
before the TS kicks off. I use this to fill in the task sequence name in the progress banner, as well as dynamically set the computer name based off of the device's serial number. I've made the same CS.ini changes in my PSD share, but am unsure of what I would need to change to get this working. If anyone knows how to do this or if there's some native way to do this that I'm overlooking, it would be greatly appreciated.The text was updated successfully, but these errors were encountered: