A Simple Script to set a Windows password based on an sql query - repost
$10-30 USD
Selesai
Dibuat sekitar 10 tahun yang lalu
$10-30 USD
Dibayar ketika dikirim
Dear Freelancer,
I need someone who can write me a simple code, running in windows compatible (C# would preferable as it left a small footprint).
1. The script would grab an IP of its local computer
2. Send sql synthax to outside mysql database to: match the IP with another TEXT variable.
3. Set the username (administrator) login with the retrieved TEXT.
SET adminpwd=%retrievedtext%
net user Administrator %adminpwd%
4. Once the script is done, then it will disabled itself (only running once for a lifetime -self destruction)
Note:
1. The script/code should be run in a non-user logged in environment as a servce, so whether a user is login or not, it can be loaded into windows at boot.
2. Self-destruction should be run in a debug (testing) mode (to test)
3. Give some alternatives, if a database is not found, it will set a password instead.
Thanks,
Harry