was Posted April 29, 2009 Posted April 29, 2009 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!
will88 Posted April 29, 2009 Posted April 29, 2009 hii 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 ? Password-Keeper
mdwerne Posted April 29, 2009 Posted April 29, 2009 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
was Posted April 29, 2009 Author Posted April 29, 2009 thx, was looking for something like that, didnt know there is @ComputerName ;P
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now