12 2012 档案

摘要:Backtick allows you to word-wrap PowerShell commands 1. # Backtick ` PowerShell word-wrap Get-Service * |Sort-Object ServiceType ` | Format-Table name, status, ` S... 阅读全文
posted @ 2012-12-30 14:01 HelloWorld.Michael 阅读(286) 评论(0) 推荐(0)
摘要:$s = "VMS"; $OFS = ""; [string] [char[]] ([int[]] [char[]] $s | foreach{$_+1}) Output: WNT $OFS (Output Field Separator): When PowerShell converts arrays to strings, it takes each array el... 阅读全文
posted @ 2012-12-30 00:38 HelloWorld.Michael 阅读(158) 评论(0) 推荐(0)
摘要:DICTIONARIES AND HASHTABLES Creating and inspecting hashtables $user = @{ FirstName = "John"; LastName = "Smith"; PhoneNumber = "555-1212" } Enumerating hashtable $h = @{a=1; b=2; c=3} forea... 阅读全文
posted @ 2012-12-28 18:32 HelloWorld.Michael 阅读(158) 评论(0) 推荐(0)