@@ -3545,7 +3545,7 @@ Function EnableFirstLogonAnimation {
3545
3545
3546
3546
# Disable Windows Media Player's media sharing feature
3547
3547
Function DisableMediaSharing {
3548
- Write-Output " Disabling media sharing..."
3548
+ Write-Output " Disabling Windows Media Player media sharing..."
3549
3549
If (! (Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" )) {
3550
3550
New-Item - Path " HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" - Force | Out-Null
3551
3551
}
@@ -3554,10 +3554,34 @@ Function DisableMediaSharing {
3554
3554
3555
3555
# Enable Windows Media Player's media sharing feature
3556
3556
Function EnableMediaSharing {
3557
- Write-Output " Enabling media sharing..."
3557
+ Write-Output " Enabling Windows Media Player media sharing..."
3558
3558
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer" - Name " PreventLibrarySharing" - ErrorAction SilentlyContinue
3559
3559
}
3560
3560
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
+
3561
3585
# Enable Developer Mode
3562
3586
Function EnableDeveloperMode {
3563
3587
Write-Output " Enabling Developer Mode..."
0 commit comments