title: How to check the start type of a windows service is "auto" or "auto-delayed" using Powershell 5 in windows server 2012
body: <p>During maintenance, before I stop a Windows service, I need set its start type to Manual. Later I need switch it back to its original start type. So I need know the start type before I stop a service. </p>
  
  <p>In Windows 10,  I know there is a property called "DelayedAutoStart", but it seems not available in Windows Server 2012.  How can I get the start type of a service in Powershell?   </p>
  
  <p>I am using Powershell 5.1 on Windows Server 2012.</p>