Recommended Posts

I have a gpo for cleaning up the context menu on all my clients from all the extentions installed by software (im a little ocd when it comes to these useless extentions) This works great for everything bar windows media player.

Normally i use group policy preferences but the context menu items for windows media player seem to be stored on diffierent locations on different versions of windows so im using powershell to find the key.


New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
$MUIPath = Get-ChildItem "HKCR:\Local Settings\MuiCache" | Where-Object {$_.PSChildName -ne '52C64B7E'}
$MUIPath.PSPath += "\52C64B7E"
Set-ItemProperty $MUIPath.PSPath "@C:\Windows\system32\unregmp2.exe,-9800" "&Add to Playlist"
Set-ItemProperty $MUIPath.PSPath "@C:\Windows\system32\unregmp2.exe,-9801" "&Play"
Set-ItemProperty $MUIPath.PSPath "@C:\Windows\system32\unregmp2.exe,-9991" "&Play"
Pop-Location
[/CODE]

Which changes the menu for media files (ill kill the redundant "play" item later)

EAg7DXq.png

The issue im having with this script is that it only works when i run it manually. I have tried creating a scheduled task to run it under system and a full domain admin account with no luck it simply runs forever. Adding it as a powershell login script in the gpo didnt work either.

Id just unregister them but the add to playlist is a useful function. The script is signed and it showed no issue in the powershell debugger.

Any ideas for what the issue might be from powershell gurus ?

Link to comment
https://www.neowin.net/forum/topic/1135238-powershell-script-not-running/
Share on other sites

  • 1 month later...
  • 2 weeks later...
This topic is now closed to further replies.
  • Posts

    • Promoting is fine - advertising, informing, whatever.  But interrupting your PAID OS experience is not.
    • Why does a PDF software need an audio player inside it. What is this bloat.
    • Sadly, that is the state of things. It's basically considered acceptable for any random app running on your computer to use 1+ GB of RAM, and install space, lol, no one even seems to consider that.
    • EU Commission explains why Siri AI isn't launching in the EU, and Apple is to blame by Hamid Ganji Image via Apple This week at Apple’s 2026 developers conference, the iPhone maker unveiled the upgraded Siri after more than a year of delays. The new Siri is now called Siri AI, and it's powered by Google Gemini models. While Siri AI is preparing to roll out to Apple users worldwide, the company’s EU customers might need to wait much longer before getting their hands on the new assistant. Shortly after announcing iOS 27, Apple said in a blog post that Siri AI is not coming to the EU anytime soon due to hurdles posed by the Digital Markets Act (DMA) and other regulatory requirements. To comply with the DMA in the EU, Apple apparently needs to open Siri AI to rival assistants on iOS 27 and iPadOS 27. Apple has refused to do so, which has resulted in Siri AI being delayed for its EU users. The company argues that such a move would put users’ privacy at risk. In a statement to Neowin, a European Commission spokesperson provided more details about why Siri AI will not be rolled out to Apple customers in the region. The statement first noted that the DMA does not prohibit Apple from launching its services in the EU and that the company is simply required to comply with the law. The European Commission spokesperson added that, since Apple is considered a gatekeeper under the DMA, it is “obliged to give third parties access to equivalent features as they give to its own products. Because the DMA is precisely about giving users the choice to use the product they find best suits their needs.” Moreover, the spokesperson said the Commission has been in contact with Apple, though the company “did not develop proposals for DMA compliant interoperability solutions.” The statement also clarified that companies designated as gatekeepers cannot leverage their status and products, such as operating systems, to favor their own AI services. The first public beta of iOS 27 will roll out next month, while the stable version is expected to launch this fall following the release of the iPhone 18 series. It remains unclear when Apple will be able to resolve its DMA-related compliance issues with the European Commission and bring Siri AI to its European customers.
  • Recent Achievements

    • One Month Later
      pinnclepd earned a badge
      One Month Later
    • First Post
      X-No-file earned a badge
      First Post
    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      PsYcHoKiLLa
      214
    3. 3
      +Edouard
      145
    4. 4
      Steven P.
      88
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!