November 16th, 2013

PowerTip: Use PowerShell to Copy Profiles to SkyDrive

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to copy all profiles from a local computer to SkyDrive.

Hey, Scripting Guy! Question How can I use Windows PowerShell to copy all of the profiles from my local computer to SkyDrive?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet. This works only if you have SkyDrive set up and available to the local computer:

Get-ChildItem $pshome\*profile.ps1, $home\Documents\WindowsPowerShell\*.profile.ps1 |
Copy-Item -Path $home\SkyDrive

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.