mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-24 11:45:29 +00:00
Created Enable Edge PDF File
This contains the code in the Enable-EdgePDF function.
This commit is contained in:
parent
2d65955a79
commit
a259c8f3f1
29
Individual Scripts/Enable Edge PDF
Normal file
29
Individual Scripts/Enable Edge PDF
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Write-Output "Setting Edge back to default"
|
||||||
|
$NoPDF = "HKCR:\.pdf"
|
||||||
|
$NoProgids = "HKCR:\.pdf\OpenWithProgids"
|
||||||
|
$NoWithList = "HKCR:\.pdf\OpenWithList"
|
||||||
|
#Sets edge back to default
|
||||||
|
If (Get-ItemProperty $NoPDF NoOpenWith) {
|
||||||
|
Remove-ItemProperty $NoPDF NoOpenWith
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty $NoPDF NoStaticDefaultVerb) {
|
||||||
|
Remove-ItemProperty $NoPDF NoStaticDefaultVerb
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty $NoProgids NoOpenWith) {
|
||||||
|
Remove-ItemProperty $NoProgids NoOpenWith
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty $NoProgids NoStaticDefaultVerb) {
|
||||||
|
Remove-ItemProperty $NoProgids NoStaticDefaultVerb
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty $NoWithList NoOpenWith) {
|
||||||
|
Remove-ItemProperty $NoWithList NoOpenWith
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty $NoWithList NoStaticDefaultVerb) {
|
||||||
|
Remove-ItemProperty $NoWithList NoStaticDefaultVerb
|
||||||
|
}
|
||||||
|
|
||||||
|
#Removes an underscore '_' from the Registry key for Edge
|
||||||
|
$Edge2 = "HKCR:\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_"
|
||||||
|
If (Test-Path $Edge2) {
|
||||||
|
Set-Item $Edge2 AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user