When attempting to authenticate using a Microsoft Entra email address, the following error is presented.
IMPORTANT The Correlation Id does not exist in the tenant for the given User principal name because the request was NOT made to the tenant.
#region Get-CMInstallPath | |
function Get-CMInstallPath { | |
function Split-CommandLine { | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Mandatory = $false, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Position = 0)] | |
[ValidateNotNullOrEmpty()] | |
[string]$CommandLine | |
) |
function Invoke-ExtractIcon { | |
[CmdletBinding(SupportsShouldProcess)] | |
Param( | |
[Parameter(Position = 0, Mandatory,HelpMessage = "Specify the path to the file.")] | |
[ValidateScript({Test-Path $_})] | |
[string]$Path, | |
[Parameter(HelpMessage = "Specify the folder to save the file.")] | |
[ValidateScript({Test-Path $_})] | |
[string]$Destination = ".", |
function Get-FileEncoding { | |
<# | |
.SYNOPSIS | |
To get the file encoding of a file | |
.DESCRIPTION | |
To get the file encoding of a file | |
.PARAMETER Path | |
The file that you want to check its encoding. | |
.EXAMPLE | |
Get-FileEncoding -Path .\UTF16-BigEndian.txt |
Set-Location -Path "$(Get-PSDrive -PSProvider 'CMSite'):" | |
$CMSoftwareUpdateAutoDeploymentRules = Get-CMSoftwareUpdateAutoDeploymentRule -Fast | |
$CMSoftwareUpdateAutoDeploymentRuleDeployments = Get-CMSoftwareUpdateAutoDeploymentRuleDeployment | |
$CMSoftwareUpdateAutoDeploymentRuleDeployments | ForEach-Object { | |
$CMSoftwareUpdateAutoDeploymentRuleDeployment = $_ | |
$CMSoftwareUpdateAutoDeploymentRule = $CMSoftwareUpdateAutoDeploymentRules | Where-Object AutoDeploymentID -eq $CMSoftwareUpdateAutoDeploymentRuleDeployment.RuleID | |
<# | |
.Synopsis | |
Repairs the "The package data in WMI is not consistent to PkgLib" errors after ConfigMgr2012R2 upgrade | |
.DESCRIPTION | |
This script repairs the "The package data in WMI is not consistent to PkgLib" errors after ConfigMgr2012R2 upgrade by | |
searching for packages that appear to be in de Content Library according to WMI but are not there and do not exist anymore | |
This cleanup will run against all distribution points and when invalid WMI instances are found, they will be removed. | |
Detailed description of this issue: http://blogs.technet.com/b/configmgrteam/archive/2012/05/07/troubleshooting-content-mismatch-warnings-on-a-distribution-point-in-system-center-2012-configuration-manager.aspx?wa=wsignin1.0 | |
Script is to be used at own risk | |
.EXAMPLE |
function Get-Owner { | |
[CmdletBinding()] | |
PARAM( | |
[Parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] | |
[ValidateScript({ | |
$Item = $_ | Get-Item | |
(Test-Path -Path $Item) -eq $true -and $Item.GetType().FullName -in @('System.IO.FileInfo', 'System.IO.DirectoryInfo') | |
})] | |
$Path | |
) |
index=uscc_is_workstation_windows SourceName="Microsoft-Windows-DistributedCOM" EventCode=10028 | |
| rex field=Message "computer (?<HostName>.*) using" | |
| rex field=Message "PID.*\((?<ProcessPath>.*)\)" | |
| rex field=Message "CLSID.*\{(?<CLSID>.*)\}" | |
| eval Component=case( | |
CLSID = "8BC3F05E-D86B-11D0-A075-00C04FB68820", "Windows Management and Instrumentation", | |
CLSID = "3C3A70A7-A468-49B9-8ADA-28E11FCCAD5D", "RAServer", | |
1 = 1, CLSID | |
) | |
```| regex Message="ab950015400007U|a01d753600000DQ|a0307881900001M"``` |
# Download and Install latest Production ring OneDriveSetup.exe installer for Windows | |
function Get-DownloadFileName { | |
[CmdletBinding()] | |
param( | |
[Uri] | |
$Uri | |
) | |
$Response = $null | |
# $ErrorActionPreference = 'SilentlyContinue' | |
if (!$Response) { |
function Get-SplunkDownload { | |
[CmdletBinding()] | |
param( | |
[string[]]$Product | |
, | |
[string[]]$XProduct | |
, | |
[string[]]$Architecture | |
, | |
[string[]]$XArchitecture |