title: Using Powershell to check proxy setting on remote machine
body: <p>So i know I can't use Netsh because WinRM is disabled/access denied on my network. 
  I cant invoke etc. 
  So I'm trying to figure out a way to take a list of computer names and get the proxy from the machines. 
  So, my idea is to take the list I have on a \share, and <code>foreach ($pc in $list)</code> I would copy over a .cmd file from the same share. that .cmd file just runs a powershell script from the share, on that remote machine. 
  So copy a cmd to remote machine. Run cmd on remote machine, that cmd just runs the powershell script that gets the proxy from the registry, and then writes the machine name and the proxy to a file on the share. 
  But, 
  I'm getting a blank output tho. So, weird. 
  Here's the script that runs on the remote machine:</p>
  
  <blockquote>
    <p>Set-ExecutionPolicy Unrestricted -Force</p>
    
    <p>$proxy = (Get-ItemProperty </p>
    
    <p>'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings') | Select-Object <em>AutoConfigURL</em> </p>
    
    <p>"$env:computername $proxy" |
    Out-file -filepath "\share\Proxy\IEproxylistResolved.csv" </p>
  </blockquote>
  
  <p>The problem is that I get empty file in <code>IEproxylistResolved.csv</code> its 3am and I'm prob just half dead in the head but could use a fresh perspective. </p>