"...with "secrets" (passwords, product keys, etc.) being more difficult to 
export and import."

Speaking of which.....

.... Is there a way to export and import a task sequence including passwords 
for steps that are run as a specific user?

I have about a half dozen steps in my task sequence that run as a specified 
user.  When I export / modify / import the XML I always forget at least one 
when I have to go back and manually re-enter the passwords.

Thanks
Mike



From: [email protected] [mailto:[email protected]] On 
Behalf Of Michael Niehaus
Sent: Thursday, June 13, 2013 1:31 PM
To: [email protected]; [email protected]
Subject: RE: [mssms] RE: [MDT-OSD] Script to edit task sequences?

It's a rather nasty process involving SMS_TaskSequencePackage and 
SMS_TaskSequence objects, with embedded objects for all the steps and groups.  
Personally, I would avoid trying to do the manipulation this way.  Yes, it's 
possible, no, it's not fun.

As an alternative, you can more easily export the existing task sequence as an 
XML blob, modify the XML, then import it back in again.  Even that is a little 
tricky, with "secrets" (passwords, product keys, etc.) being more difficult to 
export and import.

Thanks,
-Michael

From: [email protected] [mailto:[email protected]] On 
Behalf Of Daniel Ratliff
Sent: Thursday, June 13, 2013 10:24 AM
To: [email protected]; [email protected]
Subject: RE: [mssms] RE: [MDT-OSD] Script to edit task sequences?

Hmm, I looked through the WMI classes and such a couple months back and 
couldn't find anything. I'll take another look too!

Daniel Ratliff

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Trevor Sullivan
Sent: Thursday, June 13, 2013 12:46 PM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [mssms] RE: [MDT-OSD] Script to edit task sequences?

Daniel,

As far as I know, that is not necessary. All the appropriate WMI classes are 
defined, for each type of task sequence step, which allow you to manage the 
task sequence without exporting it first. I will have to do some research and 
write up an example.

Cheers,
Trevor Sullivan
[WordPress Logo 32px]<http://trevorsullivan.net/>   [Twitter Logo 32px] 
<http://twitter.com/pcgeek86>    [Facebook Logo 32px] 
<http://facebook.com/trevor.sullivan>     [Google+ Icon 32px] 
<https://plus.google.com/106658223083457664096>

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
 On Behalf Of Daniel Ratliff
Sent: Thursday, June 13, 2013 9:15 AM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] Script to edit task sequences?

Anyone ever found/created a script that will edit a task sequence? The only way 
I can see if exporting the TS, editing, and re-importing it. It doesn't look 
like there is a way to do this automatically via PowerShell/WMI.

Any other ideas?

Daniel Ratliff


The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.


The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues 

<<inline: image001.gif>>

<<inline: image002.gif>>

<<inline: image003.gif>>

<<inline: image004.gif>>

Reply via email to