Find-Script [[-Name] <String[]>] [-MinimumVersion <String>] [-MaximumVersion <String>] [-RequiredVersion <String>] [-AllVersions] [-IncludeDependencies] [-Filter <String>] [-Tag <String[]>] [-Includes <String[]>] [-Command <String[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredenti...
Get-Command Get-Date -All CommandType Name Version Source --- --- --- --- Function Get-Date Cmdlet Get-Date 3.1.0.0 Microsoft.PowerShell.Utility Get-Command where -all CommandType Name Version Source --- --- --- --- Alias where -> Where-Object Application where.exe 10.0.22621.1 C:...
还可以使用where-object语句使用 sourceID 或 DisplayName 搜索特定记录。 在ProvisioningLogs属性中,可以找到为该特定记录所做操作的所有详细信息。 PowerShell $user=$logs| where sourceId-eq'1222'$user.ProvisioningLogs | fl 可以在ModifiedProperties属性上看到受用户影响的特定属性。$user.ProvisioningLogs.Modified...
[string]$Location='eastus')$adminCredential=Get-Credentialforeach($vmin$Name) {$azVmParams= @{ ResourceGroupName =$ResourceGroupNameName =$vmCredential =$adminCredentialLocation =$LocationImage ='Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest'OpenPorts =22PublicIpAddressName =...
PS C:\tmp>Get-CultureLCID Name DisplayName --- --- ---1033en-USEnglish (United States) PS C:\tmp >Get-ExecutionPolicyAllSigned PS C:\tmp >Get-WinSystemLocaleLCID Name DisplayName --- --- ---1029cs-CZCzech (Czech Republic) 脚本失败并显示以下消息: Output ...
Fix TypeName.GetReflectionType() to work when the TypeName instance represents a generic type definition within a GenericTypeName (#24985) Remove the old fuzzy suggestion and fix the local script filename suggestion (#25177) Improve variable type inference (#19830) (Thanks @MartinGC94!) Fix pa...
.\Get-ServiceLog.ps1-ServiceNameWinRM 作為安全性功能,當您按兩下 檔案總管中的腳本圖示,或當您輸入文本名稱時,即使腳本位於目前目錄中,也不會執行腳本。 如需在PowerShell中執行命令和腳本的詳細資訊,請參閱about_Command_Precedence。 用PowerShell 執行 ...
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>] [-FilterXml] <XmlDocument> [-Oldest] [<CommonParameters>]说明此cmdlet 仅在 Windows 平台上可用。 Get-WinEvent cmdlet 从事件日志(包括经典日志)获取事件,例如系统和应用程序日志。 该 cmdlet 从 Windows Vista ...
Get-Module[[-Name] <String[]>] [-FullyQualifiedName <ModuleSpecification[]>] [-ListAvailable] [-SkipEditionCheck] [-Refresh]-CimSession<CimSession> [-CimResourceUri <Uri>] [-CimNamespace <String>] [<CommonParameters>] 说明 Get-Modulecmdlet 列出了已导入或可导入到 PowerShell 会话中的 Power...
已新增Get-FileHashCmdlet,此 Cmdlet 會根據所指定檔案,以其中一種檔案格式傳回檔案雜湊。 在Windows PowerShell 4.0 中,如果模組在其資訊清單中使用DefaultCommandPrefix機碼,或如果使用者使用Prefix參數匯入模組,模組的ExportedCommands屬性就會顯示模組中具有該前置詞的命令。 當您使用模組限定語法 ModuleName\CommandNam...