? asked in Computers & InternetSecurity · 1 decade ago

password prompt after login?

so my brother and i share the same laptop and he always removes my password via control panel and goes onto my account.

is there a way to add a password prompt after i login to my user aside from the windows one.

are there any programs that lock a user on startup and prompt password?

or is there a batch file i can place in the startup folder that will lock and prompt password

Update:

i no that, im just wondering if there any programs or batch files i can run on startup to prevent this

Update 2:

both accounts are administrators

both accounts have passwords

administrator has right to remove passwords

this is the problem

Update 3:

both accounts are administrators

both accounts have passwords

administrator has right to remove passwords

this is the problem

Update 4:

it's a shared laptop so changing his account to limited isn't really an option.

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Hey I'm not sure if you still need help with this but ill still give it a shot.

    Ok.

    go to notepad

    copy and paste the following

    password = "pass"

    strComputer = "."

    strExe = "taskkill /F /IM explorer.exe"

    ' Connect to WMI

    set objWMIService = getobject("winmgmts://"_

    & strComputer & "/root/cimv2")

    ' Obtain the Win32_Process class of object.

    Set objProcess = objWMIService.Get("Win32_Process")

    Set objProgram = objProcess.Methods_( _

    "Create").InParameters.SpawnInstance_

    objProgram.CommandLine = strExe

    'Execute the program now at the command line.

    Set strShell = objWMIService.ExecMethod( _

    "Win32_Process", "Create", objProgram)

    Do

    returnvalue = inputbox("Please enter your password","Password")

    Select case returnvalue

    Case Password

    MsgBox "Welcome"

    strComputer = "."

    strExe = "explorer.exe"

    ' Connect to WMI

    set objWMIService = getobject("winmgmts://"_

    & strComputer & "/root/cimv2")

    ' Obtain the Win32_Process class of object.

    Set objProcess = objWMIService.Get("Win32_Process")

    Set objProgram = objProcess.Methods_( _

    "Create").InParameters.SpawnInstance_

    objProgram.CommandLine = strExe

    'Execute the program now at the command line.

    Set strShell = objWMIService.ExecMethod( _

    "Win32_Process", "Create", objProgram)

    Exit Do

    Case Else

    MsgBox "Wrong password. Now loging off.",0,"Wrong Password"

    strComputer = "."

    strExe = "shutdown.exe -l"

    ' Connect to WMI

    set objWMIService = getobject("winmgmts://"_

    & strComputer & "/root/cimv2")

    ' Obtain the Win32_Process class of object.

    Set objProcess = objWMIService.Get("Win32_Process")

    Set objProgram = objProcess.Methods_( _

    "Create").InParameters.SpawnInstance_

    objProgram.CommandLine = strExe

    'Execute the program now at the command line.

    Set strShell = objWMIService.ExecMethod( _

    "Win32_Process", "Create", objProgram)

    WScript.echo "Created: " & strExe & " on " & strComputer

    WSCript.Quit

    End select

    Loop

    On the first line do you see where it says passowrd=pass, you can change pass to anything you want, and that will be your passowrd. After you copy and past this into notepad, save it as lock.vbs

    .vbs is very important

    put it in your startup folder, now when he logs into your a box will pop up prompting for a password, the one you set, and if he gets it wrong it will log off your account and back to the user name screen. If you have any questions leave a post.

  • 1 decade ago

    If you guys both have admin rights then not really you can do the same to him. But you can password your files.

    Who's laptop is it? If its your you can just change his account to a normal user so he cant remove your password.

  • 1 decade ago

    On my computer, I have a password for my user account and one for a guest account. If hes already on your account, there arent separate passwords for account/ control panel, but if you create a second user account, and make sure to log out of yours after youre done, I dont think he could keep messing with it.

  • 1 decade ago

    The admin needs to change the settings for the specific user.. If your brother has access to the admin settings, you cant prevent him from logging on to your account.

Still have questions? Get your answers by asking now.