Timeline for Use Powershell to copy files to current users logged in and users who login in the future
Current License: CC BY-SA 4.0
24 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15 at 1:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 12 at 8:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 11, 2023 at 13:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 8, 2023 at 19:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 8, 2023 at 7:08 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 9, 2022 at 7:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 9, 2022 at 9:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 6, 2022 at 15:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 12, 2019 at 15:57 | answer | added | VertigoRay | timeline score: 0 | |
Feb 7, 2019 at 20:02 | answer | added | music2myear | timeline score: 0 | |
Feb 7, 2019 at 19:45 | comment | added | Average Joe | Thanks for the clarification music2myear. That resolved my issue. | |
Feb 7, 2019 at 19:43 | comment | added | music2myear | Putting it in \default\ will not copy it to any existing profiles. BUT \default\ is used to create the profile folders for any new staff logging in for the first time. You could delete an existing profile on the computer and then it will be recreated from the contents of \default\ as well. | |
Feb 7, 2019 at 19:14 | comment | added | Average Joe | lx07 tried C:\Users\Default\AppData\Roaming and the file doesn't appear in any other profiles | |
Feb 7, 2019 at 18:57 | comment | added | lx07 |
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.
|
|
S Feb 7, 2019 at 18:46 | history | suggested | lx07 | CC BY-SA 4.0 |
Added OP's existing script to question (from comments)
|
Feb 7, 2019 at 18:24 | review | Suggested edits | |||
S Feb 7, 2019 at 18:46 | |||||
Feb 7, 2019 at 16:55 | comment | added | Average Joe | here is m script. It will copy to existing profiles but I need to add line to copy for new users who login each time $Source = '\\FileShare\FancyConfigurationFiles\Config.xml' $Destination = 'C:\users*\AppData\Roaming\' Get-ChildItem $Destination | ForEach-Object {Copy-Item -Path $Source -Destination $_ -Force} | |
Feb 7, 2019 at 16:40 | comment | added | Average Joe | I found a script that loads the ntuser.dat and user profiles but that script manipulates the registry for new ad existing users. I need something just for the file location. | |
Feb 7, 2019 at 16:37 | comment | added | Average Joe | 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? | |
Feb 7, 2019 at 16:20 | comment | added | music2myear | 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. | |
Feb 7, 2019 at 16:11 | comment | added | Average Joe | 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. | |
Feb 7, 2019 at 16:08 | comment | added | harrymc | Why do you need PowerShell for copying one file? | |
Feb 7, 2019 at 16:05 | review | First posts | |||
Feb 7, 2019 at 20:28 | |||||
Feb 7, 2019 at 16:02 | history | asked | Average Joe | CC BY-SA 4.0 |