title: Remote execute Power Shell scripts to collect data
body: <p>I am looking to collect data snapshot on a random interval from various machines in our network that we don't own, but may get access to install an agent to collect these data. </p>
  
  <p>These machines are either in a domain or work-group and kind of data i get are based on the role they play and information they have. The machines are "Windows Server 2003" and above and I do not want to install anything on those machines before i get started, so thought I can use the PowerShell scripts that I can remote invoke form my server and pass the script it has to run to return the data. </p>
  
  <p><img src="https://i.stack.imgur.com/CxOhm.png" alt="enter image description here"></p>
  
  <p>I was wondering if this is possible to do that with the PowerShell scripts and as this is supposed to run in a secure environment, is there any major security implications with this approach. i.e. do I need to do anything on the client machines that can make them vulnerable to security threats. </p>
  
  <p>BTW these machines are not exposed to internet and are behind a firewall.</p>
  
  <p>I would appreciate if you point me to any other alternatives that can be useful for my analysis.</p>
  
  <p>Regards
  Kiran</p>