I'm looking to create a powershell script that will force copy a file to multiple folders.
I can get the file to copy over to the folder, but I'm struggling with the commands to make that file get copied over to subfolders.
For example:
File (call it tempfile.accdb) gets copied to C:\dbtemp\
So tempfile.accdb needs to get moved to C:\program\user 1, user 2, user 3, etc...The user folders aren't static and change, so i need it be able to just move it to the directory subfolders.
I can get the file to copy over to the folder, but I'm struggling with the commands to make that file get copied over to subfolders.
For example:
File (call it tempfile.accdb) gets copied to C:\dbtemp\
So tempfile.accdb needs to get moved to C:\program\user 1, user 2, user 3, etc...The user folders aren't static and change, so i need it be able to just move it to the directory subfolders.