/build/static/layout/Breadcrumb_cap_w.png

Deploy HOSTS File with SCCM

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

Answers (2)

Posted by: admaai 12 years ago
Orange Senior Belt
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\"
Posted by: anonymous_9363 12 years ago
Red Belt
-1
You have SCCM but you're using a HOSTS file?!?!?!?!? Wouldn't DNS be more efficient, not to say, somewhat quicker?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