Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
Script to assist with querying a Active Directory group which contains Foreign Security
Principals.
.DESCRIPTION
Intended Use
This script was produced to assist with querying a Active Directory group which contains a
<#
.SYNOPSIS
Script to assist with managing Office Add-ins via the OPENx Values in the HKCU registry.
.DESCRIPTION
Intended Use
This script was produced to assist in adding or removing Office Add-ins. In the Office
application, the settings dialog can be found in File > Options > Add-ins >
<#
.SYNOPSIS
To import registry (.reg) file using pure PowerShell.
.DESCRIPTION
Intended Use
This script was produced to assist with importing registry (.reg) files where the registry
handlers, such as reg.exe or regedit.exe, are blocked from executing.
<#
.SYNOPSIS
Script to assist with Cyber Essentials Plus compliance in relation to vulnerable CVE
executables.
.DESCRIPTION
Intended Use
This script was produced to automate replacing CVE executables via a MECM Configuration Item,
<#
.SYNOPSIS
Script to assist with auditing members of a Local Security Group through SCCM.
.DESCRIPTION
Intended Use
This script intended to be used in conjunction with SCCM Configuration Baselines. Providing
SCCM access to this information through Hardware Inventory, with the end outcome of the data
'SYNOPSIS
'Script to execute a application without showing a black (Command Prompt) or blue (PowerShell)
'dialog box. Written to handle spaces within the the path and executable name.
'LINK
'Author:.......https://www.linkedin.com/in/rileylim
'Source Code:..https://gist.github.com/rileyz/9cef8a17700a9933c47983630601415e
'# Setting up housekeeping for variables ###########################################################
'Set the executable name below.
<#
.SYNOPSIS
SCCM script detection method to be used in conjunction with
Fix-ConfigMgrClientError0x87d01290.ps1 script.
.DESCRIPTION
Intended Use
To resolve an issue with Enforcement Error 0x87d01290 on App-V clients, where software is
$verbosePreference = 'Continue'
$Computers = Import-Csv C:\LocalWhereEver\List_0x87d01290.txt
$GatherLogsHere = "C:\LocalWhereEver\0x87d01290_RemoteLogs"
Foreach ($Computer in $Computers)
{Write-Verbose "Working on $($Computer.Computers)"
If (((Test-NetConnection -ComputerName $Computer.Computers -Port 3389).TcpTestSucceeded))
{Write-Verbose ' Computer is awake.'
If (Test-Path \\$($Computer.Computers)\C$\Windows\Temp\Fix-ConfigMgrClientError0x87d01290.log)
{Copy-Item -Path "\\$($Computer.Computers)\C$\Windows\Temp\Fix-ConfigMgrClientError0x87d01290.log" -Destination "$GatherLogsHere\$($Computer.Computers)_Fix-ConfigMgrClientError0x87d01290.log"}}
<#
.SYNOPSIS
Script to resolve Configuration Manager Client (Enforcement) Error 0x87d01290 when processing
App-V packages.
.DESCRIPTION
Intended Use
To resolve an issue with Enforcement Error 0x87d01290 on App-V clients, where software is
<#
.SYNOPSIS
Reusable script to stage/unzip large deployment packages, then launch the
script to trigger the silent install.
.DESCRIPTION
Intended Use
This script was produced to stage a large deployment package with many files,