title: Batch script to acquire all users list of local machine
body: <p>Batch script to find all users having account in local machine except currently logged in user and other default users.</p>
  
  <p>Code : </p>
  
  <pre><code>@echo off
  SET "Value="
  SET Users="dir C:\Users\ /B"
  FOR /F "tokens=1*" %%A IN ('%Users%') DO (
      SET "Name=%%A"
      IF /I "%NAME%" NEQ "Administrator" (
          IF /I "%NAME%" NEQ "Public"(
              IF /I "%NAME%" NEQ %USERNAME% (
                  SET "Value=%Value% "
                  SET "Value=%Value%%%A"
  
              )
          )
      )
  )
  echo %Value%
  </code></pre>
  
  <p>Is this logic correct ? Having issue with syntax. Open to suggestions.
  And i want to store all users in a single variable.</p>
  
  <p>I think the above script when corrected will o/p like this :
  <code>user1 user2...</code> </p>
  
  <p>But i want to use newline function instead of space as delimiter. Something like :</p>
  
  <pre><code>user1
  user2
  </code></pre>