Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Added OP's existing script to question (from comments)
Source Link

I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\username\AppData\Roaming

Please help not great at powershell

Here is my current 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}

I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\username\AppData\Roaming

Please help not great at powershell

I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\username\AppData\Roaming

Please help not great at powershell

Here is my current 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}
Source Link

Use Powershell to copy files to current users logged in and users who login in the future

I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\username\AppData\Roaming

Please help not great at powershell