title: Transfer file from Windows to Linux without using 3rd party software and using Shell.Application only
body: <p>How to transfer file from Window Server to Linux without using 3rd party software? I just can use pure PowerShell script to transfer zip file. </p>
  
  <p>I'm using <strong>PowerShell v2.0</strong> (I know it's pretty old and I don't have privilege to update to current version - only can use for <code>Shell.Application</code> script)</p>
  
  <ol>
  <li>Telnet successfully</li>
  <li>Destination server installed private/public key (which I gen from my server using PuTTYgen - but no privilege to install PuTTY or WinSCP)</li>
  </ol>
  
  <pre class="lang-bsh prettyprint-override"><code>$timestamp = (Get-Date).AddMonths(-1).ToString('yyyy-MM-dd')
  $todaysDate = (Get-Date).AddDays(-1)
  $source = "D:\Testing\*.csv", "D:\Testing\*.csv"
  $target = "D:\Testing\bin\$timestamp.zip"
  $housekeepZipFile = "D:\Testing\bin\*.zip"
  $locationToTransfer = "D:\Testing\bin\*.zip"
  $mftFileTransfer = "UserName@192.168.0.50:/UserName/Outbox"
  
  Get-ChildItem -Path $locationToTransfer –Recurse | Where-Object {
      $_.LastWriteTime -gt (Get-Date).AddDays(-1)
  } | Copy-Item -Destination $mftFileTransfer -Force
  </code></pre>
  
  <p>Is my syntax correct? Just now tried, seems not receive any file.</p>
  
  <p>Using <strong>Window Server 2008</strong> </p>