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 | |
=========================================================================== | |
Created by: Dan Padgett (C) | |
Organization: www.execmgr.net | |
Version: 1.0 | |
=========================================================================== | |
.SYNOPSIS | |
Removal Tool for SCCM and AD Objects |
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
#------------------------------------------------------------------------ | |
# Source File Information (DO NOT MODIFY) | |
# Source ID: 74fe6ba9-5367-4c55-a9e3-22fcf54564d4 | |
# Source File: removepc2.psf | |
#------------------------------------------------------------------------ | |
#region File Recovery Data (DO NOT MODIFY) | |
<#RecoveryData: | |
nTgAAB+LCAAAAAAABADdW11zqkwSvk9V/gPlxdZuxQ2IGrU2sWpAzMcbE78ST87NKYSRcESwAIPm | |
128PA4IICnmTbJ09pypmhpnpp7ufnu4ZzOUQK9Ybtjcd2ZUZ+MXRLfOqxJ9XSu3TE4a5fLR1TTdl | |
o6sb+EFe4LaNFzBhqfDnS2d2ye49p7Omv7HiMu5mia9Ko43j4sX5RDdVy3POu5a9oD/LTNqjMvMc |
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 | |
Repermissions and backs up CSC Cache for logged in user | |
.DESCRIPTION | |
Script will locate running users csc cache and zip, then export to defined location. Requires 7 Zip. | |
.NOTES | |
Version: 1.0 | |
Author: dpadgett | |
Creation Date: 07/02/17 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<DefaultAssociations> | |
<Association Identifier=".3gp2" ProgId="WMP11.AssocFile.3G2" ApplicationName="Windows Media Player" /> | |
<Association Identifier=".arw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> | |
<Association Identifier=".bmp" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> | |
<Association Identifier=".cr2" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> | |
<Association Identifier=".crw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> | |
<Association Identifier=".dib" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> | |
<Association Identifier=".epub" ProgId="AppXvepbp3z66accmsd0x877zbbxjctkpr6t" ApplicationName="Microsoft Edge" /> | |
<Association Identifier=".erf" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" /> |
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
<Association Identifier=".htm" ProgId="AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9" ApplicationName="Microsoft Edge" /> | |
<Association Identifier=".html" ProgId="AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9" ApplicationName="Microsoft Edge" /> | |
<Association Identifier="http" ProgId="AppXq0fevzme2pys62n3e0fbqa7peapykr8v" ApplicationName="Microsoft Edge" /> | |
<Association Identifier="https" ProgId="AppX90nv6nhay5n6a98fnetv7tpk64pp35es" ApplicationName="Microsoft Edge" /> | |
<Association Identifier="pdf" ProgId="AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723" ApplicationName="Microsoft Edge" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<DefaultAssociations> | |
<Association Identifier=".htm" ProgId="ChromeHTML" ApplicationName="Google Chrome" /> | |
<Association Identifier=".html" ProgId="ChromeHTML" ApplicationName="Google Chrome" /> | |
<Association Identifier=".pdf" ProgId="Acrobat.Document.2015" ApplicationName="Adobe Acrobat DC" /> | |
<Association Identifier="http" ProgId="ChromeHTML" ApplicationName="Google Chrome" /> | |
<Association Identifier="https" ProgId="ChromeHTML" ApplicationName="Google Chrome" /> | |
<Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook 2016" /> | |
</DefaultAssociations> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<DefaultAssociations> | |
<Association Identifier=".htm" ProgId="ChromeHTML" ApplicationName="Google Chrome" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9"/> | |
<Association Identifier=".html" ProgId="ChromeHTML" ApplicationName="Google Chrome" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9" /> | |
<Association Identifier=".pdf" ProgId="Acrobat.Document.2015" ApplicationName="Adobe Acrobat DC" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723" /> | |
<Association Identifier="http" ProgId="ChromeHTML" ApplicationName="Google Chrome" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXq0fevzme2pys62n3e0fbqa7peapykr8v" /> | |
<Association Identifier="https" ProgId="ChromeHTML" ApplicationName="Google Chrome" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX90nv6nhay5n6a98fnetv7tpk64pp35es" /> | |
<Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook 2016" Apply |
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
Try | |
{ | |
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\System -Name DefaultAssociationsConfiguration -Value '\\Server\Share\AppAssoc.xml' | |
New-Item -Path HKLM:\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 | |
Set-ItemProperty -Path HKLM:\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 -Name NoOpenWith -Value '' | |
Set-ItemProperty -Path HKLM:\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 -Name NoStaticDefaultVerb -Value '' | |
#DISM Method does not work in 1703. | |
#Dism.exe /online /Import-DefaultAppAssociations:\\Server\Share\AppAssoc.xml |
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 | |
Install and set system language to en-us | |
.DESCRIPTION | |
provide cab names , see line 22,23 | |
danjpadgett - execmgr.net | |
#> | |
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
$result = @() | |
$time = 1 | |
$list = Get-Content .\list.txt | |
Foreach ($i in $list) | |
{ | |
$intSize = $intSize + $objFile.Length | |
$resData = New-Object System.Object | |
$resData | Add-Member -type NoteProperty -name ComputerName -value $i |