Public/Graph/Get-KriticalUtcmGraphShimAllPages.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Get-M365DSCGraphShimAllPages (category: Graph, module: M365DSCGraphShim). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Graph Module: M365DSCGraphShim Params: 3 #> function Get-KriticalUtcmGraphShimAllPages { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $Uri, [IDictionary] $Headers, [Int32] $Top ) if (-not (Get-Command -Name 'Get-M365DSCGraphShimAllPages' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Get-M365DSCGraphShimAllPages not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-M365DSCGraphShimAllPages' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Get-KriticalUtcmGraphShimAllPages] ' + 'Get-M365DSCGraphShimAllPages' + ' failed: ' + $_.Exception.Message) throw } } |