Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit b15e555

Browse files
committed
Reimplement the WMP part of #315 (thanks @Kein)
1 parent 7e1468c commit b15e555

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
219219
DisableIEFirstRun # EnableIEFirstRun
220220
DisableFirstLogonAnimation # EnableFirstLogonAnimation
221221
DisableMediaSharing # EnableMediaSharing
222+
# DisableMediaOnlineAccess # EnableMediaOnlineAccess
222223
# EnableDeveloperMode # DisableDeveloperMode
223224
# UninstallMediaPlayer # InstallMediaPlayer
224225
# UninstallInternetExplorer # InstallInternetExplorer

Win10.psm1

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ Function EnableFirstLogonAnimation {
35453545

35463546
# Disable Windows Media Player's media sharing feature
35473547
Function DisableMediaSharing {
3548-
Write-Output "Disabling media sharing..."
3548+
Write-Output "Disabling Windows Media Player media sharing..."
35493549
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer")) {
35503550
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Force | Out-Null
35513551
}
@@ -3554,10 +3554,34 @@ Function DisableMediaSharing {
35543554

35553555
# Enable Windows Media Player's media sharing feature
35563556
Function EnableMediaSharing {
3557-
Write-Output "Enabling media sharing..."
3557+
Write-Output "Enabling Windows Media Player media sharing..."
35583558
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventLibrarySharing" -ErrorAction SilentlyContinue
35593559
}
35603560

3561+
# Disable Windows Media Player online access - audio file metadata download, radio presets, DRM.
3562+
Function DisableMediaOnlineAccess {
3563+
Write-Output "Disabling Windows Media Player online access..."
3564+
If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer")) {
3565+
New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Force | Out-Null
3566+
}
3567+
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventCDDVDMetadataRetrieval" -Type DWord -Value 1
3568+
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventMusicFileMetadataRetrieval" -Type DWord -Value 1
3569+
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventRadioPresetsRetrieval" -Type DWord -Value 1
3570+
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\WMDRM")) {
3571+
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\WMDRM" -Force | Out-Null
3572+
}
3573+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WMDRM" -Name "DisableOnline" -Type DWord -Value 1
3574+
}
3575+
3576+
# Enable Windows Media Player online access
3577+
Function EnableMediaOnlineAccess {
3578+
Write-Output "Enabling Windows Media Player online access..."
3579+
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventCDDVDMetadataRetrieval" -ErrorAction SilentlyContinue
3580+
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventMusicFileMetadataRetrieval" -ErrorAction SilentlyContinue
3581+
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" -Name "PreventRadioPresetsRetrieval" -ErrorAction SilentlyContinue
3582+
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WMDRM" -Name "DisableOnline" -ErrorAction SilentlyContinue
3583+
}
3584+
35613585
# Enable Developer Mode
35623586
Function EnableDeveloperMode {
35633587
Write-Output "Enabling Developer Mode..."

0 commit comments

Comments
 (0)