This shows you the differences between two versions of the page.
tsm:tsm_tdpexchange_cmdlets [2021/01/01 21:25] 127.0.0.1 external edit |
tsm:tsm_tdpexchange_cmdlets [2023/10/11 15:02] (current) manu |
||
---|---|---|---|
Line 62: | Line 62: | ||
To display the help in a separate window, include the -showwindow parameter with the help command. | To display the help in a separate window, include the -showwindow parameter with the help command. | ||
+ | |||
+ | Example of script | ||
+ | |||
+ | **listbackup.ps1** | ||
+ | <code> | ||
+ | cd "C:\Program Files\TSM-EXCH\FlashCopyManager" | ||
+ | |||
+ | import-module .\FmModuleExc.dll | ||
+ | import-module .\FmModuleFs.dll | ||
+ | import-module .\FmModuleMMC.dll | ||
+ | import-module .\FmModuleSQL.dll | ||
+ | Get-DpExcBackup|export-csv -NoTypeInformation -LiteralPath "C:\LogFiles\Tsm-EXCH\backuplist.csv" | ||
+ | remove-item ("\\filesrv01\d$\Reports\Exchange_backup\Backup_"+ $env:hostname +".csv") -Confirm:$false | ||
+ | Copy-Item "C:\LogFiles\Tsm-EXCH\backuplist.csv" ("\\filesrv01\d$\Reports\Exchange_backup\Backup_"+ $env:hostname +".csv") | ||
+ | </code> | ||
+ | |||
+ | |||