Jump to content
Sign in to follow this  
was

password depending on computer

Recommended Posts

was

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!

Share this post


Link to post
Share on other sites
will88

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 ?

Share this post


Link to post
Share on other sites
was

how can i find that out with auto it?

Share this post


Link to post
Share on other sites
mdwerne

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

Share this post


Link to post
Share on other sites
was

thx, was looking for something like that, didnt know there is @ComputerName ;P

Share this post


Link to post
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
Sign in to follow this  

×