Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

copy and replace files on SCCM client

$
0
0

Hello - What is the best way to copy and replace file on SCCM client which are windows 2003 and windows 2008/R2?

 

I tried to use the vb script but it didnt worked.

Dim objFSO, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("\\sccmtst01.test.edu\DIS\script\replacefile\adnan.txt")
objFSO.CopyFile objFile.Path, "D:\adnancopytest\"
WScript.Echo "Done."

 

this is what i see on execmgr.log on sccm client

 

Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramStartedEvent
{
    AdvertisementId = "DT22001B";
    ClientID = "GUID:419956D9-3DC4-41AC-9219-C7DB3158E009";
    CommandLine = "\"C:\\Windows\\System32\\WScript.exe\" \"C:\\Windows\\SysWOW64\\CCM\\Cache\\DT200017.1.System\\copyandreplace.vbs\"";
    DateTime = "20111123192152.800000+000";
    MachineName = "SCOMAGENT";
    PackageName = "DT200017";
    ProcessID = 2012;
    ProgramName = "copy and replace file";
    SiteCode = "DT2";
    ThreadID = 816;
    UserContext = "NT AUTHORITY\\SYSTEM";
    WorkingDirectory = "C:\\Windows\\SysWOW64\\CCM\\Cache\\DT200017.1.System\\";
};


ad

 

 


ad

Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>