How to make Windows Media Player Default


  1. Posts : 3
    windwos 10
       #1

    How to make Windows Media Player Default


    trying to create a power shell script for .wav to open with Windows Media Player. currebntly i have it set to open with VLC.
    Any Idea?
      My Computer


  2. Posts : 4,164
    Windows 11 Pro, 22H2
       #2

    Welcome to TenForums!

    I'm not familiar with the syntax that you may be using, but does it include the executable name? If so, just replace the VLC executable with wmplayer.exe.

    If the goal is to change the default player for .wav files, follow these steps:

    1) Go to Start > Settings > Apps > Default apps > Choose default app by file type
    2) Locate .WAV in the list and select the app to be used to open this type of file by default.
      My Computers


  3. Posts : 56,792
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #3

    Just a couple of pics to go with Hannes' post.

    How to make Windows Media Player Default-2020-01-06_17h18_57.pngHow to make Windows Media Player Default-2020-01-06_17h20_49.png
      My Computers


  4. Posts : 4,164
    Windows 11 Pro, 22H2
       #4

    Good job TC. I was too lazy
      My Computers


  5. Posts : 16,557
    Windows 10 Home x64 Version 22H2 Build 19045.3930
       #5

    I think you mean that you want to leave your existing default file associations as they are but, just in this particular script, run a wav file using WMP.

    So use this to run WMP and add the path to the wav file as an argument
    Use PowerShell to execute an exe – 4sysops

    Denis
      My Computer


  6. Posts : 3
    windwos 10
    Thread Starter
       #6

    hsehestedt said:
    Welcome to TenForums!

    I'm not familiar with the syntax that you may be using, but does it include the executable name? If so, just replace the VLC executable with wmplayer.exe.

    If the goal is to change the default player for .wav files, follow these steps:

    1) Go to Start > Settings > Apps > Default apps > Choose default app by file type
    2) Locate .WAV in the list and select the app to be used to open this type of file by default.
    Thank you so much, I have at least 300 pc that I have to change it, from VLC to WMP. I was thinking to create a script and push the job using our tool. Any idea.

    - - - Updated - - -

    Thank you, I wanna leave VLC and replace it with WMP but I need the script to change default to WMP.
      My Computer


  7. Posts : 4,164
    Windows 11 Pro, 22H2
       #7

    I have not used these commands myself, but it looks like you can use the "assoc" and "ftype" command line utilities to script this.

    Use these commands with a "/?" for help.

    Example:

    Associate the extension .txt with the "txtfile" file type:
    assoc .txt=txtfile

    Now, set the command to be run when a file of type "txtfile" is double-clicked:
    ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1

    You may need to experiment and search the web for additional information, but hopefully this gets you pointed in the right direction.
      My Computers


  8. Posts : 16,557
    Windows 10 Home x64 Version 22H2 Build 19045.3930
       #8

    There is some more guidance in
    Assoc - SS64
    FType - SS64

    SS64 has a forum at
    Commands forum - SS64

    Denis
      My Computer


  9. Posts : 3
    windwos 10
    Thread Starter
       #9

    hsehestedt said:
    Good job TC. I was too lazy
    I have the following script however isn't working nay ideas why ("C:\WINDOWS\INF\unregmp2.exe /SetWMPAsDefault")

    - - - Updated - - -

    hsehestedt said:
    I have not used these commands myself, but it looks like you can use the "assoc" and "ftype" command line utilities to script this.

    Use these commands with a "/?" for help.


    Example:

    Associate the extension .txt with the "txtfile" file type:
    assoc .txt=txtfile

    Now, set the command to be run when a file of type "txtfile" is double-clicked:
    ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1

    You may need to experiment and search the web for additional information, but hopefully this gets you pointed in the right direction.
    I have the following script however isn't working nay ideas why, i tried few others with no luck ("C:\WINDOWS\INF\unregmp2.exe /SetWMPAsDefault")
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:54.
Find Us




Windows 10 Forums