Skip to content

Copy file to XP Clients SCCM

Featured Replies

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!

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/

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.