Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
Manages a shortcut in the desired location for App-V using the appvve hook.
.DESCRIPTION
Intended Use
Creates or removes a shortcut on the target system with the desired target,
working directory and swicthes.
<#
.SYNOPSIS
Scans for vulnerabilities via a predefined TXT/CSV, extracts MSI's and App-V if necessary.
.DESCRIPTION
Code Snippet Credits
* #https://stackoverflow.com/questions/35789888/powershell-exclude-folders-in-get-childitem
 
Version History
$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
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
'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
Reusable script for staging many device driver packages to the Drivers Store.
.DESCRIPTION
Intended Use
This script was produced to stage device drivers for an App-V package. Because device drivers
or drivers in general can't be virtualised, a method is required to stage the drivers to the
operating system, what we call in App-V colloquial terms, outside of the bubble.
<#
.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
Menu driven options to assist with testing Windows Installer packages and writing the
read me text file.
.DESCRIPTION
Intended Use
This script is intended to be used as a quick method to test Windows Installer packagers
with the added option of creating the read me text file. The use of the script aids in
testing by removing the need to type the commands to install and uninstall repeatedly.
<#
.SYNOPSIS
Enables Windows 10 Features based on a CSV, with the option to undo/remove.
.DESCRIPTION
The CSV file should contain a header, then each feature name that needs to be enabled on a new line.
Update the housekeeping section with required information.
Example CSV contents below.
Features
<#
.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 >