This is an old revision of the document!
# Get the TS variables $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment $DeployRoot = $tsenv.Value("DeployRoot") #Copy Item from Deployroot Copy-Item "$DeployRoot\Scripts\This.exe" -Destination "C:\Scripts"