Jump to content


  • 0
DizzleSizzle

Copy file to XP Clients SCCM

Question

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!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.