ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Help with Windows batch script

<< < (2/2)

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.

@Ath: I was hoping you'd show us a one line Powershell script.


Good idea the per server user list.  :Thmbsup:


[0] Message Index

[*] Previous page

Go to full version