Create a Package in SCCM 2007 to use a robocopy bat file

Hi
I’m setting up a package for Robocopy that copy files from C drive of a target machines into a network share.  
This is the robocopy bat file i am using:
ROBOCOPY "C:" "\\servername\Test" /tee /e /eta /copy:dt /r:01 /w:01 /log+:"\\servername\Test\testLog.txt"
/if *.doc *.xls *.ppt *.pdf *.msg *.pst *.jpg *.zip *.txt
t
-I Set up a package with this batch file
-Added a program to the package pointing to this batch file
 general program properties are:
 Run:Hidden
 After running:No actionrequired
 Environment:
 Run with administrative rights
 drive mode: Runs with UNC Nam
-Advertised it to a collection
But when after the advertisment  i get the following error and nothing gets copies:
Script for Package:CHV02E94, Program: ITF Robocopy failed with exit code 16
Any advice

I tried to test the same thing using a local source to get the script to work first and once this is working I will change it back to network share. This way i can eliminate possibilities of having any issues with permission and local system account.
Here is the batch file:
ROBOCOPY "C:" "\\machinename\Test" /tee /e /eta /copy:dt /r:01 /w:01 /log+:"\\machinename\Test\testLog.txt" /if *.doc *.xls *.ppt *.pdf *.msg *.pst *.jpg *.zip *.txt
Using local source is  giving me still some issues. It seems like the robocopy.exe is using a default location as source other than C:\ which I want to. This script should scan the entire local C drive and copy any files that have specific
file format as above.
Here is the Execmgr.log error: Execution is complete for program ITF Robocopy Local2. The exit code is 3, the execution status is FailureNonRetry
The robocopy log shows this:
   ROBOCOPY     ::     Robust File Copy for Windows                             
  Started : Sun May 08 09:19:51 2011
   Source : C:\Windows\System32\CCM\Cache\CHV02EB1.2.System\
     Dest : \\L3C84706457\Test\
    Files : *.doc
     *.xls
     *.ppt
     *.pdf
     *.msg
     *.pst
     *.jpg
     *.zip
     *.txt
  Options : /TEE /S /E /COPY:DT /ETA /R:1 /W:1
                    1 C:\Windows\System32\CCM\Cache\CHV02EB1.2.System\
   *EXTRA File          0 testLog.txt
     New File        8714 New Microsoft Office Excel Worksheet.xls
  0% 
100% 
                Total    Copied   Skipped  Mismatch    FAILED    Extras
     Dirs :         1         0         1         0        
0         0
    Files :         1         1         0         0        
0         1
    Bytes :     8.5 k     8.5 k         0         0         0        
0
    Times :   0:00:00   0:00:00                       0:00:00   0:00:00
    Speed :             1742800 Bytes/sec.
    Speed :              99.723 MegaBytes/min.
    Ended : Sun May 08 09:19:51 2011
why is the source location getting changed to ==>C:\Windows\System32\CCM\Cache\CHV02EB1.2.System\?????

