Deployment Solution

 View Only
  • 1.  Copy File From?

    Posted Mar 26, 2009 07:30 AM
    Hi Guys,

    Was hoping someone might be able to tell me if its possible to set up a job in DS to copy a file back from the Client machine.

    So basicly the opposite of the "Copy File to".

    The reason for this is that our client servers do not have NetBIOS access to a central location for me to create a "Run Script" job to copy the file from the client machine to the central location.

    As far as I can tell I would have to do a "Run Script" and have it run locally on the Deployment Server to map a network drive to the client server and pull the file off that method.

    But having the option to copy the file back via the Altiris Client would be great.

    Hope this makes sense and that someone can help.

    Cheers

    Dave 


  • 2.  RE: Copy File From?

    Posted Mar 26, 2009 08:58 AM
    Not sure if I am reading the question right or not.  When you say the clients don't have netbios access to a central server, does that mean the ds server doesn't have netbios access to the clients?

    If the DS server does have access (and the logged on user of the server has admin rights), you might run this script and configure it this way (note:  the if statement is if you want to separate where the files are coming from).  If you can't access the client via \\computer\c$ from the DS, then this will not work.

    1.  Create a new job.

    2.  Add "Run Script" task.

    3.  Choose "Run this script:" and type the following:
    if not exist c:\%COMPNAME% md c:\%COMPNAME%
    copy \\%COMPNAME%\c$\dir1\file1 c:\%COMPNAME%\*.*

    4.  Click Next

    5.  Choose "Locally on the Deployment Server" under "Script Run Location" and make sure the check box is checked for Run when the agent is connected.

    6.  Click Finish and then run the job on a test computer.

    Hope this helps.



  • 3.  RE: Copy File From?

    Posted Mar 26, 2009 11:01 AM
    Hi,

    Thanks for the reply.

    Yeah that method is similair to what I was going to do if the Altiris Agent itself didnt offer a way of copying the files back.

    But I have just discovered that we dont have NetBIOS access from the DS server to the clients, and this cannot be changed.

    So basicly unless the Agent offers a direct Copy option im a little bit stuck.

    If thats the case I think I will resort to some vbscript and CDO to attach the file im after to a mail and hit the relay all our client machines have access to.

    Thanks again for the reply and the time :)

    Dave


  • 4.  RE: Copy File From?

    Posted Mar 26, 2009 11:22 AM
    I would imagine that the clients and the DS would have access to a file server.  What about using that access to your advantage.  Instead of copying it to the DS, use the DS to run the copy script to a central file server that all the machines have access to.

    That might be a work around. 


  • 5.  RE: Copy File From?

    Posted Mar 26, 2009 11:32 AM
    You can check out this article.  It has a link to a download I also posted to get to the vbscript that might meet your needs.  There is a "restore" counterpart if you're interested. 

    http://www.symantec.com/connect/articles/customizing-barebones-backup-script


  • 6.  RE: Copy File From?

    Posted Mar 31, 2009 11:26 AM

    Hi,

    Sorry in the delay on replying.

    From our Client Machines we dont have any NetBIOS access to any server so we are quite stuck.

    Thanks for pointing out the PCT stuff, that was something we hadnt looked at yet and could of possibly worked but this reuired NetBIOS access as well.

    I will let you know what we do in the end to work around this problem.

    Cheers
    Dave



  • 7.  RE: Copy File From?

    Posted Mar 31, 2009 12:09 PM
    So, you are saying that these machines don't access any file server of any sort?  No mapped drives at all?

    Another option would be to utilize FTP, if you have an IIS server or FTP box that you could use.