Skip to content

Instantly share code, notes, and snippets.

@jangeador
Created December 1, 2016 01:16
Show Gist options
  • Save jangeador/6a58cc5f2171690c9e2d664c8b2d42f9 to your computer and use it in GitHub Desktop.
Save jangeador/6a58cc5f2171690c9e2d664c8b2d42f9 to your computer and use it in GitHub Desktop.
Rename the "My Documents" folder to "Documents"
Get-ChildItem -Directory -Recurse | where-object { $_.Name -like "My Documents" } | Rename-Item -newname { $_.name -replace "My Documents", "Documents" } -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment