Take a look at smsts.log. All run command tasks look like this: Smsswd.exe /run:PRI00001 “your command here”
You only ever need to use cmd /c when your command doesn’t actually have a .exe associated it. If its just a part of cmd.exe. I always use Niehaus’ old post as a reference: http://blogs.technet.com/b/mniehaus/archive/2007/03/07/adding-custom-tasks-to-bdd-2007-task-sequences.aspx Daniel Ratliff From: [email protected] [mailto:[email protected]] On Behalf Of Joshua Delaughter Sent: Thursday, October 2, 2014 8:33 PM To: [email protected] Subject: Re: [MDT-OSD] RE: Create C:\Temp During TS Followup stupid question, something I've always wondered, but never asked. Why does cmd need to be specified, when the TS step is "run command line". When first starting out, I just assumed that commands were automatically ran with the cmd.exe, but I quickly found out otherwise. Sent from my iPhone On Oct 2, 2014, at 6:00 PM, Marcum, John <[email protected]<mailto:[email protected]>> wrote: I think I forgot the /c. Thanks, I'm gonna try now. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Daniel Ratliff Sent: Thursday, October 02, 2014 1:53 PM To: [email protected]<mailto:[email protected]> Subject: [MDT-OSD] RE: Create C:\Temp During TS Straight from our build and capture, has worked for dozens of image builds. cmd /c md c:\temp Daniel Ratliff From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Marcum, John Sent: Thursday, October 02, 2014 2:42 PM To: [email protected]<mailto:[email protected]> Subject: [MDT-OSD] Create C:\Temp During TS This must be the dumbest question I've ever asked, and I've asked some really dumb ones…… I have tried every combination of MKDIR C:\Temp , cmd.exe MKDIR C:\Temp, C:\Windows\System32\cmd.exe C:\Temp and even a batch file with @Echo Off MKDIR C:\Temp and nothing works. What can I possibly be doing wrong to simply create a temp directory in a task sequence on Win 7 x64?????? Everything I do just times out without creating the directory. ________________________________ John Marcum MCITP, MCTS, MCSA Desktop Architect Bradley Arant Boult Cummings LLP ________________________________ <image001.png> <image002.png> ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer. 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. ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer. ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer. 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.
