2012年2月21日 星期二

PowerShell 教學文件

常用指令說明:

管線 (|)
http://ithelp.ithome.com.tw/question/10027801

out-string:將pipeline傳過來的所有物件轉乘一個字串
http://ayowu.pixnet.net/blog/post/4747696

使用物件:$var.abc
http://ayowu.pixnet.net/blog/post/4747720

-replace:替換字串
http://www.microsoft.com/taiwan/technet/columns/profwin/69-Winpowerwshell7.mspx

-split:轉換時間格式的好幫手
http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/24/use-powershell-to-convert-date-formats-easily.aspx

DB NULL表示法:[DBNull]::Value

delay功能:Start-Sleep -Second 5 (任意秒數,這邊為5秒)
http://powergui.org/thread.jspa?threadID=10285

out-功能說明:
http://www.mossfly.com/powershell%E5%AF%BC%E5%87%BA%E7%AE%A1%E9%81%93%E7%BB%93%E6%9E%9C.html#more-1307

沒有留言:

張貼留言