Saturday, March 12, 2011 9:02 PM
VBScript To Copy To A User Profile Subfolder
If you need to copy a file, a folder, or a slew of things to the user profiles on an existing machine, then this is the script for you! As SCCM Admins we typically seem to find ourselves always needing to push something out to our users after-the-fact. So this script illustrates one easy way to copy a file to a subfolder in a user profile. It should work fine on 2000/XP/Vista/7. All you need to do is tweak a few lines in the script, and then place the desired file to be copied into the same folder as the script file. Then just make a package of the entire folder and send it out the door to your users (of course, that's always AFTER you make sure to test things).
CopyToUserProfileSubfolder.vbs (right-click and save the linked file)
(you will need to save the file and then change the .TXT extension to .VBS)
Please keep in mind that like with many Microsoft things, there's about a bazillion ways to do the same task. So this script is here just to show you one quick method of getting things out the door.
Filed under: SCCM, Scripts, VBScript