Weekly Tip 11

Copy files to all existing user profiles and default user profile during application deployment using PowerShell:

 $profiles = (get-childitem C:\Users –force | where-object {$_.mode –eq “d—-”}).name ForEach ($profile in $profiles) { copy-item .\<file> -destination C:\Users\$profile\<rest of path> -recurse } copy-item .\<file> -destination C:\Users\default\<rest of path> -recurse

Share:

Facebook
Twitter
LinkedIn
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

Please enable JavaScript in your browser to complete this form.
Name
=
On Key

More Posts

Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

Please enable JavaScript in your browser to complete this form.
=