RS Client

Posted on 2014-08-13
Last Modified: 2015-05-01
Below is my batch file for SCCM2007, if I copy the .cab file to locally it installs fine, but running it through SCCM from either a distribution point or locally it fails with the following error: "A failure exit code of 3 was returned.  User context: NT AUTHORITY\SYSTEM, please advise.

xcopy RSClientPrint.dll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1028.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1031.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1033.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1036.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1040.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1041.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1042.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1043.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1046.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_1053.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_2052.rll %WINDIR%\system32 /c /y
xcopy RSClientPrint_3082.rll %WINDIR%\system32 /c /y
regsvr32 /s %WINDIR%\system32\rsclientprint.dll

I really don't see why this is failing?!?
Question by:Peter Jin
    1 Comment
    LVL 82

    Accepted Solution

    You need to specify the path to the files to copy. Assuming the dll and rll files are in the same folder as the batch script, try it like this:
    xcopy "%~dp0RSClientPrint.dll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1028.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1031.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1033.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1036.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1040.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1041.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1042.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1043.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1046.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_1053.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_2052.rll" %WINDIR%\system32 /c /y
    xcopy "%~dp0RSClientPrint_3082.rll" %WINDIR%\system32 /c /y
    regsvr32 /s %WINDIR%\system32\rsclientprint.dll

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Via a live example, show how to setup several different housekeeping processes for a SQL Server.
    Viewers will learn how the fundamental information of how to create a table.

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now