I am an SCCM noob and I'm attempting to push an updated HOSTS file and a MacroMedia Flash configuration file to the appropriate folders under the Windows\System32 directory, but I'm getting "Access Denied" errors and can't seem to figure out what I'm doing wrong. My clients are a mix of 32-bit XP and Vista, and Win7 (32 & 64 bit).

The destinations are:
1) %windir%\System32\Macromed\Flash\mms.cfg (this folder exists on the clients, most do not have the actual file...)
2) %windir%\System32\drivers\etc\hosts

Here's the command-line I'm using:
xcopy /y %~dp0mms.cfg %windir%\System32\Macromed\Flash\
xcopy /y %~dp0hosts %windir%\System32\drivers\etc\

I have the files to be copied and the batch files in the same directory for each package. I have selected "Run with administrative rights" and "Whether or not a user is logged on" in the package, and "Download content from distribution point and run locally" in the Advertisement. My understanding is that the SCCM client runs as the "Local System" account on the client and should have full access to these folders and files.

I'm sure it is something fairly simple that I'm missing, but right now I'm just not getting it.
Thank you for your help.
-Rob
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
I have used copy instead of xcopy but I do not think that´s your issue, you probably need quotes:
xcopy /y "%~dp0mms.cfg" "%windir%\System32\Macromed\Flash\"
Answered 06/27/2011 by: admaai
Orange Senior Belt

Please log in to comment
-1
You have SCCM but you're using a HOSTS file?!?!?!?!? Wouldn't DNS be more efficient, not to say, somewhat quicker?
Answered 06/29/2011 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity