This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.NOTES | |
Author: Shannon Brooks | |
Date: Dec 1st, 2016 | |
Licence: Creative Commons Attribution-ShareAlike 4.0 International License | |
License URL: http://creativecommons.org/licenses/by-sa/4.0/ | |
.SYNOPSIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; NOTE, this file uses a GUID generated here | |
; https://www.guidgenerator.com/online-guid-generator.aspx | |
; IF you are going to have multiple Nextcloud folders in your tree you | |
; will need to make a new GUID for each folder and find/replace the | |
; value "38d6662b-09f4-4e73-bf61-b0e512ec41e1" with your unique GUID | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\\{38d6662b-09f4-4e73-bf61-b0e512ec41e1}] | |
; Name of the folder, also see last line below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# to install directly from the Gist | |
# curl https://gist.githubusercontent.com/realslacker/6dce254e16003fbec5451689c9ba1e49/raw/ | bash -s -- -i | |
# test getopt | |
getopt --test > /dev/null | |
if [[ $? -ne 4 ]]; then | |
echo "Error: `getopt --test` failed in this environment, please update to a newer 'getopt' package" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Note that I have issues getting the Windows 10 SDK version of signtool to run, | |
REM so I usually install the Windows 7.1 SDK version of signtool. | |
REM | |
REM Download: https://www.microsoft.com/en-us/download/details.aspx?id=8279 | |
REM Install Feature: Windows Native Code Development\Tools | |
REM | |
REM NOTE: If you have problems installing the Windows 7.1 SDK it may be because | |
REM you already have the VC++ 2010 runtime libraries installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Removing Built-in apps from Windows 10 / Windows 8.1 / Windows 8 | |
.DESCRIPTION | |
Removing Built-in apps from Windows 10 / Windows 8.1 / Windows 8 | |
.PARAMETER Path | |
The path to the WIM image file (typically install.wim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Update the Start Menu layout in a WIM file | |
.DESCRIPTION | |
Update the Start Menu layout in a WIM file | |
.PARAMETER Path | |
The path to the WIM image file (typically install.wim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Converts a .REG file into an XML document that is compatible with GPO | |
preferences. | |
.DESCRIPTION | |
Converts a .REG file into an XML document that is compatible with GPO | |
preferences. The registry file can contain updates or deletions. The | |
resulting XML file can be copy and pasted, or drag and dropped onto the | |
GPO preferences registry window to import the file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Helper function to test a TCP port. | |
.DESCRIPTION | |
Helper function to test a TCP port. | |
.PARAMETER Destination | |
DNS name or IP address of the host to test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET ALLARGS= | |
SET CLOSEMODE= | |
REM Verify that elevate is installed | |
IF EXIST C:\Windows\System32\elevate.exe GOTO :SKIPERROR | |
ECHO This script must be run with Administrator rights! | |
PAUSE | |
EXIT 1 | |
:SKIPERROR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( -not (Test-Path "$env:ProgramW6432\McAfee") -and -not(Test-Path "${env:ProgramFiles(x86)}\McAfee") ) { exit 0 } | |
$OriginalDate = Get-Date | |
# Set the date back to allow MFERemoval to run | |
Set-Date -Date '01/01/2018' | |
# Run removal tool | |
Start-Process -FilePath "$PWD\MFERemoval100.exe" -ArgumentList '/noreboot','/q','/all','/force' -Wait |
OlderNewer