2022-11-29 myluzh
Linux
#######自动转换网卡名称###############
#!/bin/bash
read -p "输入要修改的网卡:" NETWORK_CARD
read -p "输入转换后的网卡名称:" NEW_NETWORK_CARD
cp /etc/sysconfig/network-scripts/ifcfg-$NETWORK_CARD /etc/sysconfig/network-scripts/networkcard.bak
Oldname=NAME\=$NETWORK_CARD
Newname=NAME\=$NEW_NETWORK_CARD
sed -i "s/$Oldname/$Newname/" /etc/sysconfig/network-scripts/ifcfg-$NETWORK_CARD
Oldcard=DEVICE\=$NETWORK_CARD
Newcard=DEVICE\=$NEW_NETWORK_CARD
sed -i "s/$Oldcard/$Newcard/" /etc/sysconfig/network-scripts/ifcfg-$NETWORK_CARD
MAC_ADD...
阅读全文>>
标签: centos linux
评论(0)
(377)
2022-11-1 myluzh
Windows
刷新组策略:pupdate /force
查看组策略结果集:
gpresult /H 123.html
gpresult /r
rsop.msc
查询域用户:net user /domain
查询域管理员用户:net group “domain admins” /domain
查询域名称:net view /domain
查询域内计算机:net view /domain:XX
查询域控制器:net time /domain
查询所有域控制器:dsquery server
重新计算拓扑 repadmin /kcc *
查询同步情况 repadmin /replsummary
强制域控间同步 repadmin /syncall /force
阅读全文>>
标签: 域控
评论(0)
(457)