Edit

Authenticate (username, password [, privilegeName])

Result Type:  Boolean (0 or 1)

Definition:  Returns 1 if the user exists and the password is correct for that user, otherwise returns 0. If a privilege name string is supplied, then the user must also have that privilege to get a true result.

You might use this function to allow temporary privilege escalation within a script, by asking for an administrator's credentials. Your script is responsible for enforcing privilege restrictions in this way when you perform privileged operations within an elevated handler.

Availability:  available within MWScript handlers.

See Also:

Allowed: Test a named privilege for the current user