2 你可以通过Powershell中的自动化变量$Error和Trap 语句块中的$ […] Powershell 错误记录:详细错误2012年6月23日 在 Powershell 标签 Powershell教程 / 异常 来自 Mooser Lee
3 如果你想对错误处理,并且输出友好的信息。须要两点:第一,抑制内置的错误信息;第二,一个能够发现异常是否发生的机制。 Powershell 识别和处理异常2012年6月22日 在 Powershell 标签 Powershell教程 / 异常 来自 Mooser Lee
Powershell拥有非常强大的容错度。只要你设定好参数,即使某一条,某一行命 […] Powershell 定义容错度2012年6月21日 在 Powershell 标签 Powershell教程 / 异常 来自 Mooser Lee
3 自动化具有高度方便的特点,同时也可能会自动产生一些不可避免的错误。这也就是Pow […] Powershell what-if2012年6月19日 在 Powershell 标签 Powershell教程 / 异常 来自 Mooser Lee
4 脚本很容易被冒名顶替或者更改,因为它们是由纯文本构成的。数字签名为脚本提供了更高 […] Powershell 脚本数字签名2012年6月17日 在 Powershell 标签 Powershell教程 / 签名 来自 Mooser Lee
1 从window Vista之后的版本中whoami已经成为一个单独的exe程序。 […] Powershell整合WhoAmI2012年6月1日 在 Powershell / Powershell小技巧 来自 Mooser Lee
如果你想知道自己属于哪个用户组的成员,下面的脚本可以列出您属于那些用户组。下面的 […] Powershell 查询用户组2012年6月1日 在 Powershell / Powershell小技巧 标签 用户 来自 Mooser Lee
可以通过查询环境变量查询当前用户名: PS> $env:userdomain b […] Powershell 查询用户名Who Am I2012年6月1日 在 Powershell 标签 Powershell 来自 Mooser Lee
8 在Powershell控制台的许多更改只会在当前会话有效。一旦关闭当前控制台,你 […] Powershell自动执行脚本之profile2012年5月31日 在 Powershell 标签 Powershell教程 / 脚本 来自 Mooser Lee
获取本机的系统盘可以通过环境变量SystemDriver直接获取。 具体如下: […] 获取网络上机器的系统盘符2012年5月22日 在 Powershell 标签 Powershell 来自 Mooser Lee
Powershell获取的是当前.Net版本的安装目录。 PS C:> [Run […] Powershell 获取.NET 安装目录2012年5月21日 在 Powershell / Powershell小技巧 来自 Mooser Lee
3 Powershell中默认创建的数组是非对称的,即锯齿数组。使用下面的方法可以创 […] Powershell 对称数组2012年5月21日 在 Powershell 标签 Powershell教程 / 数组 来自 Mooser Lee