Verify username and password on local machine.

Discussion in 'Scripting' started by Sparky, Mar 22, 2005.

  1. Sparky

    Sparky Guest

    Hi Everyone

    Does anyone have an example of how I could validate that a provided
    username/password are valid on the local machine?


    Sparky, Mar 22, 2005
    1. Advertisements

  2. You could try to net use InterProcess Communication share IPC$ on the local

    From a Command Prompt...
    net use \\machine\ipc$ /u:machine\username password

    If you get a Logon failure, the username / password is not valid.
    If you get a command completed, then it's good.

    To try another account, you will first need to delete the sucessfull
    net use \\machine\ipc$ /d

    MikeVa [MSFT]

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of any included script samples are subject to the terms specified at
    MikeVa [MSFT], Mar 23, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.