#indicate the log file we will write to $path = "C:\rs-pkgs\test\copyresults.log" ForEach ($user in (Get-ChildItem "C:\Users" -Exclude Public)) { Try { Copy-Item -Path "$user\AppData\Roaming\Microsoft\Signatures" -Destination "C:\rs-pkgs\test" -recurse -Force #WHOA! IT WORKED! Now we can write a log file entry saying it worked, LETS DO IT! $success = "User copied: " ,$user Add-Content -Path $path -Value $success -Force } Catch { #SOAB IT DIDN'T WORK. Well, at least lets write our failure to the log file $failure = "User NOT copied: " ,$user Add-Content -Path $path -Value $failure -Force } }