Main Area and Open Discussion > General Software Discussion
Help with Windows batch script
Ath:
You might want to create a %server%-validusers.txt file, by making these subtle changes:
--- Code: Text ---...SET userlist=validusers.txt...and
--- Code: Text ---...:Logofffindstr /I ^%1$ .\%5-%userlist% >NUL...
and having 3 files APPLE-validusers.txt, BANANA-validusers.txt and CHERRY-validusers.txt in the current directory.
You could make it even more fancy by adding a check for common users in validusers.txt, but that seems like a little overkill to me.
4wd:
@Ath: I was hoping you'd show us a one line Powershell script.
:P
Good idea the per server user list. :Thmbsup:
Navigation
[0] Message Index
[*] Previous page
Go to full version