Skip to main content

Cache Details

What is Cached?

Cached Caches

Cache NameValue TypeValue DescriptionKey TypeKey DescriptionCache Purpose
AceByGUID[Object]Access Control Entry[String]GUID created in Resolve-Ace during this instance of report executionReduce random disk read operations
AceGuidByID[List[Guid]]List of ACE GUIDs[String]Resolved NTAccount captionReduce random disk read operations
AceGuidByPath[List[Guid]]List of ACE GUIDs[String]Path of the item whose ACL contains the ACEReduce random disk read operations
AclByPath[PSCustomObject]Access Control List[String]Path of the item associated with the ACLReduce random disk read operations
CimCache[PSReference]Nested cache of CIM sessions, instances, and query results.[String]CIM Server NameReduce CIM connections and queries
DirectoryEntryByPath[Object]LDAP or WinNT security principal[String]ADSI pathReduce ADSI queries
DomainBySID[Object]ADSI server[String]Server SIDReduce ADSI and CIM queries
DomainByNetbios[Object]ADSI server[String]Server NetBIOS nameReduce ADSI and CIM queries
DomainByFqdn[Object]ADSI server[String]Server FQDNReduce ADSI and CIM queries
ErrorByItemPath_Enumeration[String]Error during item enumeration[String]Path of the item associated with the errorAggregate data during report instance execution
ErrorByItemPath_AclRetrieval[String]Error during ACL retrieval[String]Path of the item associated with the errorAggregate data during report instance execution
IdByShortName[List[String]]List of resolved NTAccount captions[String]Account name with the domain removed by the -IgnoreDomain parameter.Aggregate data during report instance execution
ParentBySourcePathString[]Array of Network Paths[System.IO.DirectoryInfo]Associated path from the -SourcePath parameterAggregate data during report instance execution
PrincipalByID[PSCustomObject]Accounts[String]Resolved NTAccount captionReduce ADSI and CIM queries
ShortNameByID[String]Account names with their domain removed by the -IgnoreDomain parameter[String]Resolved NTAccount captionAggregate data during report instance execution

Other Cached Values

Cache NameCache DescriptionCache Purpose
CultureGet-CultureReduce calls to Get-Culture
ExcludeAccountFilterContentsAccounts excluded by the -ExcludeAccount parameterAggregate data during report instance execution
ExcludeClassFilterContentsAccounts excluded by the -ExcludeClass parameterAggregate data during report instance execution
IncludeAccountFilterContentsAccounts excluded by the -IncludeAccount parameterAggregate data during report instance execution
InheritanceFlagResolvedString translations indexed by value in the [System.Security.AccessControl.InheritanceFlags] enumThis should become proper i8n later
LogSplat for Write-LogMsgImprove code readability
LogBufferA cache of log messages, each message stored as an OrderedDictionary in a ConcurrentQueueReduce random disk write operations
LogEmptyMapSplat for Write-LogMsgImprove code readability
LogCacheMapSplat for Write-LogMsgImprove code readability
LogAnalysisMapSplat for Write-LogMsgImprove code readability
LogSourcePathMapSplat for Write-LogMsgImprove code readability
LogFormattedMapSplat for Write-LogMsgImprove code readability
LogStopWatchMapSplat for Write-LogMsgImprove code readability
LogCimMapSplat for Write-LogMsgImprove code readability
LogDirEntryMapSplat for Write-LogMsgImprove code readability
LogWellKnownMapSplat for Write-LogMsgImprove code readability
LogTypeSplat for Write-LogMsgShare script parameters with dependencies
ParamStringMapSplat for Write-LogMsgImprove code readability
ProgressParentIdUsed for Write-ProgressShare script execution information with dependencies
ThisFqdn[System.Net.Dns]::GetHostByName((hostname.exe)).HostNameReduce .Net method calls
ThisHostnamehostname.exeReduce calls to external processes
ThreadCountExport-Permission -ThreadCount parameterShare script parameters with dependencies
WellKnownSidByCaptionA cache of known accounts local to an ADSI serverResolve unresolveable accounts as well as reduce queries to ADSI and CIM
WellKnownSidByNameA cache of known accounts local to an ADSI serverResolve unresolveable accounts as well as reduce queries to ADSI and CIM
WellKnownSidBySidA cache of known accounts local to an ADSI serverResolve unresolveable accounts as well as reduce queries to ADSI and CIM
WhoAmIwhoami.exeReduce calls to external processes

CimCache

ToDo: Explain its structure