title: Batch Script to verify login credentials
body: <p>I am writing a batch script for my department, that can perform some remote restart and connection verification functions. However, I want to ensure that the person using the batch script has active credentials. The start of the script is as follows for login information:L</p>
  
  <pre><code>:credentials
  SET /p UN=Username: 
  cls
  SET /p PW=Password:
  *login verification code here*
  if %errorlevel% == 0 (
  @echo off
  color 02
  goto :shutdownset1
  ) else (
  if %errorlevel% == 1
  echo Invalid Login Information!
  pause
  goto :credentials   
  </code></pre>
  
  <p>This setup I am using to store the logon information as variables, that the user must enter, now I am having trouble finding the proper command to verify those credentials... I know already how to use the if and else statements with errorlevel argument, but I lack the initial command or commands to verify the username and password. Any thoughts.</p>