TcXaeMgmt Version 7.X | Copy-AdsRemoteItem SYNTAX NetId (Default) Copy-AdsRemoteItem [-Path] [-Destination] [-Force] [-NetId ] [ ] Route Copy-AdsRemoteItem [-Path] [-Destination] [-Force] -InputObject [ ] AddressStr Copy-AdsRemoteItem [-Path] [-Destination] [-Force] -Address [ ] SessionId Copy-AdsRemoteItem [-Path] [-Destination] [-Force] -SessionId [ ] DESCRIPTION The Copy-AdsRemoteItem cmdlet implements file copy operations with TwinCAT systems. It supports four modes: download (ADS to local), upload (local to ADS), ADS-to-ADS copy (between StandardDirectories on the same or different targets), and local-to-local copy. The transfer direction is automatically detected from the path format.
All TwinCAT systems that are registered as actual routes and are online within the network are supported. EXAMPLES Example 1 PS > Copy-AdsRemoteItem -Address CX_00001 -Path "Local:\BOOTDIR\CurrentConfig.xml" -Destination c: \tmp\Config1.xml Downloads the CurrentConfig.xml from the BootDir of the target system to 'c:tmpConfig1.xml'. Example 2 PS > Copy-AdsRemoteItem -Address CX_00001 -Path c:\tmp\Config1.xml -Destination "Local: \BOOTDIR\CurrentConfig.xml" Uploads the file 'c:tmpConfig1.xml' on the local system to the target BootFolder of system CX_00001.
Example 3 PS > Copy-AdsRemoteItem -Address CX_0001 -Path "\TARGETDIR\ReadMe.txt" -Destination d:\tmp\ Downloads the file 'ReadMe.txt' from the TargetDir of system CX_0001 to the local system and stores it under d:tmpReadMe.txt. Example 4 PS > Copy-AdsRemoteItem -Path "Local:\TARGETDIR\ReadMe.txt" -Destination "Local: \BOOTDIR\ReadMe.txt" -Force Copies the file 'ReadMe.txt' from the TargetDir to the BootDir on the local TwinCAT system (ADS-to-ADS copy). Example 5 PS > Copy-AdsRemoteItem -Path c:\tmp\Config1.xml -Destination d:\backup\Config1.xml TE1000 75 Version: 1.5.0