3.dos命令和powershell命令

dir    get-childitem  ls
cp     copy-item

replace #替换文件
runas /user:administrator powershell  #用管理员执行命令

net use #查看、控制、和中断网络磁盘共享

netsh   #网络管理工具,类似linux的 nmcli

netsh share  # 查看共享
netsh share  f=F:/
netsh share f /del



start www.baidu.com  #可以打开盘符、文件、文件夹、网站、程序
start dhcp
start desktop
start a.txt


apedit #组策略配置
netsh firewall #防火强的简单配置


tasklist
taskkill

rm -Force #等于rm -rf

get-content -wait -tail 3     # 等于linux tail -f,查看三条记录

gpupdate # 组策略编辑
gpupdate /force #组策略强制更新

posted @ 2021-09-28 12:57  mk-备忘  阅读(163)  评论(0)    收藏  举报