title: Simulating logging in to Windows without GUI
body: <p>I am writing an automation the deployes several machines and installs several programs on them.</p>
  
  <p>One of the steps a user would do manually is logging off and on to a windows computer as part of an installation process. </p>
  
  <p>Can someone please point me to relevant links so i can understand how to simulate a logging in process into windows without a gui?</p>
  
  <p>I mean i need to make the machine think someone logged in to it and i am using only powershell.</p>
  
  <p>launching mstsc does not do the trick because i cant overcome the request for certificate (I need an automatic process but i did not find a way to silence the certificate warning)</p>
  
  <p>I searched for a couple of days and could not find what I was looking for.</p>
  
  <p>Thank you for your help!</p>