CA Client Automation

  • 1.  Asset Job script problem

    Posted Sep 28, 2017 04:23 AM

    Hi,


    I try to save Users Desktop and Favorites to Network Folder with asset Job.

    In my cmd box this works fine:

     


    Robocopy "%USERPROFILE%\Favorites" "\\n150101t\%homepath:~8,2%-daten\%USERNAME%\sicherung\Favoriten" /mir /log+:"%SystemDrive%\#temp\Sicherung-Favoriten.log"

     


    If i do this in an asset Job from 9:00 am to 4:00 PM, on Job result i see that no log was created.

     


    Maybe a user context Problem ?

    Under which user asset Jobs run ?

    We change sdagent user to domain admin user , i think there was not a right Problem.

     


    Regards

    Dieter



  • 2.  Re: Asset Job script problem

    Broadcom Employee
    Posted Sep 28, 2017 08:00 AM

    An asset job runs as local system if it ran it as a computer job.  Local system has no profile or network access unless you include in your script a net use and pass proper credentials or if you enable an anonymous share so no credentials are needed.

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 3.  Re: Asset Job script problem

    Posted Sep 28, 2017 08:31 AM

    That’s only partially true. You can create an Asset Job and attach it to User Profiles instead of Computers. The job will then run when the user logs on rather than when the computer runs its inventory, and will run under the user’s credentials and context.

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 4.  Re: Asset Job script problem

    Posted Oct 06, 2017 02:10 AM

    Hi,

     

    this works great.

     

    Regards

    Dieter