3 一个或多个返回值 Powershell不像它编程语言,它的函数可以有多个返回值。 […] Powershell指定函数的返回值2012年3月28日 在 Powershell 标签 Powershell教程 / 函数 来自 Mooser Lee
3 Powershell函数可以接受参数,并对参数进行处理。函数的参数有3个特性: […] Powershell处理函数的参数2012年3月25日 在 Powershell 标签 Powershell教程 / 函数 / 参数 来自 Mooser Lee
14 通过WMIObject对象的rename方法,重命名计算机。重启计算机生效,也可 […] Powershell 更改计算机名2012年3月22日 在 Powershell 标签 Computer / Get / Powershell / WmiObject 来自 Mooser Lee
3 在Powershell中将十进制转换成十六进制,输出在标准输出(控制台)。 PS […] Powershell十六进制转换2012年3月21日 在 Powershell / Powershell小技巧 标签 转换 来自 Mooser Lee
1 方法1: 通过查找IExplore的进程,直接终止进程。 Get-Process […] Powershell关闭IE窗口2012年3月20日 在 Powershell / Powershell小技巧 标签 窗口 来自 Mooser Lee
2 函数是自定义的Powershell代码,有三个原则: 简短:函数名简短,并且显而 […] Powershell定义函数2012年1月29日 在 Powershell 标签 Powershell教程 / 函数 / 别名 / 导出 来自 Mooser Lee
3 Switch 本是多路分支的关键字,但是在Powershell中由于Switch […] Powershell Switch 循环2012年1月26日 在 Powershell 标签 Powershell教程 / 循环 / 条件 / 集合 来自 Mooser Lee
如果你知道循环的确切次数可以使用For循环,For循环属于计数型循环,一旦达到最 […] Powershell For 循环2012年1月25日 在 Powershell 标签 Powershell教程 / 循环 / 文本 来自 Mooser Lee
Do和While可能产生死循环,为了防止死循环的发生,你必须确切的指定循环终止的 […] Powershell Do While 循环2012年1月24日 在 Powershell 标签 Powershell教程 / 循环 / 条件 来自 Mooser Lee
6 Foreach-object 为cmdlet命令,使用在管道中,对管道结果逐个处 […] Powershell Foreach 循环2012年1月23日 在 Powershell 标签 Powershell教程 / 循环 / 管道 来自 Mooser Lee
2 Powershell管道就像流水线,对于数据的处理是一个环节接着一个环节,如果你 […] Powershell ForEach-Object 循环2012年1月22日 在 Powershell 标签 Powershell / 循环 / 方法 / 管道 来自 Mooser Lee
8 如果语句中有多路分支,使用IF-ELSEIF-ELSE不友好,可以使用Switc […] Powershell Switch 条件2012年1月21日 在 Powershell 标签 Powershell教程 / 分支 / 字符串 / 数字 / 条件 来自 Mooser Lee