Skip to content

A suite of PowerShell Exchange Online Get/Export/Search command wrappers.

Notifications You must be signed in to change notification settings

TerryED0618/Export-ExO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See Export-ExO.pptx for description and usage.

Remove ".TXT" file name extension from files with a nested extensions.  For example rename BATCH.CMD.TXT to BATCH.CMD or SCRIPT.PS1.TXT to SCRIPT.PS1.

# Remove *.TXT extension for any file name with a nested extension ending with '.TXT'
Get-ChildItem -Path *.*.TXT -File -Recurse | ForEach-Object { Rename-Item -Path $PSItem.VersionInfo.FileName -NewName ( $PSItem.VersionInfo.FileName -Replace '\.TXT$', '' ) -PassThru }

# Add *.TXT extension for any file name ending with .CMD or .PS1 extensions.
Get-ChildItem -Path *.CMD,*.PS1 -File -Recurse | ForEach-Object { Rename-Item -Path $PSItem.VersionInfo.FileName -NewName "$($PSItem.VersionInfo.FileName).TXT" -PassThru }

About

A suite of PowerShell Exchange Online Get/Export/Search command wrappers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published