Skip to content

Instantly share code, notes, and snippets.

Flexera App Portal Web Extension Design Flow

Disclaimer

The information provided in this documentation was neither created by, nor is supported by, Flexera. It is my understanding of how the product works based on objective data.

Preface

This understanding makes the following assumptions:

Client-Side Extension (CSE) List

Target Name Id ProcessGroupPolicy
Computer 802.3 Group Policy {B587E2B1-4D59-4E7E-AED9-22B9DF11D053}
Computer Application Management {C6DC5466-785A-11D2-84D0-00C04FB169F7}
Computer Audit Policy Configuration {F3CCC681-B74C-4060-9F26-CD84525DCA2A}
Computer Certificates Run Restriction {53D6AB1D-2488-11D1-A28C-00C04FB94F17}
Computer Restricted Groups {803E14A0-B4FB-11D0-A0D0-00A0C90F574B}
Computer Core GPO Engine {00000000-0000-0000-0000-000000000000}
@MyITGuy
MyITGuy / administrator_context.ps1
Last active April 8, 2024 18:28
Check if user has Administrator role
function Test-AdministratorContext {
[CmdletBinding()]param()
$CurrentWindowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$CurrentWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($CurrentWindowsIdentity)
$IsAdministratorContext = $CurrentWindowsPrincipal.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)
Write-Verbose "Current Context Is Administrator = $IsAdministratorContext"
return $IsAdministratorContext
}
@MyITGuy
MyITGuy / ProcMonAltitude.psm1
Last active April 2, 2024 18:11
Registry settings to adjust ProcMon driver altitude
#region Set-ProcMonAltitude
function Set-ProcMonAltitude {
[CmdletBinding()]
PARAM(
[Parameter(Mandatory = $false, Position = 0)]
[int32[]]
$Version = @(23, 24)
,
[Parameter(Mandatory = $false, Position = 1)]
[int32[]]

AFFECTED VERSION

     Recast Right Click Tools Console Extension 5.4.2402.1403

BUG DEFINITION

     When the Check for Bugfix Updates checkbox option is checked, and the update check is preformed (occurs once a day), the consumer receives a prompt.

UNEXPECTED USER EXPERIENCE

@MyITGuy
MyITGuy / file01.ps1
Last active March 27, 2024 02:22
PowerShell: Get-MsiProducts / Get Windows Installer Products
function Get-MsiProducts {
function Get-MsiUpgradeCode {
[CmdletBinding()]
param (
[System.Guid]$ProductCode
,
[System.Guid]$UpgradeCode
)
function ConvertFrom-CompressedGuid {
@MyITGuy
MyITGuy / gist:2602b2eb83691217d429
Last active March 22, 2024 13:33
PowerShell: Check if Event Log Source exists
[System.Diagnostics.EventLog]::SourceExists("MyScript")
[System.Diagnostics.EventLog]::LogNameFromSourceName("Source","MachineName")
[System.Diagnostics.Eventing.Reader.EventLogSession]::GlobalSession.GetLogNames() -contains 'Microsoft-Windows-Sysmon/Operational'
function Get-KNOWNFOLDERID {
<#
.SYNOPSIS
Lists KNOWNFOLDERID data.
.DESCRIPTION
Reads the registry and outputs a PSCustomObject and contains the KNOWNFOLDERID data.
.PARAMETER KNOWNFOLDERID
Limits the output to the provided KNOWNFOLDERID.
.OUTPUTS
After upgrading to Configuration Manager 2309 on Windows Server 2022, clicking on a console node that utilizes Microsoft Edge WebView2 causes the console node to present a blank view and subsequently crashes the console with a message stating _Microsoft.ConfigurationManagement has stopped working._
There is a known issue with Microsoft Edge and Microsoft Edge WebView2 whereas the executable will crash and reopen, constantly, causing a WerFault.exe storm to occur.
The workaround for Microsoft Edge is described in the **Known issues in this update** for the [January 9, 2024—KB5034129 (OS Build 20348.2227)](https://support.microsoft.com/en-us/topic/january-9-2024-kb5034129-os-build-20348-2227-6958a36f-efaf-4ef5-a576-c5931072a89a) cumulative update.
@MyITGuy
MyITGuy / arch_wmi_conn_getdwordvalue.vbs
Last active February 16, 2024 22:16
A WMI registry call through VBScript using the StdRegProv class with no architecture specified (GetStringValue)
Const HKEY_LOCAL_MACHINE = &H80000002, HKLM = &H80000002
WScript.Echo GetDWordValue (".", HKEY_LOCAL_MACHINE, "SOFTWARE\Altiris\Client Service", "UserInfoInterval", 32)
WScript.Echo GetDWordValue (".", HKEY_LOCAL_MACHINE, "SOFTWARE\Altiris\Client Service", "UserInfoInterval", 64)
Function GetDWordValue (ByVal Resource, ByVal hDefKey, ByVal SubKeyName, ByVal ValueName, ByVal Architecture)
Const wbemAuthenticationLevelPktPrivacy = 6
Const wbemImpersonationLevelImpersonate = 3
Dim oCtx: Set oCtx = CreateObject("WbemScripting.SWbemNamedValueSet")
oCtx.Add "__ProviderArchitecture", Architecture