Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • 1
    Why do you need PowerShell for copying one file?
    – harrymc
    Commented Feb 7, 2019 at 16:08
  • After deployment of an application I need to push this file to multiple computers and different users login to these machines so I need each profile to get the file once a user has logged on. Commented Feb 7, 2019 at 16:11
  • 1
    Place the files in the Default User profile and they will be included in every new profile that is created as new people log in. Commented Feb 7, 2019 at 16:20
  • I tried putting the file in the defaultuser0 profile and it didn't put the file in any existing profiles music2myyear let alone a newly logged in profile. Any other suggestions? Commented Feb 7, 2019 at 16:37
  • 1
    You said "I tried putting the file in the defaultuser0". This is not correct - it should be Default not defaultuser0 which is something else. Try putting it in C:\Users\Default\AppData\Roaming. This should work for new accounts as @music2myear mentioned earlier and your script should work for existing.
    – lx07
    Commented Feb 7, 2019 at 18:57