Jump to content

password depending on computer


was
 Share

Recommended Posts

hi

i want to add a password to my script, which is diffrent on diffrent pc's. so the script should find out a information from a computer, which is diffrent on other pc's, so i can encrypt that information ---> my script password. but i have no idea what information i should take, which is easy to find for auto it!

thx for help!

Link to comment
Share on other sites

hi

i want to add a password to my script, which is diffrent on diffrent pc's. so the script should find out a information from a computer, which is diffrent on other pc's, so i can encrypt that information ---> my script password. but i have no idea what information i should take, which is easy to find for auto it!

thx for help!

Physical Address under cmd>Ipconfig /all ?

Link to comment
Share on other sites

hi

i want to add a password to my script, which is diffrent on diffrent pc's. so the script should find out a information from a computer, which is diffrent on other pc's, so i can encrypt that information ---> my script password. but i have no idea what information i should take, which is easy to find for auto it!

thx for help!

Another possibility?

If @ComputerName = "Sales" Then
    $Password = "Sales"
ElseIf @ComputerName = "Billing" Then
    $Password = "Billing"
ElseIf @ComputerName = "HR" Then
    $Password = "HR"
ElseIf @ComputerName = "Dev" Then
    $Password = "Dev"
ElseIf @ComputerName = "Prod" Then
    $Password = "Prod"
Else
    $Password = "Testing"
EndIf

$passwd = InputBox("Security Check", "Enter your password.", "", "*")

If $Password = $passwd Then
    MsgBox(0, "Success", "You knew the password!")
Else
    MsgBox(0, "Error", "You don't know the password!")
EndIf
Exit

You can find information on encryption by doing a quick search in the forums.

Hope this helps!

-Mike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...