powershell命令大全
?Cmdlet返回指定的路徑部分。
Test-Path Cmdlet確定路徑的所有元素是否存在。
Get-Process Cmdlet獲取在本地計算機上運行的進程。
Stop-Process Cmdlet停止一個或多個正在運行的進程。
Remove-ItemPropertyCmdlet從注冊表項中刪除屬性及其值。
Rename-ItemPropertyCmdlet重命名項的屬性。
Resolve-Path Cmdlet解析路徑中的通配符并顯示路徑內容。
Get-Service Cmdlet獲取本地計算機上的服務。
Stop-Service Cmdlet停止一個或多個正在運行的服務。
Start-Service Cmdlet啟動一個或多個已停止的服務。
Suspend-Service Cmdlet掛起(暫停)一個或多個正在運行的服務。
Resume-Service Cmdlet恢復一項或多項掛起(暫停的)服務。
Restart-Service Cmdlet停止并接著啟動一個或更多服務。
Set-Service Cmdlet更改服務的顯示名稱、說明或啟動模式。
New-Service Cmdlet在注冊表和服務數據庫中為 Windows 服務創建新項。
Set-Content Cmdlet在項中寫入內容或用新內容替換其中的內容。
Set-ItemPropertyCmdlet設置位于指定位置的屬性的值。
Get-AclCmdlet獲取資源(例如文件或注冊表項)的安全描述符。
Set-AclCmdlet更改指定資源(例如文件或注冊表項)的安全描述符。
Get-PfxCertificateCmdlet獲取計算機上 .pfx證書文件的相關信息。
Get-Credential Cmdlet獲取基于用戶名和密碼的憑據對象。
Get-ExecutionPolicyCmdlet獲取外殼程序的當前執行策略。
Set-ExecutionPolicyCmdlet更改外殼程序執行策略的用戶首選項。
Get-AuthenticodeSignatureCmdlet獲取文件中有關 Authenticode 簽名的信息。
Set-AuthenticodeSignatureCmdlet使用 Authenticode 簽名對 Windows PowerShell 腳本或其他文件進
行簽名。
ConvertFrom-SecureStringCmdlet將安全字符串轉換為加密的標準字符串。
ConvertTo-SecureStringCmdlet將加密的標準字符串轉換為安全字符串。它還可以將純文本轉換為安
全字符串。此命令與ConvertFrom-Secu...
Format-List Cmdlet將輸出的格式設置為屬性列表,其中每個屬性均各占一行顯示。
Format-Custom Cmdlet使用自定義視圖來設置輸出的格式。
Format-Table Cmdlet將輸出的格式設置為表。
Format-Wide Cmdlet將對象的格式設置為只能顯示每個對象的一個屬性的寬表。
Out-Null Cmdlet刪除輸出,不將其發送到控制臺。
Out-Default Cmdlet將輸出發送到默認的格式化程序和默認的輸出cmdlet。此cmdlet
對格式化或輸出無效。它是占位符,用于編..
Out-Host Cmdlet將輸出發送到命令行。
Out-File Cmdlet將輸出發送到文件。
Out-Printer Cmdlet將輸出發送到打印機。
Out-String Cmdlet將對象作為一列字符串發送到主機。
Add-Member Cmdlet向 Windows PowerShell 對象的實例中添加用戶定義的自定義成員。
Compare-Object Cmdlet比較兩組對象。
ConvertTo-Html Cmdlet創建顯示一個或一組對象的 HTML 頁。
Export-CsvCmdlet創建逗號分隔值 (CSV) 文件來顯示輸入對象。
Import-CsvCmdlet導入使用 Export-CSV cmdlet產生的格式的逗號分隔值 (CSV) 文件
,并返回對應于該 CSV ...
Export-Alias Cmdlet將當前定義的別名的相關信息導出到文件中。
Invoke-Expression Cmdlet運行以字符串形式提供的 Windows PowerShell 表達式。
Get-Alias Cmdlet獲取當前會話的別名。
Get-Culture Cmdlet獲取計算機上區域設置的信息。
Get-Date Cmdlet獲取當前日期和時間。
Get-Host Cmdlet獲取對當前控制臺主機對象的引用。默認情況下,顯示 Windows Pow
ershell的版本和區域信息。
Get-Member Cmdlet獲取有關對象或對象集合的信息。
Get-UICultureCmdlet獲取有關 Windows PowerShell 的當前用戶界面區域性的信息。
Get-Unique Cmdlet從排序列表返回唯一項目。
Import-Alias Cmdlet從文件導入別名列表。
Select-String Cmdlet識別字符串中的模式。
Measure-Object Cmdlet度量對象的特征及其屬性。
New-Alias Cmdlet創建新別名。
New-TimeSpanCmdlet創建TimeSpan對象。
Read-Host Cmdlet從控制臺讀取一行輸入。
powershell命令大全(2)2009年08月04日星期二下午 11:32Set-Alias Cmdlet在當前 Windows PowerShell 會話中為cmdlet或其他命令元素創建
或更改別名(替代名稱)。
Set-Date Cmdlet將計算機上的系統時間更改為指定的時間。
Start-Sleep Cmdlet在指定的時間段內掛起外殼程序、腳本或運行空間活動。
Tee-Object Cmdlet通過管道將對象輸入傳遞給文件或變量,然后通過管道傳遞輸入。
Measure-Command Cmdlet度量運行腳本塊和cmdlet所用的時間。
Update-TypeDataCmdlet通過將 *.types.ps1xml 文件重新加載到內存中來更新當前的擴展類
型配置。
Update-FormatDataCmdlet更新并追加格式數據文件。
Write-Host Cmdlet使用主機用戶界面來顯示對象
Write-Progress Cmdlet在 Windows PowerShell 命令窗口內顯示進度欄。
New-Object Cmdlet創建 .Net 或 COM 對象的實例。
Select-Object Cmdlet選擇一個對象或一組對象的指定屬性。它還可以從對象的數組中選擇
唯一對象,也可以從對象數組的開頭或末尾選擇指定個數的對象。
Group-Object Cmdlet指定的屬性包含相同值的組對象。
Sort-Object Cmdlet按屬性值對對象進行排序。
Get-Variable Cmdlet獲取當前控制臺中的變量。
New-Variable Cmdlet創建新變量
Set-Variable Cmdlet設置變量的值。如果不存在具有所請求名稱的變量,則創建該變量。
Remove-Variable Cmdlet刪除變量及其值。
Clear-Variable Cmdlet刪除變量的值。
Export-ClixmlCmdlet創建對象的基于 XML 的表示形式并將其存儲在文件中。
Import-ClixmlCmdlet導入 CLIXML 文件,并在 Windows PowerShell 中創建相應的對象。
Write-Debug Cmdlet將調試消息寫入主機顯示屏。
Write-Verbose Cmdlet將字符串寫入主機的詳細顯示屏。
Write-Warning Cmdlet寫入警告消息。
Write-Error Cmdlet將對象寫入錯誤管道。
Write-Output Cmdlet將對象寫入成功管道。
Get-TraceSourceCmdlet獲取用于跟蹤的 Windows PowerShell 組件。
Set-TraceSourceCmdlet配置、啟動和停止對 Windows PowerShell 組件的跟蹤。
Trace-Command Cmdlet Trace-Command cmdlet配置并啟動對指定表達式或命令的跟蹤。
Alias Provider 提供對 Windows PowerShell 別名以及它們所表示的值的訪問。
Environment Provider 提供對 Windows 環境變量的訪問。
FileSystem Provider 用于從 Windows PowerShell 中訪問文件和目錄的 PowerShell 提供
程序。
Function Provider 提供對 Windows PowerShell 中所定義函數的訪問。
Registry Provider 提供從 Windows PowerShell 中對系統注冊表項和注冊表值的訪問。
Variable Provider 提供對 Windows PowerShell 變量及其值的訪問。
Certificate Provider 提供對 X509 證書存儲區和對 Windows PowerShell 中的證書的訪問
。
default HelpFile顯示有關 PowerShell cmdlet和概念的幫助。
about_wildcardHelpFile在 Windows PowerShell 的Cmdlet參數中使用通配符
about_whileHelpFile用于根據條件測試的結果來運行命令塊的語言語句。
about_whereHelpFile根據對象屬性篩選對象
about_typesHelpFile在 Windows PowerShell 中擴展 .NET 類型系統
about_system_stateHelpFile在外殼程序運行時由 Windows PowerShell 維護的數據
about_switchHelpFile使用 switch 處理多個 if 語句。
about_special_charactersHelpFile特殊字符用于控制 Windows PowerShell 對命令或參數中的下一字符
的解釋方式
about_signingHelpFile描述 Windows PowerShell 執行策略,以及如何使用和更改它們。
about_shell_variableHelpFile由 Windows PowerShell 創建和聲明的變量
about_script_blockHelpFile在 Windows PowerShell 中將多個語句和命令分組為單個代碼塊
about_scopeHelpFile函數或變量在 Windows PowerShell 環境中具有可見性
about_reserved_wordsHelpFile Windows PowerShell 中一些具有特殊含義并因此不能用作標識符的
單詞
about_regular_expressionHelpFile在 Windows PowerShell 的Cmdlet參數中使用正則表達式
about_refHelpFile如何創建和使用引用變量類型
powershell命令大全(3)2009年08月04日星期二下午 11:33about_redirection HelpFile將輸出從 Windows PowerShell 重定向到文本文件
about_quoting_rulesHelpFile設置字符串邊界的規則
about_pssnapinsHelpFile Windows PowerShell 管理單元是 .NET 程序集,其中包含 Windows
PowerShell
about_providerHelpFile Windows PowerShell 提供程序使用戶能夠訪問那些如果沒有這些提
供程序將很
about_propertyHelpFile在 Windows PowerShell 中使用對象屬性
about_pipelineHelpFile在 Windows PowerShell 中將命令合并到管道中
about_path_syntaxHelpFile Windows PowerShell 中的完整和相對的路徑名稱格式
about_parsingHelpFile Windows PowerShell 如何分析命令
about_parameterHelpFile在 Windows PowerShell 中使用Cmdlet參數
about_operatorHelpFileWindows PowerShell 支持的運算符類型
about_objectHelpFile在 Windows PowerShell 中使用對象
about_namespaceHelpFile Windows PowerShell 維護的命名空間
about_methodHelpFile在 Windows PowerShell 中使用方法可以對對象執行操作
about_logical_operatorHelpFile在 Windows PowerShell 中可用于支持測試多個條件的語句的運算符
about_locationHelpFile在 Windows PowerShell 中從工作位置訪問項目
about_line_editingHelpFile在 Windows PowerShell 命令提示符下編輯命令
about_ifHelpFile基于一個或多個條件測試的結果運行一個或幾個命令塊的語言命令
about_historyHelpFile檢索在 Windows PowerShell 命令提示符下輸入的命令
about_globbingHelpFile請參閱“通配符”
about_functionHelpFile在 Windows PowerShell 中創建和使用函數
about_foreachHelpFile用于遍歷項集合中所有項的語言命令
about_forHelpFile用于根據條件測試運行命令塊的語言命令。
about_flow_controlHelpFile使用 Windows PowerShell 中的流控制語句來控制腳本塊的運行方式
about_filterHelpFile在 Windows PowerShell 中使用 Where-Object Cmdlet篩選數據
about_execution_environmentHelpFile影響命令運行方式的因素
about_escape_characterHelpFile更改 Windows PowerShell 對字符的解釋
about_environment_variableHelpFile如何在 Windows PowerShell 中訪問 Windows 環境變量
about_display.xml HelpFile控制對象的顯示方式
about_core_commandsHelpFile與數據存儲區相關的 Windows PowerShell 核心Cmdlet
about_continueHelpFile立即返回程序循環的頂部
about_comparison_operatorsHelpFile Windows PowerShell 中用于對值進行比較的運算符
about_commonparametersHelpFile每個cmdlet都支持的參數。
about_command_syntaxHelpFile Windows PowerShell 中的命令格式
about_command_searchHelpFile Windows PowerShell 如何查找命令
about_breakHelpFile用于立即退出foreach、for、while、do 或 switch 語句的語句
about_automatic_variablesHelpFile Windows PowerShell 自動設置的變量
about_associative_arrayHelpFile用于存儲鍵與值的集合(其中每個鍵與一個值配對)的緊湊型數據結
構
about_assignment_operatorsHelpFile在 Windows PowerShell 中可以用來為變量賦值的運算符
about_arrayHelpFile用于存儲數據元素的緊湊型數據結構
about_arithmetic_operatorsHelpFile可以在 Windows PowerShell 中用于執行數學運算的運算符
about_aliasHelpFile在 Windows PowerShell 中使用cmdlet和命令的備用名稱
轉載于:https://blog.51cto.com/nickzp/1062868
總結
以上是生活随笔為你收集整理的powershell命令大全的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 天猫不搞双十一“开玩笑”
- 下一篇: Oracle BIEE (Busines