Powershell(1)
2024-08-31 07:12:54
PowerShell
- cmdlets: Verb-Noun的命令形式, Verb一般是set, get, start, stop, invoke, 使用get-verb显示所有的动词
- 通过别名机制, 提供了Windows与Unix的命令
- 可以使用windows原生的命令(mspaint[画图], calc, notepad)
- 在控制台, 右键复制, 右键粘贴
- set-location c: --> cd
- get-childitem --> ls
- clear-host --> clear
- get-alias --> 显示所有别名
- get-alias -Defination set-location --> 显示set-location的别名是什么
- get-alias g* --> 显示别名为g开头的是
- update-help --Force --> 更新帮助系统
- save-help --> 保存help
- man, help, get-help name
* -Detailed
* -Examples
* -Online
* -full
* -ShowWindow - get-verb
- get-service
- -Name
- -DisplayName
- export-csv --> 导出csv文件
- -Path String
- import-csv path --> 将csv文件的内容导入到控制台
- out-file path --> 导入到哪个文件, >
- get-content --> cat
convertTo-html, convertTo-csv --> 也是将管道的信息转为指定的格式, 但是与export-cvs等不同的是, convertTo是输出到屏幕上的
exmaple:
get-service | convertTo-html -property name,status path | out-file repo.html- 在命令之后添加-whatif并不会执行命令但是会显示如果执行了的结果
- -confirm交互
- get-module -listavaiable
- get-module --> 显示当前加载的模块
- select col --> 接受管道, 执行col
在ISE中, ctrl + space只能提示
关于问题检测(通过比较进程报告)
- export-clixml -Path string --> 导出xml
compare-object -ReferenceObject (import-clixml path) -DifferenceObject (get-process) -Property name --> ref指明的一般是一个正常电脑的进程报告
mms
windows是面向API的
最新文章
- 【夯实PHP系列】购物车代码说明PHP的匿名函数
- 谈谈java开发
- WAMP 403 Forbidden禁止访问
- Codeforces 27E. Number With The Given Amount Of Divisors (暴力)
- Release 版本和 Debug 版本
- 给小班讲stl 之 map、sort、优先队列
- Datatable.Compute小技巧
- OpenCV亚像素角点cornerSubPixel()源代码分析
- node express将请求重定向为https
- git 解决每次更新代码都要输入用户名密码的解决方案
- [转]MySQL group_concat设置group_concat_max_len
- Linux集锦
- Qt5 json 数据处理
- 【题解】Friends
- LDAP落地实战(四):Jenkins集成OpenLDAP认证
- presto——java.sql.SQLException: Error executing query与javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?异常问题
- location 将多级目录下的文件转成一个文件
- alexnet,VGG,googlenet,resnet
- 973. K Closest Points to Origin
- Nucleus进程间通信(IPC)方式
热门文章
- WinForm 生命周期, WinForm 事件执行顺序
- UINavigationController + UIScrollView组合,视图尺寸的设置探秘(二)
- Mybatis基于代理Dao实现CRUD操作 及 Mybatis的参数深入
- maven+selenium+java+testng+jenkins自动化测试
- GET/POST/g和钩子函数(hook)
- MongoDB3.2(C#版) CRUD
- List集合分页
- C++使用using namespace std报错分析与解决方案
- clojure with postgres
- [转]Groovy One Liners to Impress Your Friends