Solved

Run commands in a Task Sequence

Posted on 2013-11-07
4
396 Views
Last Modified: 2014-01-25
Hi All,

I am trying to deploy a Windows 7 image to a number of desktops using an OSD Task Sequence. At the end of the Task Sequence after  where it says Install Applications, I have listed a number of packages and run commands but they all fail.

Example Run command 1:

CMD.exe /c /xcopy "\\servername\share\*"  "C:\public\desktop\"

Example Run command 2:

msiexec.exe /I "\\servername\share\msxlparser.msi" /qn

Failing on MDT 2012 & SCCM 2012 SP1.

Note:

On SCCM 2012 I am not installing the Configuration Client as the customer does not want that installed in the image

Is it because of the WinPE environment??

Driving me crazy!!!
Afternoonan
0
Comment
Question by:afternoonan
  • 3
4 Comments
 

Author Comment

by:afternoonan
ID: 39632394
Just an added bit of information the workstations are not joined the Domain but in a WorkGroup.
0
 
LVL 31

Expert Comment

by:merowinger
ID: 39650453
Can you take all the files you're copying into a SCCM package and run the command line within the package? The account running the Actions may has no privileges to the file share,
0
 

Accepted Solution

by:
afternoonan earned 0 total points
ID: 39794907
Hi All,

Sorted this by copying the files to the local C: drive and then ran the scripts like a dream.

Afternoonan
0
 

Author Closing Comment

by:afternoonan
ID: 39808441
Found that copying to local C: drive everything worked. No one else came back with that answer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lync LS Data Collection error 4 287
Shares and security permission 9 63
SCCM 2012 SP1 to SCCM SP2 upgrade 6 94
How to download all files from sharepoint document library? 8 59
When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A simple description of email encryption using a secure portal service. This is one of the choices offered by The Email Laundry for email encryption. The other choices are pdf encryption which creates an encrypted pdf of your email and any attachmen…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now