Setx var -f ipconfig.out -x 这个命令会显示这个文件的内容的坐标。如:
C:\>SETX VAR -f ipconfig.out -x
(1,0 Windows) (1,1 2000) (1,2 IP) (1,3 Configuration)
(3,0 Ethernet) (3,1 adapter) (3,2 Local) (3,3 Area) (3,4 Connection:)
(5,0 Connection-specific) (5,1 DNS) (5,2 Suffix) (5,3 .) (5,4 (6,0 IP) (6,1 Address.) (6,2 .) (6,3 .) (6,4 .) (6,5 .) (6,6 .) (6,7 .) (6,8 .) (6,9 .) (6,10 .) (6,11 .) (6,12 .) (6,13 (6,14 192.168.1.1) (7,0 Subnet) (7,1 Mask) (7,2 .) (7,3 .) (7,4 .) (7,5 .) (7,6 .) (7,7 .) (7,8 .) (7,9 .) (7,10 .) (7,11 .) (7,12 .) (7,13 (7,14 255.255.255.0) (8,0 Default) (8,1 Gateway) (8,2 .) (8,3 .) (8,4 .) (8,5 .) (8,6 .) (8,7 .) (8,8 .) (8,9 .) (8,10 .) (8,11
setx ipaddr -f ipconfig.out -a 5,11
这个命令会寻找绝对偏移为(5,11)的内容,然后设置ipaddr为这个值。如:
C:\>setx ipaddr -f ipconfig.out -a 6,14 Extracted value is: 192.168.1.1
Setx ipgateway -f ipconfig.out -r 0,11 "Gateway" 查找Gateway这个字符串偏移0,11的东东,然后写到ipgateway里面去。
C:\>Setx ipgateway -f ipconfig.out -r 0,11 "Gateway" Extracted value is: 192.168.1.244
以上所有的修改都会在重起以后看到,可以用set或者是控制面板中的System properties看。
28. showpriv.exe (show Privilege)
一个用来显示用户或者是组分配的特权的命令行工具,如果要看domain的相关的东西的话,要在DC上使用。使用起来很简单,showpriv privilege就行了,如:
C:\>showpriv sesecurityprivilege 1 account(s) with the sesecurityprivilege user right: BUILTIN\Administrators All accounts enumerated
上一篇:构建一个工作机
下一篇:IIS的AdminScripts下工具使用全解
|