Deployment Solution

 View Only
  • 1.  'Copy File To' feature

    Posted Jan 12, 2009 02:56 AM
    My goal is to use altiris to copy a file from a local drive on the server to the My documents folder of the destination computer. I am using the "copy file to...' feature. I would be open to using a script, but do not know a lot about creating scripts.

    The problem is that the my documents folder is obviously different for each computer, depending on the user. Is there a variable for the current user, something like %currentuser% or something?

    When using the 'Copy File To...' I select:

    Copy Directory
    Source Path = D:\testfolder (this is a folder on the server)
    Copy subdirectories = yes
    Allow to run in automation = no
    Destination Path = C:\Documents and settings\%currentuser%?\My documents


    kyee


  • 2.  RE: 'Copy File To' feature

    Posted Jan 12, 2009 03:17 AM
    In this example I was copying a directory to a local lab machine used by multiple users. I am copying a directory, but the same thing applies to individual files(I just checked the directory box). A file copy job. from is: .\install\pltw(the server directory) and the destination is: C:\Documents and Settings\all users\documents\PLTW. This is on the workstatioin. This is copied to the normal "shared documents" directory which all users have access to.


  • 3.  RE: 'Copy File To' feature

    Posted Jan 12, 2009 03:20 AM
    Here is a list of token that you can use in scripts with DS.
    Try %USER_NAME%


  • 4.  RE: 'Copy File To' feature

    Posted Jan 12, 2009 04:27 AM
    If the My Documents folder is consistent for each user (i.e. c:\documents and settings\USERNAME\My Documents), there is a system variable for the profile path.

    %USERPROFILE% should point to the logged on user's active profile. So, in this scenario, you would have the script copy the file to "%USERPROFILE%\My Documents"

    This will not work if someone's My Documents have been redirected though.