0) { [xml[]]$xmlevents = $events | % { $_.ToXml() } [PSCustomObject eventData = $xmlevent.Event.EventData.Data $row = [PSCustomObject
[PsCustomObject]$evt } $Header= " ======= This is the list of ALL events of Applocker.= [PsCustomObject]$evt } $header = " ======= This is the list of BLOCKED events of Applocker [PsCustomObject]$evt } $header = " ======= This is the list of ALLOWED events of Applocker [PsCustomObject]$evt } $header = " ======= This is the list of Audited events of Applocker
Get-ChildItem -Path $_.FullName -Recurse -File | Measure-Object -Property Length -Sum).Sum / 1MB [PSCustomObject Get-ChildItem -Path $_.FullName -Recurse -File -Force | Measure-Object -Property Length -Sum).Sum / 1MB [PSCustomObject Recurse -File -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1MB [PSCustomObject Recurse -File -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1MB [PSCustomObject
Find-AllPersistence -PersistenceMethod RunAndRunOnce (向右滑动、查看更多) PersistenceSniper的Find-AllPersistence会返回一个包含了PSCustomObject 对象的数组,其中包含下列属性: $PersistenceObject = [PSCustomObject]@{ 'ComputerName' = $ComputerName '
| ForEach-Object { $Service = Get-WmiObject -Class Win32_Service -Filter "Name='$($_.Name)'" [PSCustomObject
$User = (Get-WmiObject -Class Win32_Process -Filter "ProcessId = $ProcessId").GetOwner().User [PSCustomObject
volume的总字节数和起止扇区 Get-Disk | Get-Partition | ForEach-Object { $Volume = Get-Volume -Partition $_ [PSCustomObject
rule.ObjectType -eq $dMSA_ObjectGuid) { # 记录具有权限的身份和OU $result = [PSCustomObject
-File -Recurse -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1GB [PSCustomObject
PSChildName $indexValue = (Get-ItemProperty -Path $_.PSPath).Index if ($indexValue -eq 0) { [PSCustomObject Get-ItemProperty -Path $actionPath).Actions } else { $taskActions = "无记录" } [PSCustomObject { $taskInfo += [PSCustomObject]@{ "TaskName" = $taskName "RegistryPath
Measure-Object -Property Length -Sum -ErrorAction SilentlyContinue).Sum if ($null -eq $s) { $s = 0 } [PSCustomObject System.IO.FileInfo] } | Measure-Object -Property Length -Sum).Sum if ($null -eq $s) { $s = 0 } [PSCustomObject
<Obj S="progress" RefId="0"> <TN RefId="0"> <T>System.Management.Automation.PSCustomObject
[Bool] $ContentFiltered = $BinaryReader.ReadInt32() $BinaryReader.Close() [PSCustomObject _.Properties[8].Value).Replace('-', '') $ContentFiltered = $_.Properties[9].Value [PSCustomObject
service 2>&1 if ($queryOutput -like "*拒绝访问*") { $configOutput = sc.exe qc $service [PSCustomObject
一款【免费】的动图工具screentogif了解一下 Powershell:使用PSCustomObject,序列化执行结果 PowerShell: 为啥大神们的PowerShell窗口还有智能提示?
ForEach-Object{$size=(Get-ChildItem$_.FullName-Recurse-Force|Measure-Object-PropertyLength-Sum).Sum[PSCustomObject
csproj.Project.ItemGroup.PackageReference | Where-Object { $_.Version } | ForEach-Object { [PSCustomObject
$CustomObject = [pscustomobject]@{ Name = 'w32time' } # CustomObject 变量的内容是 PSCustomObject 对象类型,并且它包含名为
$object = [pscustomobject]@{Name="CustomObject";Expand=@(1,2,3,4,5)} # Use the ExpandProperty parameter
service 2>&1 if ($queryOutput -like "*拒绝访问*") { $configOutput = sc.exe qc $service [PSCustomObject