DizzleSizzle Posted June 2, 2011 Report post Posted June 2, 2011 I'm trying to copy a file to the system32 folder of all my XP clients with SCCM and every time i try it fails. i set up a package to the directory of the file i want to copy and running the command: cmd /y \\SCCMSERVER\PACKAGE\trace32.exe "c:\windows\system32" i even tried running this as a bat file and still no luck....works fine on my Win7 boxes, just not XP. Anyone have any ideas? Thanks! Quote Share this post Link to post Share on other sites More sharing options...
Eswar Koneti Posted June 2, 2011 Report post Posted June 2, 2011 I'm trying to copy a file to the system32 folder of all my XP clients with SCCM and every time i try it fails. i set up a package to the directory of the file i want to copy and running the command: cmd /y \\SCCMSERVER\PACKAGE\trace32.exe "c:\windows\system32" i even tried running this as a bat file and still no luck....works fine on my Win7 boxes, just not XP. Anyone have any ideas? Thanks! Try this Script: on Error Resume Next Set FSO = CreateObject("Scripting.FileSystemObject") Set objinputfile=fso.OpenTextFile("computers.txt",1,True) Set objoutputfile=fso.OpenTextFile("status.csv",2,True) Do While objinputfile.AtEndOfLine <> True strcomputer=objinputfile.ReadLine Set objWMIService = GetObject("winmgmts:\\" & strComputer) If Err.Number <> 0 Then objoutputfile.WriteLine(strcomputer & space(15-len(strcomputer)) & "is not reachable") Err.Clear Else strFileName = "D:\FileName.Txt" Const OverwriteExisting = True FSO.CopyFile strFileName, "\\" & strComputer & "\C$\" objoutputfile.WriteLine (strcomputer & "," & space(15-len(strcomputer)) & "File Copy done") End If Loop MsgBox "Done" Bold Letters requires modifications. Via http://social.techne...5-5b1b5453ddae/ Quote Share this post Link to post Share on other sites More sharing options...