摘要:
XP HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1\1406 Vista+ HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settin 阅读全文
posted @ 2016-10-09 15:47
特洛伊-Micro
阅读(3343)
评论(0)
推荐(0)
摘要:
脚本的调试向来是一个艰巨的任务,在powershell出现以前简直是一场灾难。在powershell中微软终于做出了诸多改进,不但有了$Error、-whatif,也有了ISE.而在语法上也增加了try-catch-finally,终于可以便利的进行调试和错误处理了。在该语法中,finally并不是 阅读全文
posted @ 2016-10-09 12:14
特洛伊-Micro
阅读(8984)
评论(0)
推荐(0)
摘要:
Powershell将信息存储在对象中,每个对象都会有一个具体的类型,简单的文本会以System.String类型存储,日期会以System.DateTime类型存储。任何.NET对象都可以通过GetType()方法返回它的类型,该类型中有一个FullName属性,可以查看类型的完整名称。 每一个类 阅读全文
posted @ 2016-10-09 12:13
特洛伊-Micro
阅读(431)
评论(0)
推荐(0)
摘要:
你们知道 “break”, “continue”, “return” 和 “exit”的作用吗? 它们是功能强大的语言结构体。下面通过一个测试函数来说明它们之间的不同。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 阅读全文
posted @ 2016-10-09 12:11
特洛伊-Micro
阅读(259)
评论(0)
推荐(0)
摘要:
There are several ways: Write-Host: Write directly to the console, not included in function/cmdlet output. Allows foreground and background colour to 阅读全文
posted @ 2016-10-09 12:11
特洛伊-Micro
阅读(2023)
评论(0)
推荐(0)
摘要:
http://techibee.com/powershell/check-if-a-string-is-null-or-empty-using-powershell/1889 Check if a string is NULL or EMPTY using PowerShellby TECHIBEE 阅读全文
posted @ 2016-10-09 12:11
特洛伊-Micro
阅读(725)
评论(0)
推荐(0)
浙公网安备 33010602011771号