Windows 10: How to open a .html file in Edge in PowerShell script"

Discus and support How to open a .html file in Edge in PowerShell script" in Windows 10 Network and Sharing to solve the problem; What do I have to do to open a local .html file in MS Edge? This works from command line: & "C:\Program Files... Discussion in 'Windows 10 Network and Sharing' started by zBernie, Sep 23, 2020.

  1. zBernie Win User

    How to open a .html file in Edge in PowerShell script"


    What do I have to do to open a local .html file in MS Edge? This works from command line:


    & "C:\Program Files x86\Microsoft\Edge\Application\msedge.exe" C:\Users\bernie\Desktop\combined_homework.html




    I've tried all of the methods below, and none work. I thought this would be the easy part.


    Invoke-Item ~\Desktop\combined_homework.html


    start microsoft-edge:file:///C:\Users\bernie\Desktop\combined_homework.html

    cmd /c "C:\Program Files x86\Microsoft\Edge\Application\msedge.exe" C:\Users\bernie\Desktop\combined_homework.html


    Invoke-Command -FilePath "C:\Program Files x86\Microsoft\Edge\Application\msedge.exe" -ArgumentList C:\Users\bernie\Desktop\combined_homework.html

    :)
     
    zBernie, Sep 23, 2020
    #1
  2. DaveM121 Win User

    How To Open HTML Files

    Hi Doug,

    You can open HTML files with Internet Explorer or the Edge Browser . . .

    Right click an HTML file, choose Open - With

    On the resulting dialog, check the box marked 'Always open html file . .. '

    Then in the list look for Edge or Internet Explorer

    If they do not appear, scroll to the bottom of that list and click 'More Apps' to find them
     
    DaveM121, Sep 23, 2020
    #2
  3. How to change HTML File Associations from Edge to IE in Windows 10?

    Hi,

    I realize that you want to change HTML File Associations from Edge to Internet Explorer in Windows 10. I will try to help you with this issue.

    Follow these steps to make changes in the Control Panel and check if that helps:


    • Open Control Panel and click on Default programs.

    • Click on Associated a file type with a program.

    • Scroll down to select HTML file and click on change program.

    • Select Internet Explorer and click ok.

    Keep us informed to help you further.
     
    Srimadhwa B, Sep 23, 2020
    #3
  4. How to open a .html file in Edge in PowerShell script"

    windows edge opens then closes immediately

    Hi Jamie,

    Thank you for keeping us posted.

    From what you have mentioned, it looks like Microsoft Edge is set as the default browser. I would suggest you to try the steps below to set Internet Explorer as the default browser and check if you are able to open the PDF file.

    1. Press Windows key + I to open settings.

    2. Click "system" and click "default apps" on the left pane.

    3. Under "browser", if Microsoft Edge is listed, click on it and choose Internet Explorer from the list.

    Also, for Microsoft Edge crash related issue, please follow the steps given below to run powershell command.

    Powershell is a scripting language for Windows and Windows Server that allows you to simplify the management of your systems.

    1. Type powershell in the search bar

    2. Right click on PowerShell and select
    run as administrator


    3. Copy and paste the following command and press enter:

    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

    4. Once the command is completed successfully, restart the computer and check again.

    Let us know the result.
     
    Wungraileng Vashi, Sep 23, 2020
    #4
Thema:

How to open a .html file in Edge in PowerShell script"

Loading...
  1. How to open a .html file in Edge in PowerShell script" - Similar Threads - open html file

  2. How to create and run PowerShell script file on Windows 10

    in Windows 10 News
    How to create and run PowerShell script file on Windows 10: [ATTACH]A script is just a collection of commands saved into a text file (using the special .ps1 extension) that PowerShell understands and executes in sequence […] This article How to create and run PowerShell script file on Windows 10 first appeared on TheWindowsClub.com....
  3. Local .html files opening with file in Chrome/Edge

    in Windows 10 Network and Sharing
    Local .html files opening with file in Chrome/Edge: By default, when you right-click on an .html file in Windows Explorer, it opens with the header "file://" instead of "html://". Is there a way to change this default behavior in Windows, or is this something that is native to Edge/Chrome that is causing the issue?...
  4. powershell scripts

    in AntiVirus, Firewalls and System Security
    powershell scripts: Hi, I have azure. Someone is somehow installing powershell scripts onto my computer that allows them to host my PC through P2P and UDP connections, well I think so anyway. I have only just found powershell script entry changes in my registry by accident. These criminals...
  5. powershell script

    in Windows 10 Customization
    powershell script: looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move the files to an archive folder. monitor c:\test\*.pdf No files, do not send email. Yes Files, send an email to someone at...
  6. Cannot open HTML files

    in Windows 10 Network and Sharing
    Cannot open HTML files: I am struggling to suddenly not be able to open my HTML files that edit on Expression Web 4. I am using windows 10 ver 1903 I get the error message Server Error:The server extensions were unable to access the file E:\New Volume\4_para_sqn_re\lincolnshire_page1.htm Please...
  7. HTML tables in Powershell

    in Windows 10 Support
    HTML tables in Powershell: All your HTML Tables are belong to us - Evotec GitHub - iainbrighton/PScribo: PowerShell documentation framework 135872
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Opening local HTML files in MS Edge fails after editing a file

    in Browsers and Email
    Opening local HTML files in MS Edge fails after editing a file: Long story short, I have to create a small website for a class I am in. I'm not new to HTML, so this is easy peasy for me, but part of the focus is on usability, meaning I have to make sure the site functions across multiple resolutions and mobile devices. No problem, CSS to...
  10. A Powershell Script for HandBrake

    in Windows 10 Software and Apps
    A Powershell Script for HandBrake: Here's the thing. My system is an age-old i3-530 overclocked to 3.5GHz coupled with GTX 1050 2GB. I have around 1.5TB of tutorial videos that I have to encode due to dearth in HDD space. I want to encode the videos while keeping the folder and subfolder structure intact....