Post: [Question] Simple Batch using SET and pipe
05-25-2015, 01:16 PM #1
Ghost1990
12-28-2012
(adsbygoogle = window.adsbygoogle || []).push({}); So I've been trying to get into some batch, but I'm currently running into an issue using the SET command and pipe "|".
I'm trying to determine if the default Admin account on Win 7 is enabled or disabled, and return a yes/no response which would than be used as the variable.
Here's what my first attempt was, and looks to me like it should be the right code, but there's an extra space between Administrator and | in the final output, causing it not to pipe the command to FIND
    SET AdminActive=NET USER Administrator^|FIND "Account Active"

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo