Hi,
I am just trying to teach my self some basic scripts, am totally new to coding. What i am looking to do is to comprise a script to copy files or folder from one location to all users "my documents" folder.
currently this is on windows 2008 r2 platform.
the files needed to be copied would be on a server eg \\fileserver\Filefolder
the folders needing the files are laid out like this \\fileserver\redirected$\Pupils\2013start\JBloggs13\My Documents
\\fileserver\redirected$\Pupils\2013start\TBloggs13\My Documents
so my problem is how do i get the script to copy to all the usernames "my documents folder" without manually specifying the unc path of all of them. Also does the fact there is a space in my documents affect the layout of the script.
the users dont have a home path specified in AD, they are redirected through Group Policy.