Similar Messages

  • Create vertual package in SCCM 2012

    I Need to create a virtual (App-v package) that I sequenced in sccm 2012. I remember in sccm 2007 there was an option (Create virtual package) I don't see that here whats the procedure for creating virtual package\application in sccm 2012
    Thanks

    I re-sequenced it Notepad++ and this time and this time I chose continue Configuring and launched Application and was able to add file association through the App, so when App was repushed file association was there for .vbs, .txt. etc...
    I have been looking at some blogs and I fond that the sequencer has a Tab Shortcuts and FTA's I don't see that Tab on my sequencer and I'm running 5.0 sp1 any thoughts on that?
    maybe ask in the dedicated App-V forum?
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdopappv
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • MP Related Logs and IIS Virtual directory not created After re_installation of SCCM 2007

    Hi
    We have re-installed the IIS and SCCM secondary site. tried to intsall the MP role and DP role but it has not created any logs or IIS virtual directory in the secondary site server which is in WAN link.
    Trouble shooting:
    - checked the ports 443,445 and 80
    - Disabled symantec
    - exchanged the public key ( still it is in progress in Despooler log)
    - checked the site to site permission and added the accounts.
    please suggest further.

    Yes, I know this is an old post, but I’m trying to clean them up.
    What error(s) are you getting within the logs? Without these details there isn’t much anyone can do to help you.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Creating a swimlane in Visio 2007 not using a cros-sfunctional one.

    Hi,
    Is there a way to create a swimlane without using the Cross-Functional swimlane and be able to change the height size?
    I know it can be done since someone did it at work but I do not know how he did it. Unfortunately he left and I am trying to apply changes and could not figure out how to do it?
    You help would be appreciated.
    Regards,
    Chuck

    Hi,
    Thanks for visiting our forum and sharing your experience here. It'll be benefited to our communicator.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Retrieve Software metering from SCCM 2007 Database using SQL Queries

    Good Morning All,
    Can anybody shed any light on querying the SQL DB for Software metering from SCCM using a machine name. I am basically looking for the table names etc?
    Thanks
    Craig

    Hi,
    They are documented here:
    http://technet.microsoft.com/en-us/library/dd334612.aspx
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • I installed ims 5.2 in w2k professional.when i start services using start-msg bat file, job controller service gives 1067 system error.have anyone worked successfully with ims 5.2 on w2k professional.

     

    See previous Q&A on this site, but I believe the answer is no. Not only is this not supported, but it does not work.
    If you have to have Windows 2K then to make things work use iMS 5.1. I've heard that this will function. If you have to have iMS 5.2 then switch to a supported configuration.

  • OSD: scripted upgrade SCCM 2007 to SCCM 2012 not working (first attempt)

    Hi,
    We created a package in SCCM 2007 to upgrade the sccm 2007 client on a vista machine to SCCM 2012.
    What we did:
    1.uninstall 2007 client
    2.ccmclean.exe
    3.install sccm 2012 client
    4.trigger machine policy update
    All works fine but the install. If we run the script a second time, install DOES work fine.
    Error log of failed attempt, please advise:
    Failed to download client files by BITS. Error 0x800704dd    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Sending Fallback Status Point message to 'sccmserver.ourdomain', STATEID='309'.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to get client version for sending messages to FSP. Error 0x8004100e    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Params to send FSP message '5.0.7958.1000 Deployment Error 0x800704dd. Path http://sccmserver.ourdomain/SMS_DP_SMSPKG$/FLSD00002'    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    State message with TopicType 800 and TopicId {87CA732B-9d2D-4CD1-BD93-CA2CCD20D691} has been sent to the FSP    FSPStateMessage    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to download from DP 'http://sccmserver.ourdomain/SMS_DP_SMSPKG$/flsD00002', error 0x800704dd.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Enumerated all 1 local DP locations but none of them is good. Fallback to MP.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Using branch cache option.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Adding file 'HTTP://sccmserver.ourdomain:80/CCM_Client/i386/vcredist_x86.exe' to BITS job, saving as 'C:\Windows\ccmsetup\vcredist_x86.exe'.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to download client files by BITS. Error 0x800704dd    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Jan Hoedt

     Hi,
    "Error code 4dd (hex) = 1245 = "The operation being requested was not performed because the user has not logged
    on to the network. The specified service does not exist." This clearly implies some sort of account issue. Exactly how are you initiating the client agent setup?"
    For more information:
    http://social.technet.microsoft.com/Forums/en-US/2c80c8c4-06b5-431f-b732-470b7e531794/ccmsetup-failed-with-error-code-0x800704dd?forum=configmanagerdeployment
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Migrating Clients from SCCM 2007 to SCCM 2012 R2 via SCCM 2007 PACKAGE

    I can migrate sccm clients from sccm 2007 to sccm 2012 using sccm 2007 package with sccm 2012 client?
    Thanks!
    Atenciosamente Julio Araujo

    Thanks for help me Peter and Torsten but this documentation says:
    "You cannot upgrade Configuration Manager 2007 clients to System Center 2012 Configuration Manager by using this method.
    In this scenario, use automatic client upgrade, which automatically creates and deploys a package that contains the latest version of the client."
    I Need migrate clients from sccm 2007 to sccm 2012 r2 and
    I thought ofcreate a package in sccm 2007 with a sccm 2012 client.
    Atenciosamente Julio Araujo

  • How to create a deletion of Adobe Acrobat through SCCM 2007

    Can anyone give me assistance with creating a deletion package through SCCM 2007 that will remove Adobe Acrobat 8? I've tried the delete switch and msiexec, but doesn't seem to do the trick. Any assistance would be helpful.

    Create A batch file
    Content:
    ==============================================================================
    @echo off
    cls
    echo
    =================================================
    echo Please wait while  ....PRODUCT NAME ....  is uninstalling
    =================================================
    Msiexec.exe /x {QUID} /q
    ::::Replace QUID with quid number ie  AC76BA86-1033-ffff-7760-000000000006
    ==============================================================================
    SAVE BATCH FILE IE UNINSTALL.BAT
    THEN CREATE PACKAGE IN sccm

  • Software Distribution & Patching Design Issues - Migration of Packages SCCM 2007 to Application or Conventional Packages in SCCM 2012

    Hi All
    I am starting in discussion to deep root on Software Distribution & Patching model in large environments from SCCM 2007 migrating to SCCM 2012.
    Below are certain assertions i am putting forward for your expert views or you may in a similar situation
    1- I have migrated the packages from SCCM 2007 to SCCM 2012 as conventional methods, now i am deploying them [ not migrated the advertisements and collections ], so while deploying i am facing a peculiar situation that the deployment when created is of the
    name "<<Package name>>(program)". I am not able to rename the deployment for the conventional packages. is there a way out to that??
    2- Will the collection queries work the same in SCCM 2012 as was in SCCM 2007??
    3- In SCCM 2012 Primary site there is default role called Site System role in that there is tab for proxy settings. I have observed that if do not check the proxy tab there and punch in proxy IP and port then after some time in the WSUS server the update
    source and proxy server tab the proxy option gets unchecked and hence the sync in software update point status appears failed. Is that anyone else also has observed !!!!!
    Regards Sushain KApoor

    This is a duplicate of
    https://social.technet.microsoft.com/Forums/en-US/2ddb8170-529b-4652-830e-fd0ade384b98/software-distribution-patching?forum=configmanagermigration
    Please do not double post.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM 2007 R3 New DP , how to add to all existing packages

    Hi
    Is there a script which allows an SCCM 2007 R3 DP to be automatically added as a DP for all existing packages? I know this is easily done in 2012 with Powershell support or DP Groups, but was wondering how to automatically add a DP to all existing packages
    in SCCM 2007 R3
    Any help greatly appreciated!
    Thanks
    Max

    This is easily done in 2007 also without any scripting by using the Copy Packages Wizard: http://technet.microsoft.com/en-us/library/bb693746.aspx
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM 2007 - Package Creation

    By default, when you are creating a Package in SCCM.  The name, version, manufacturer and language fields are present.
    When typing in the version, manuf or lang fields, it then appears in the name - how can that be disabled?
    Eg.
    Name: Latest Google Chrome
    Version: 36.143.4.00
    Language: en
    SCCM will then name the package Latest Google Chrome 36.143.4.00 en when all we want it to say is "Latest Google Chrome" but still have the version and language to be associated to the package.
    We want everything to be separate and not affect the name we choose. Can this be done and if so, how?

    Hi,
    There is now way to change the defualt behaviour in SCCM for how the naming of the packages are done. You could always write the information in a different field that doesn't show up in the console per default.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • SCCM 2012 and SCCM 2007 Shared Distribution Points

    I am building a new SCCM 2012 site (primary and 4 secondaries) besides a SCCM 2007 site (primary, 3 secondaries and 65 DPs).
    I migrated all objects from SCCM 2007 to SCCM 2012 which worked well.
    I migrated a client from SCCM 2007 to my SCCM 2012 environment and that worked well. Then i push some packages from SCCM 2012 to my migrated client which worked as well either.
    Then I switch on the SHARED DISTRIBUTION option in the migration section and now my migrated SCCM 2012 client only can access the SCCM 2007 DPs and packages from SCCM 2012 DP can't be accessed anymore...in Software Center the packages will stay at 0% downloading....
    Is that normal behavior after enabling shared DPs ?

    Did you ever find a solution for this? I am experiencing the same issue.
    I have an IP address range boundary for testing SCCM 2012. After enabling shared distribution option SCCM 2012 migrated boundaries from SCCM 2007. My test IP address range boundary has two boundary groups... One is the SCCM 2012 Boundary group
    pointing towards the SCCM 2012 DPs. The 2nd is the automatically created "Boundary Group for SCCM 2007 distribution point."
    With both of those in there I can only push SCCM 2007 packages to the SCCM 2012 clients. SCCM 2012 packages come back in the logs as "Calling back with empty distribution points list." If I remove the automatically created "Boundary Group for SCCM 2007 distribution
    point" from the test IP boundary then SCCM 2012 clients will properly download from the SCCM 2012 DPs, but now the SCCM 2007 packages fail to download to the SCCM 2012 test clients.
    I assume I have some kind of boundary issue but am at a loss of resolving it. Either that or I have the shared dp concept down incorrectly. Shouldn't I be able to have a boundary that has SCCM 2012 clients that uses the 2012 DP for 2012 content but the 2007
    DP for 2007 content while I am migrating?
    Thanks for any help
    - Ryan

  • Writing to an Excel(xlsx,2007 format) using PL/SQL

    Hi,
    I have a new requirement in which I have to write to an excel ,.xlsx(2007 format). I am using Oracle 9i.
    When I try to write it to .xlsx it is writing but when i try to open the file it says "excel 2007 excel cannot open the file because the file format or file extension is not valid".
    I am using the following Stored Procedure:
    create or replace
    procedure myfilewrite( p_location IN varchar2,
    p_filename IN varchar2)
    IS
    v_disk_file utl_file.file_type;
    BEGIN
    v_disk_file := utl_file.fopen( location => p_location,
    filename =>p_filename,
    open_mode=>'W');
    utl_file.put_line(v_disk_file,'abc'||chr(13));
    utl_file.fclose(v_disk_file);
    EXCEPTION
    when utl_file.invalid_path then
    utl_file.fclose(v_disk_file);
    raise_application_error(-2001,'path error');
    when utl_file.invalid_operation then
    utl_file.fclose(v_disk_file);
    raise_application_error(-2002,'invalid operation error');
    when utl_file.write_error then
    utl_file.fclose(v_disk_file);
    raise_application_error(-2003,'write error');
    when utl_file.invalid_filehandle then
    utl_file.fclose(v_disk_file);
    raise_application_error(-2004,'filehandler error');
    when others then
    raise_application_error(-2005,'could not write to file');
    END;
    Please help me regarding this issue.
    Regards,
    RAJ

    user13529315 wrote:
    In the existing application we have been writing into .xls format using utl_file package.No you haven't. You have been writing a file in CSV format that is named with an XLS extension. File name does not equal file format, XLS is a binary format, UTL_FILE cannot write binary files.
    CSV - http://en.wikipedia.org/wiki/Comma-separated_values
    >
    A comma-separated values or character-separated values (CSV) file is a simple text format
    >
    XLS - http://en.wikipedia.org/wiki/Microsoft_Excel_file_format#File_formats
    >
    Microsoft Excel up until 2007 version used a proprietary binary file format called Binary Interchange File Format (BIFF) as its primary format.

  • SCCM 2007 R2 - configuration item compliance for a collection.

    Hi All,
    Can some one share the information of reports for configuration item compliance of for a collection in SCCM 2007 R2 using desired configuration management feature.
    Rgs,

    Yes, but no data shows up.
    What does this mean? What troubleshooting have you done? When do you create the DCM?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

Maybe you are looking for

  • Dipalying message to the user to update to the latest version of the flash player.

    Hi all, In my latest application I am using flex functionality which is supported only in the latest version of the flash player. So my task here would be to display a message to the user for upgrading to the latest version of the Flash Player. I hav

  • How to make Multi line checkbox text

    Hi guys, I have a req of displaying text for a checkbox as mutiline. for eg: my text to be displayed for the checkbox is "ALL u201CAPPLICABLEu201D GOODS IN THIS SHIPMENT ARE BEING EXPORTED UNDER THE OPEN GENERAL EXPORT LICENCE   (OIL & GAS EXPLORATIO

  • Why my exit menu did work???

    this is my codes.no syntax errors.ubt the exit menu does not work.can someone correct it???please... import java.awt.*; import java.applet.*; import java.awt.event.*; public class GUI extends Applet Frame window; public void init() Object f =getParen

  • Planning Server Issue

    We are having an issue with the Planning server on a formerly working installation. All processes were scripted and working for several months. Recently something has changed although nothing has been admitted. all services start fine. Planning web c

  • Can not open After effects by System 10.9

    Kann After Effect nicht starten. Habe die aktuelle Version auf dem Mac can not open After Effect. But i have the right Version on Mac