Get-TypeData 参考 模块: Microsoft.PowerShell.Utility 获取当前会话中的扩展类型数据。 语法 PowerShell Get-TypeData[[-TypeName] <String[]>] [<CommonParameters>] 说明 Get-TypeDatacmdlet 获取当前会话中的扩展类型数据。 这包括通过使用Update-TypeDatacmdlet 的参数添加的Types.ps1xml文件和动态类型数据添加到...
TypeName: System.IO.FileInfo Name MemberType Definition --- --- --- Attributes Property System.IO.FileAttributes Attributes {get;set;} CreationTime Property datetime CreationTime {get;set;} CreationTimeUtc Property datetime CreationTimeUtc {get;set;} IsReadOnly Property bool IsReadOnly {get;set...
Get-ControlPanelItem Rename-Computer Show-ControlPanelItem Microsoft.PowerShell.Utility ConvertFrom-Json ConvertTo-Json Get-TypeData Invoke-RestMethod Invoke-WebRequest Remove-TypeData Show-Command Unblock-File PSScheduledJob Add-JobTrigger Disable-JobTrigger ...
Get-ChildItem$PSHOME\pwsh.exe |Select-ObjectAge Output 142 Types.ps1xml 文件中的 XML 有关完整的架构定义,请参阅 GitHub 上的 PowerShell 源代码存储库中的Types.xsd。 <Types>标记将文件中定义的所有类型括起来。 应只有一个<Types>标记。 文件中提到的每个 .NET 类型都应由<T...
Get-NetConnectionProfile | Select-Object Name, DNSAddresses 这个命令显示每个网络连接的 DNS 服务器地址。 显示所有有线网络连接的详细信息 powershellCopy Code Get-NetConnectionProfile | Where-Object {$_.IsWired -eq $True} 这个命令过滤出所有有线连接,并显示它们的相关信息。Get-NetConnectionProfile 提供...
type xxx.ps1|PowerShell.exe-noprofile- powershell的Get-Content命令从磁盘读取你的脚本并输入到标准的PowerShell中。 0x04 使用Invoke-Command或Invoke-Expression命令 Invoke-Command 通过交互式PowerShell控制台执行。 此外,这个命令还有一个比较夸张的功能:可以抓取远程主机的策略并应用到当前主机。
Get-Date [[-Date] <DateTime>] [-Year <Int32>] [-Month <Int32>] [-Day <Int32>] [-Hour <Int32>] [-Minute <Int32>] [-Second <Int32>] [-Millisecond <Int32>] [-DisplayHint <DisplayHintType>] [-Format <String>] [-AsUTC] [<CommonParameters>]Power...
BiosFirmwareType BIOS 固件类型 BIOS 的固件类型(如传统 BIOS、UEFI 等)。 BiosIdentificationCode BIOS 标识代码 用于唯一标识 BIOS 的代码。 BiosInstallableLanguages BIOS 可安装的语言 BIOS 支持的可安装语言列表。 BiosInstallDate BIOS 安装日期 BIOS 固件安装的日期。 BiosLanguageEdition BIOS 语言版本 BIOS 支持...
Get-Module-ListAvailable-All|Format-Table-PropertyName, ModuleType, Path-GroupByName Name: AppLocker Name ModuleType Path --- --- --- AppLocker Manifest C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AppLocker\AppLocker.psd1 Name: Appx Name ModuleType Path --- --- --- Appx Manifest...
$pc=New-Object System.DirectoryServices.AccountManagement.PrincipalContext($ct,$ctxDomain,$ctxContainer)return$pc}functionGet-Principal([string]$userName,[string]$userPassword,[string]$ctxDomain,[string]$ctxContainer){Add-Type-AssemblyName System.DirectoryServices.AccountManagement ...