While rewriting a PowerShell automation script to move machines in Active Directory, I had been trying to pass the MachineObjectOU task sequence variable to the PowerShell script within the command line task sequence. It constantly failed. I finally put in a cmd.exe task sequence to pause the build and allow me to interact directly with the task sequence. What I found out is that MDT and SCCM task sequence variables from a build process can only be accessed under the administrator account. In the screenshot below, the command line on the top is what was launched by the task sequence with no specified account credentials. The command line at the bottom was opened using domain admin credentials. As you can see, the command line on the top was able to access the task sequence variable, whereas the one on the bottom was not. If a task sequence uses any other account, task sequence variables are null.
19 July 2018
Home »
» Accessing MDT and SCCM Task Sequence Variables
Accessing MDT and SCCM Task Sequence Variables
Related Posts:
Uninstalling Adobe CS3 Applications Here is a script that silently uninstalls most all of the Adobe CS3 applications and suites. This same script can be run on all CS3 apps. In order to use this, it has to be in the root directory of the Adobe application ins… Read More
Automate Mounting WIM Files This script will allow you to painlessly mount WIM files for editing. It runs relative to its location it was executed from. Here is the link to download the file. '******************************************************… Read More
Using Sysprep to upgrade or replace a failed HDD This script will sysprep the HDD on one machine so that it can be swapped out in another PC. This can save considerable money in shipping when replacing a bad HDD or upgrading the OS in a remote office. You can use any mod… Read More
Editing Revit INI Files Here is a script that will make custom changes to the revit.ini file on user machines. You first open the script up and define the changes needed in the EditINIFiles subroutine. Currently, there are 4 changes I have in the … Read More
USMT 4.0 MDT/SCCM Migration This script will execute the USMT, creating a MIG file located on the selected location, either on the local machine, or on the network location. This is intended to be used for generating the MIG file for the MDT/SCCM ima… Read More
0 comments:
Post a Comment