MDT 2013 - Concatenate command lines in an application?

Total noob to MDT. Have a few years experience with SCCM. My ongoing project is to create bootable media (DVD's only, no USB allowed...) to rebuild seats not attached to our network.
I know one can concatenate command lines in SCCM task sequence steps... wondering if I can do so in applications too?
Example:
Create application BlahBlah
Dir structure is:
\BlahBlah
\BlahBlah\A
\BlahBlah\B
The application will point to \BlahBlah as the source dir
In the application command line, will this command work?
"xcopy .\A\*.* c:\temp\BlahBlahA /E /Y & xcopy .\B\*.* c:\temp\BlahBlahB /E /Y"
TIA,
Lang

It depends on what your working directory is set to
But I'd recommend using a script to handle installing applications, copying files, etc. You can then do far more advanced functions with the ability to log as well.
For instance here's a script I wrote to install Firefox and copy over configuration files. It's one script that handles both x86 and x64 architectures.
<job id="Install-MozillaFirefox">
<script language="VBScript" src="..\..\scripts\ZTIUtility.vbs"/>
<script language="VBScript">
'// Purpose: Used to install Flash Player
'// Usage: cscript Install-MozillaFirefox.wsf [/debug:true]
'// Version: 1.0 - September 29, 2014
'// Version: 1.1 - February 6, 2015 - Corrected architecture detection
'// Global constant and variable declarations
Option Explicit
Dim iRetVal
'// End declarations
'// Main routine
On Error Resume Next
iRetVal = ZTIProcess
ProcessResults iRetVal
On Error Goto 0
'// Function: ZTIProcess()
'// Input: None
'// Return: Success - 0
'// Failure - non-zero
'// Purpose: Perform main ZTI processing
Function ZTIProcess()
oLogging.CreateEntry "Install-MozillaFirefox: Starting Mozilla Firefox installation", LogTypeInfo
' Disable Zone Checks
oEnv("SEE_MASK_NOZONECHECKS") = 1
' Install Mozilla Firefox
iRetVal = oUtility.RunWithHeartbeat(oUtility.ScriptDir & "\Installer\Setup.exe -ms")
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
oLogging.CreateEntry "Install-MozillaFirefox: Error installing Application Plugin. Check the log " & oUtility.LocalRootPath & "\SMSOSD\OSDLOGS\Install-MozillaFirefox-Plugin-App.log", LogTypeWarning
End If
' Configure Mozilla Firefox
If oEnvironment.Item("Architecture") = "X86" then
oLogging.CreateEntry oUtility.ScriptName & ": Configuring for 32bit OS", LogTypeInfo
oFSO.CopyFile oUtility.ScriptDir & "\Installer\override.ini", oENV("ProgramFiles") & "\Mozilla Firefox\", True
oFSO.CopyFile oUtility.ScriptDir & "\Installer\mozilla.cfg", oENV("ProgramFiles") & "\Mozilla Firefox\", True
oFSO.CopyFile oUtility.ScriptDir & "\Installer\local-settings.js", oENV("ProgramFiles") & "\Mozilla Firefox\Defaults\Pref\", True
Else
oLogging.CreateEntry oUtility.ScriptName & ": Configuring for 64bit OS", LogTypeInfo
oFSO.CopyFile oUtility.ScriptDir & "\Installer\override.ini", oENV("ProgramFiles(x86)") & "\Mozilla Firefox\", True
oFSO.CopyFile oUtility.ScriptDir & "\Installer\mozilla.cfg", oENV("ProgramFiles(x86)") & "\Mozilla Firefox\", True
oFSO.CopyFile oUtility.ScriptDir & "\Installer\local-settings.js", oENV("ProgramFiles(x86)") & "\Mozilla Firefox\Defaults\Pref\", True
End If
' Enable Zone Checks
oEnv.Remove("SEE_MASK_NOZONECHECKS")
oLogging.CreateEntry "Install-MozillaFirefox: Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry "Install-MozillaFirefox: Finished Mozilla Firefox installation", LogTypeInfo
End Function
</script>
</job>
You can then use variables. Your code to copy files could be something like
oFSO.CopyFile oUtility.ScriptDir & "\A\*.*", oENV("SystemDrive") & "\temp\BlahBlahA", True
oFSO.CopyFile oUtility.ScriptDir & "\B\*.*", oENV("SystemDrive") & "\temp\BlahBlahB", True
If this post is helpful please vote it as Helpful or click Mark for answer.

Similar Messages

  • I can not uninstall Office 2013 from command line

    Hi, I have been stuck for a while trying to uninstall Office 2013 via command line. Installation file was downloaded from Volume Licensing Service Center, Uninstall.xml file for silent uninstallation looks like this:
    <Configuration Product=”ProPlus”>
    <Display Level=”basic” CompletionNotice=”yes” SuppressModal=”yes” AcceptEula=”yes” />
    </Configuration>
    From command line the following will not work:
    setup /uninstall ProPlus /config .\ProPlus.ww\Uninstall.xml
    Error: Setup can not find or validate an installation file. Please try reinstalling Office . . .
    setup /uninstall ProPlus gives me GUI to continue process - it seems /config .\ProPlus.ww\Uninstall.xml part does not work as it should be
    This is very important to me since I used above command line in SCCM 2012 R2 to allow user to uninstall Office 2013 by itself via Software Center. When this failed I tried locally but the error was the same. This should have been trivial task - silent uninstallation
    using .xml file. It is not a rocket science. I am very angry because losing time for something like this is unacceptable for system engineers working with SCCM 2012 R2.

    Hi,
    This error might occurs due to lots of reasons. Where is the installation file stored? If it's stored on a network share, please copy it to your local disk, and then manually run the command again. This way, we'll see if the installation file is the
    problem.
    If issue persists in this case, then this generally means that something wrong with the installation file. Please try to redownload it and then try again.
    Please also make sure that you're executing the command with elevated privileges (run as administrator).
    Regards,
    Ethan Hua
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Mdt 2012 sp1 command line does not run from task sequence

    Hi,
    I am hoping I can explain this correctly.  I am using MDT 2012 and having an issue with running command lines, powershell and batch files that I setup.
    The task sequence is set to use an account called "MDTService".  it has rights to join the domain but is not in the local admin group of the reference image.  a domain GPO renames the local admin account CoAdmin.
    when running a command line to, for example, run xcopy a folder and subdirectories to the "program Files x86" directory, it does not copy.
    When I log on to the system and use an admin account to manually run the command I do not have an issue.  if I log onto the system with the MDTService user and run it, it fails.
    How do I get the commands to run from the MDT task sequence?  I do not want to make the MDTService user an admin.  I have tried the run as option in the task sequence but that did not work.  maybe is set it wrong.  I used a domain\Admin
    account which did not work.
    what can I clarify or logs can I post to provide more details.
    Thanks in advance.

    Any account that needs to add files under %ProgramFilesx86% must be granted administrative privileges.
    Keith Garner - keithga.wordpress.com

  • JTextArea as a command line in an application

    I need to have a 'command line' area in an application I develop. I have the following JTextArea in my JFrame:
    JTextArea CommandArea = new JTextArea("� ");I want to make only the text behind the prompt "� " editable. If the user tries to type a command at an other position the caret should jump to end of the JTextArea and insert it there.
    Any ideas?

    I think you need to extend JTextArea something like
    class PTextArea extends JTextArea {
    and put the required functionality in that by handling events on this.
    any good
    cheers

  • Olapunderground Outline extractor- command line syntex when application Name is P&L

    Hi,
    I trying to create bat file to extract Essbase outline using Outline extractor but my problem is that the application name has a special character "&" which cause an error.  Is there a way to mask this special character?
    Thanks
    Khan

    Hello 640203,
    Using the "&" in an application name is asking for trouble. Use "-" or "_". As best practice, avoid special characters. You get into trouble somewhere, you might not thought about.
    Sorry I can not help further.
    Regards,
    Philip Hulsebosch.

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Command line interaction - piecemeal!

    Hi All
    I am using "Calling System Exec.vi". Lets say you have a command line app where you have to interact with it over the command line (e.g the command line is the applications UI) The app prompts the user for input for example "Press L to load" and then provides output, e.g. "Load Successful" and these "questions and answers" may occur a number of times.
    From what I can understand this VI is geared towards running the command line application and entering all input (standard inpu) and getting all output (standard output) within a single execution of the Calling System Exec.vi
    What i need to be able to do is open the app but then enter the input and retrieve the output on a  piecemeal basis, at will, without having to wait for the overall execution of the vi to end and\or having to retrieve the standard output in one big lump when it does end. Is this possible, if so how?
    The nearest analogy I can provide to describe what I want to do is when you are communicating with an instrument, you first open it and then you write to it (standard input) to get it to perform some action, and then you read from it (standard output) to get a response. Finally when your done you close it.
    I have a feeling that this is looking like a DLL but because this is a third party .exe I cannot obtain a DLL so this is my only option.
    Thanks for your help.

    This question has been brought up before. Did you try a search?
    http://forums.ni.com/t5/LabVIEW/Controlling-the-STDIN-STDOUT-of-a-legacy-application-in-LabVIEW/m-p/...

  • Invoke Labview applicatio​n from Command line

    hi,
    I have a labview program which does some analysis on my Test data.
    My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
    After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
    My first step in  analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
    This works absolutely fine.
    I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
    But somehow im not able to get Command line arg(basically here filename) passed to labview.
    The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
    My question is:
    Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
    -Murali

    Just to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.
    Did you make sure the "Pass all command line arguments to application" check box (in the 'Advanced' category of the application builder) was checked for the new application?
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Invoke command line from remote computer

    Hi everyone, I'm new for abap, I have a problem need to be solved. the problem can be describe like this:
    I have a text file ("abc.txt" for example) from an application server. I need to upload that file to another Win 32 computer, which already has a program "PGP Command Line". From application server, I need to call a command to encrypt abc.txt file. THe problem is that I don't know how to invoke a command of Win32 server from my computer. I think 'SXPG COMMAND EXECUTE' can not help much because it cannot run command from remote server.
    Anyone have any idea?
    Thank you in advance.
    Regrad,
    Long Le Hoang

    Sure, using the exec method in the class Runtime. You have to be careful with it though...
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to run labview exe with command line

    I would like to launch a labview exe with a command line.
    I would like to get advice how to launch the Labview exe with giving values to the control parameters?
    You can view the example where x,y are the controls
    Solved!
    Go to Solution.
    Attachments:
    exe.png ‏65 KB

    There is a much more detailed guide here, which I reference below:
    1. First you will enable it in the settings:
    1. Open the properties for the application's build specification
    2. Navigate to the Advanced category
    3. Check the Pass all command line arguments to application box
    To pass the command line arguments to the application and access them in your code follow the same steps as for LabVIEW 7.x.
    2. Then you will use two hypens (--) to pass command line arguments to the VI. 
    When you launch LabVIEW or a stand-alone executable from the command line, you can pass user-defined arguments to the application. User-defined arguments start after two hyphens (– –) surrounded by spaces in the command line. For example, the following command line entry will launch LabVIEW 7.1 and open test.vi from the root of C:\ and pass 2 arguments, 1000 and sine:
    "C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe" "C:\test.vi" –– 1000 sine
    You can also pass a command line argument directly to an EXE without launching LabVIEW, as long as the machine has the appropriate Run-Time Engine and necessary drivers.  For example, if test.vi was built into an executable, it could be called as follows:
    "<build directory>\test.exe" –– 1000 sine
    3. Lastly, you will use a property node to wire them to your controls:
    LabVIEW passes the arguments from the command line to the block diagram of the VI or EXE you launch. You can reference the arguments in the block diagram by using the Application:Command Line Arguments selection in a property node, as shown below.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • Sncli - Simplenote Command Line Interface

    I cooked up a command line interface to Simplenote. It's written in Python and uses Urwid for console management.
    sncli has a full terminal "gui" mode with vi-like keybinds (configurable!) and also supports typical command line operations useful for scripting. More importantly it supports both online and offline modes.
    https://github.com/insanum/sncli
    AUR: sncli-git

    Hi Aqua,
    Well there are command line tools like tmadmin, tmboot, etc., that allow you to monitor and administer Tuxedo applications and for FML/FML32 based services there is a command line tool called ud (or ud32 for FML32 based services) that allow creating an FML/FML32 buffer and sending it to a service and printing its response. But if you mean a general command line based client application, then the answer would be no.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • BitBucket Command-Line Interface

    To all you BitBucket users out there, I've written a command-line interface to the service modeled after the github-gem CLI for github. Source code is at http://bitbucket.org/zhemao/bitbucket-cli and there is a package in the AUR https://aur.archlinux.org/packages.php?ID=53839.

    Hi Aqua,
    Well there are command line tools like tmadmin, tmboot, etc., that allow you to monitor and administer Tuxedo applications and for FML/FML32 based services there is a command line tool called ud (or ud32 for FML32 based services) that allow creating an FML/FML32 buffer and sending it to a service and printing its response. But if you mean a general command line based client application, then the answer would be no.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Com_sheet :: A command line spreadsheet application

    com_sheet is a basic, lightweight command line spreadsheet application.
    Latest release: v0.4 beta
    Features ::
    > Add any number of columns, rows
    > Search
    > Sort
    > Edit
    > Delete
    > Formulaes
    > Save to file (in both tabular and parsable formats)
    > Load saved spreadsheets
    > Colors
    GitHub repo
    Clone with:
    git clone git://github.com/0pointr/com_sheet.git
    Please read the files README and FORMULAE for instructions on compilation, usage and the current limitations.
    Suggestions, critics and feature requests are all welcome.
    Screenshots:
    Last edited by debdj (2013-01-26 16:27:59)

    Obviously you can't read from the scanner. Instead you have to read from request parameters.
    So you have to take a step back and define what values are being input into your application.
    At its most basic you could do it as a jsp page with a textfield/textarea which the user could type into instead of typing on the console input.
    For instance if your application asks the user to enter their name, and then reads the name from System.in, then you have on your jsp page a <input type="text"> and a submit button.
    In the servlet which gets run when you submit the button you get the user's name via request.getParameter().
    At that point you have your input String, and have removed System.in from the process.
    But you are not just limited to text input with an html form. You can use any of the controls available. So asking a user "What is your favorite colour?" Instead of having them type in the answer, you could have them choose it from a radio group or dropdown select box.
    Either way it still gets to the Servlet as a String via request.getParameter.
    Steps you might follow
    1 - identify the values being input into your program
    2 - Write your jsp - start with just textfields
    3 - Write your servlet handler to retrieve the values from the JSP.
    4 - Determine the appropriate control on an html form to replace each input
    5 - Modify the textfields to other controls (dropdown/radio button) as appropriate.
    Theoretically the rest of your program doesn't need to change once you have the value in a String.
    Your method of reading just changes from using Scanner and System.int to request.getParameter()
    Similarly your method of writing would change from using System.out to a response JSP page.
    hope this helps,
    evnafets

  • Initiate Application Installation from App Catalog via Command Line / PowerShell

    Hey Guys - 
    We have a single, fairly extensive OSD task sequence which covers systems for all departments.  Due to it being a single TS for all, PC Lab techs must manually install some apps after it finishes via the Application Catalog.  In past environments,
    I've used MDT's UDI Wizard to create a frontend where techs could select additional software they wanted installed during the TS and it worked great!  I'm trying to get something like that approved now, but in the meantime told the techs I'd come up with
    a temporary solution to make their job easier.
    Enter WPI (Windows Post Installer.)  Back in the days before I used SCCM OSD and relied in Acronis images (yuck), I used a the WPI tool which only ran once - at the first login - even before the desktop
    loaded.  It's highly customizable and basically shows a single window which lists any applications or scripts (in groups) which you have configured.  You place a checkmark beside each one you want to install, click the "Install" button,
    then watch it's installer frontend install each of the selected apps.  Once done, it either restarts the PC or exists to the desktop.  For each application I can add, I'm provided with a few options to
    install it.  Obviously, an installation command line string field, but also a few more like installation order, requirements, and dependencies. 
    My Question
    Each of the applications I've listed are in our Application Catalog and are advertised to All Users.  Even though I could simply point the installer string to the app's source path and use the same string that the SCCM Application uses, I've been asked
    to do something different.  Instead, I'm trying to find a command line string which when run would perform the same action as if a user had selected to install an Application from the Application Catalog.
    My thoughts are that if this is possible, it would probably be in the form of a PowerShell string - not just a basic command line one.  Since WPI has a frontend which shows the progress of each app's installation progress as well as overall progress,
    it's designed for the installation strings to install the app silently.  Therefore, I would much prefer my solution run silently as well if possible.
    So... does anyone have any idea for how I can make this happen? Thanks!
    In case it makes a difference or answers any questions, below are two screenshots showing most of the fields and options which may be used to configure how an application installs in WPI.  I couldn't include the Dependencies one since I could only
    attach two images to my post.  Also, the manual for WPI is embedded in the application's
    download (ZIP) and not a page on their site.  For the examples below, I used Google Chrome, but didn't configure anything besides the application's name:
    Application Detail Options
    Application Command Options
    Ben K.

    From what I'm reading, you are working towards MDT but it's not approved yet, so the goal is to:
    Deploy a "bundle" of applications as painlessly as possible without using UDI to make customizations quick.
    Lets talk options then.
    Option 1:  If machines types are in a unique OU or security group, create a collection for that and set these applications to mandatory install.  After initial deployment, the provisioner can drop the computer in the proper OU or group and you're
    good to go.  Downside:  collections refresh plus client check-in makes this less than instant.
    Option 2:  Orchestrator.  You can write a runbook that will approve and push apps.  You can then use the Orch console front end or a more friendly sharepoint/SM portal to push things out like a Manager would approve apps.  Downside:  if
    not already deployed, there's no way they would approve that infrastructure if they are hesitant about MDT/UDI :)
    Option 3:  PowerShell and WMI.  This should be doable ... but I've never tried it.  It looks like you're headed down the right path ... but i guess my question is:  if you can't have UDI when do get to pick the app?  Are you planning
    to write a full multi-box for them to check their apps after the fact?  In that case ... just have the appcontroller URL pop up on first login ... might be easier than reinventing the wheel.

  • MDT 2013 - Install Application in Task Sequence Stuck

    I am running an application installation within my task sequence during my deployment.  One of the applications prompts a user response to click yes to continue. Otherwise the task is stuck at that step. It appears to be stuck during my Java 7U51
    installation running this command. It works on several machines but I get this once in a while on a few workstations when trying to deploy. any ideas?
    About to run command: \\xxxxxxxxxxxxxxxxxxx\xxxxxxxxxx\Tools\X64\bddrun.exe jre-7u51-windows-i586.exe /s /v"/norestart /AUTOUPDATE=0 JAVAUPDATE=0 JU=O"

    first try to install java with
    MDT if any one you are using and then
    run the programyou want to post an example
    here
    http://mdtguy.wordpress.com/2014/02/17/installing-the-latest-java-re-msi-with-mdt-2013/
    Freelance-IT http://www.freelance-it.com.mx

Maybe you are looking for

  • BPM Process deployed but not listed in Applications in BPM Workspace

    Any idea on this? It seems to be deployed correctly based on the JDeveloper logs, and it seems I've set the organization settings to include the user/s I'm testing with. Have I missed something?

  • Can I export PPT slide text to separate objects on timeline?

    I guess I was under the impression that the PPT import would take objects and put them on the timeline, so I could time them to narration. But it doesn't seem to work this way. If I had progressive display animations for 10 bullets of text, it doesn'

  • Help converting a raw image to JPG at 300dpi

    Please help I have always used PS to edit my raw images. I am now using elements. I noticed that when I converted all my DNG files to JPS it saved them at 240 dpi is there anyway to change them?

  • Limit on Query result set

    Limit on Query result set Is there anyway in Oracle9i to limit query result I.e.: we can limit query result in MySQL SELECT * FROM EMP LIMIT 2; Will return only top 2 records Thanks in advance

  • AppleTV home sharing, I can't see my itunes match songs

    I am using a new Apple TV. I set up home sharing, but I am unable to see my itunes match songs. I used my wifes itunes account for the apple TV. I am using my account for the home sharing. I have an itunes match account with a large library. I though