I know this will be very simple for most of you here so please bare with me…
I want to copy a folder to a local PC and then copy a file into the windows startup that points to a file in said folder…
Zipped folder? of BGInfo*.* to unzip to C:\BGInfo*.*.
Put start_bginfo.bat into C:\Documents and Settings\All Users\Start Menu\Programs\Startup
I would like it if the folder was passed to each relay server and then copied to the local workstations… I’m still pretty new to BigFix and haven’t done the training yet as it’s not offered very often…
Just a little something to add onto what Ben wrote. Since MS changed the location of where user profiles are stored in Vista/7, you may want to change the one line to this:
waithidden cmd.exe /C copy /Y “__Download\start_bginfo.bat” “{value of variable “ALLUSERSPROFILE” of environment}\Start Menu\Programs\Startup\start_bginfo.bat”
yes, systemroot works. These are the most common ones I use:
q: value of variable “systemroot” of environment
A: C:\WINDOWS
q: value of variable “ProgramFiles” of environment
A: C:\Program Files
q: value of variable “Userprofile” of environment
A: C:\Documents and Settings\xxxxxx
If the folder already exists, then the mkdir will probably fail. To fix this, you could first put in an action to delete the folder, or put some relevance into the fixlet that says it is not applicable if the folder already exists wiithin the C:\windows\ folder