Window常用服务|命令(持续更新中)

/ default / 0 条评论 / 3353浏览

Cmd命令

远程桌面 mstsc

任务管理器 taskmgr

注册表 regedit

服务管理 services.msc

画板 mspaint

计算器 calc

查看本机IP ipconfig

打开系统设置 msconfig 系统引导设置、服务管理、启动项管理

查看进程列表 netstat -a -o

根据PID查找进程 tasklist|findstr ${pid }

杀掉指定PID进程 taskkill/pid ${pid }

设置窗口标题 title “自定义标题”

Powershell命令

设置标题 $host.ui.RawUI.WindowTitle="自定义标题"

有点麻烦,每次都记不住,我们使用alias来重新用title替代

test-path $profile 如果上面的命令返回false则执行后面这条命令,否则跳过 New-Item -path $profile -type file -force

code $profile 在打开的profile文件里面保存如下代码

function Set-WindowTitle {
    $host.UI.RawUI.WindowTitle = [string]::Join(" ", $args)
}
Set-Alias -name "title" -value Set-WindowTitle

退出powershell 重新启动 title命令生效了 title "自定义标题"