This script shows active as well inactive local windows users. Strange but I did not found this in internet so I had to make myself combining two scripts. So what it does, take property LastLogon for each user and writes in file LastLogon.txt PowerShell did not show any wmi property LastLogon for local Users. Script works fine on Windows Server 2008, not intended for domain users. You just need to create file LastLogon.txt in the same directory as vbs script and run it from Administrator command prompt. So it appears in the same directory as vbs script. Just save the code with extension vbs and it works great. Thanks to Roger Ling