Skip to content

Instantly share code, notes, and snippets.

Riley Lim rileyz

Block or report user

Report or block rileyz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RunExecutableInLocation.vbs
'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.
View Fix-ConfigMgrClientError0x87d01290-DetectionMethod.ps1
<#
.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
View GatherFixLogs.ps1
$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"}}
View Fix-ConfigMgrClientError0x87d01290.ps1
<#
.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
View UnzipAndExecuteScript.ps1
<#
.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,
View Enable-WindowsFeature.ps1
<#
.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
View Find-Vulnerability.ps1
<#
.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
View AddAndPublish-AppvClientPackageToSID.ps1
<#
.SYNOPSIS
Script to assist with deploying App-V packages to users, for user publishing based testing.
.DESCRIPTION
Intended Use
This script was produced to assist in publishing packages to users, removing the arduous task
of discovering the taget users SID.
View Manage-Shortcut.ps1
<#
.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.
View Manage-Drivers.ps1
<#
.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.
You can’t perform that action at this time.