In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Recently, the IP addresses of new companies have to be obtained automatically. The current situation is that the IP addresses of 800 computers are manually configured. You need to change each computer to obtain it automatically. The domain user account users does not have the permission to change the network card setting, which needs to be changed manually by IT.
two。 In view of this situation, a batch process is made to call the local administrator authority of the computer to achieve the automatic acquisition of IP address. (it is risky to consider calling domain administrator permissions because the domain control cannot be connected to the domain control after the relocation, and the domain control information cannot be verified. It has not been tested)
3. Lsrunase.exe is used this time, and the software is placed in the same file directory as the batch processing
Batch ipdnslsrunase.bat:
Lsrunase.exe / user:administrator / password:+Vpjm+IL7buJeA= / domain: / command: "D:\ Program Files (x86)\ ip\ ipdns.bat" / runpath:D:
Note: 1. Imagine putting lsrunase.exe in C:\ Windows\ System32, which is called directly by the batch, but the command cannot be copied into it.
2.domain: no parameters are added locally by default.
Batch ipdns.bat:
@ echo off
Netsh interface ip set address name= "Local connection" dhcp
Netsh interface ip set dns name= "Local connection" dhcp
Netsh interface ip set address name= "Local connection 1" dhcp
Netsh interface ip set dns name= "Local connection 1" dhcp
Netsh interface ip set address name= "Local connection 2" dhcp
Netsh interface ip set dns name= "Local connection 2" dhcp
Netsh interface ip set address name= "Local connection 3" dhcp
Netsh interface ip set dns name= "Local connection 3" dhcp
Netsh interface ip set address name= "Local connection 4" dhcp
Netsh interface ip set dns name= "Local connection 4" dhcp
Netsh interface ip set address name= "Local connection 5" dhcp
Netsh interface ip set dns name= "Local connection 5" dhcp
Netsh interface ip set address name= "Local connection 6" dhcp
Netsh interface ip set dns name= "Local connection 6" dhcp
Netsh interface ip set address name= "Local connection 7" dhcp
Netsh interface ip set dns name= "Local connection 7" dhcp
Netsh interface ip set address name= "Local connection 8" dhcp
Netsh interface ip set dns name= "Local connection 8" dhcp
Netsh interface ip set address name= "Local connection 9" dhcp
Netsh interface ip set dns name= "Local connection 9" dhcp
Note: the name of the network card will change, so it is all listed. If the DNS,DNS setting for network connectivity denies access, it is recommended to run it twice more.
4. Use the rar self-decompression method to put it in the corresponding path, and the user can't see that the password is encrypted. Create a shortcut, and you just need to double-click manually after the relocation.
Extension point: 1. Under domain control, you can do this to install the software in a self-decompressing way. two。 You can also place the domain administrator privilege lsrunase.exe in a share that all users can access and operate actions that require permissions.
Reference section https://blog.51cto.com/hbgslz/2058940
With the enhanced version of lsrunase,lsrunas, you can use encrypted passwords. Comes with a small software LSencrypt to generate encrypted strings.
Usage:
Lsrunase / user:administrator / password:41BngA== / domain: / command:notepad.exe / runpath:c:\
All parameters must be complete, of which:
User is the running account
Password is the password encrypted string
Domain is the machine name or domain name, or you can leave it blank to represent the local machine.
Command is the name of the program to be run. If you carry parameters, you need to put quotation marks at the beginning and end of the command.
Runpath is the path where the program starts
Features: can be a perfect alternative to runas, and avoid directly saving the password plaintext in the script.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.