Opening Internet Explorer in Powershell or CMD - powershell

I'm using Windows Server 2016 Standard core and cannot figure out how to open Internet Explorer.

Internet explorer isn't available in Windows Core.
However, if you are running Windows Server 2019, then you could install the Server Core App Compatibility Features on Demand and then add support for IE11.
To do this, first, add support for the Server Core App Compatibility FoD (all of the steps listed below are available in the documentation that I have linked to):
Download the Server FOD optional packages ISO, and copy the ISO to a shared folder on your local network:
If you have a volume license you can download the Server FOD ISO image file from the same portal where the OS ISO image file is obtained: Volume Licensing Service Center.
The Server FOD ISO image file is also available on the Microsoft Evaluation Center or on the Visual Studio portal for subscribers.
Sign in as Administrator on the Server Core computer that is connected to your local network and that you want to add the FOD to.
Use net use, or some other method, to connect to the location of the FOD ISO.
Copy the FOD ISO to a local folder of your choosing.
Start PowerShell by entering powershell.exe at a command prompt.
Mount the FoD ISO by using the following command:
Mount-DiskImage -ImagePath drive_letter:\folder_where_ISO_is_saved\ISO_filename.iso
Type exit to exit PowerShell.
Run the following command:
DISM /Online /Add-Capability /CapabilityName:"ServerCore.AppCompatibility~~~~0.0.1.0" /Source:drive_letter_of_mounted_ISO: /LimitAccess
After the progress bar completes, restart the operating system.
Once this is completed, you can begin the process of installing Internet Explorer:
Sign in as Administrator on the Server Core computer that has the App Compatibility FOD already added and the Server FOD optional package ISO copied locally.
Start PowerShell by entering powershell.exe at a command prompt.
Mount the FoD ISO by using the following command:
Mount-DiskImage -ImagePath drive_letter:\folder_where_ISO_is_saved\ISO_filename.iso
Type exit to exit PowerShell.
Run the following command:
Dism /online /add-package:drive_letter_of_mounted_iso:"Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~.cab"
After the progress bar completes, restart the operating system.
By completing the above steps, you will then have installed the Windows Core version of Internet Explorer. It is not the same as the desktop version for the obvious reason that Server Core is missing the majority of GUI packages - Microsoft mainly supply it for debugging and support of IIS.

Related

Server Manager not available/accessible after removing .Net feature in widows server 2019

I have removed .Net Framework feature from "Server Manager -> Remove Roles and features Wizard".
(This image is from a different server)
Later I noticed that this activity has affected many windows features (Server manager, IIS Manager, Turn on off windows features etc..).
After removed .Net Framework feature I was not able to find the Server Manager application.
I tried answer in this link and able to restore ServerManager.exe but once I try to load the server manager it's giving below error,
I may be able to resolve this if I can re enable .Net frame work feature. But not sure how to do that without using server manager(since I cannot open sever manager).
Appreciate any solutions or suggestions regarding this.
Finally able to re enable .Net feature and access server manager by following below steps,
Open command prompt
Run the command: dism /online /enable-feature /featurename:NetFx4ServerFeatures /ALL and press return.
Type PowerShell and press enter.
Run the command: Install-WindowsFeature PowerShellRoot,PowerShell,PowerShell-ISE.
Restart the server.
Credit belongs to this blogger:
https://glennopedia.com/2020/02/14/why-you-shouldnt-remove-net-in-windows-server/
This kind of errors are caused due to lack of .NET framework on your machine or if you installed old version of framework. You need to install an appropriate .NET Framework on your computer.
Updating .NET framework on your computer will solve your problem maximum.
Install it from the Microsoft website.
Run as Administrator , the server manager will open.
Now you can try to add.

Windows Server 2016 on Virtual machine, Kiosk mode

I am trying to set up Kiosk Mode on a Windows Server 2016 set-up on a Hyper-V VM.
I have used Windows Imaging and Configuration Designer to create a Kiosk package but cannot apply it. When I use the Powershell cmdlet Add-ProvisioningPackage
I get an error saying:
'Add-ProvisioningPackage is not recognized as the name of a cmdlet'
Has anyone else had similar issues?
EDIT: Here is the full error, I tried both the folder path and also the .ppkg
EDIT2: It appears to not be possible on Windows Server 2016 to utilize provisioning packages.

Packer - Windows Server 2012R2 - Install PowerShell 5

I'm having trouble with installing PowerShell 5 on Windows Server 2012 R2 using Packer.
To install PowerShell 5.1, I'm using chocolatey
powershell
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
choco install PowerShell -y
I need to to do this for two packer builder:
Amazon Web Services EC2 AMI.
Hyper-V Vagrant.
With the Amazon Web Services EC2 AMI I've tried executing the above from the following locations
As part of the user_data_file script.
As an inline provision script.
I've added the windows-restart provision in the flow after the execution of the fragment.
Similarly I've tried the same with the Hyper-V Vagrant both as part of the Autounattend flow and as an inline provision.
In both cases the installation fails because the user profile is not created. At least I think that is the problem. As a reference, I've faced the exact same problem when installing sql server express.
Has anyone managed to accomplish this flow and what is your recommendation?
PowerShell package uses MSU (Windows Update file). There are a couple of considerations here:
Ensure Windows Updates Service is turned on. Chocolatey doesn't do that yet, although there is an issue filed.
MSUs must be run locally from the machine. So if you are running over WinRM, you instead need to have it set up a scheduled task to call choco install and then run it that way.
Yes, that second point is accurate. No, it is not Chocolatey's fault. That's a Microsoft design decision with MSU files. It's a real PITA.
FYI - BoxStarter handles it appropriately, and it can be used with Packer. You will find less pain if you look there.
HTH

FailoverClusters module is not getting listed while running the cmdlet Get-Module -ListAvailable

I tried below command
Get-Module -ListAvailable
But it did not showed me "FailoverClusters" in the list
From where I can download this module? Do I have to install any SDK?
Note: I do not want to install Azure SDK. Is there any other way?
Update
I am using my local windows 10 to remote connect to the Azure Virtual Machine (Windows Server 2012 R2). I do want to manage all configurations using powershell from my local windows 10 machine.
As jisaak already explained, the FailoverClusters module is installed when you install the Failover Clustering feature on a Windows Server.
If, however, you want to manage a cluster from a computer without the Failover Clustering feature installed, this is what you do:
Download the appropriate version of Remote Server Administration Tools
Run the installer
Navigate to the Programs and Features control panel pane (run appwiz.cpl)
Choose "Turn Windows Features on or off"
Find the "Failover Cluster Management" feature under Remote Server Administration Tools
Enable it
Voila
The FailoverClusters Windows PowerShell module is installed on the
computer with the Failover Clustering feature
Source
Install the Failover Clustering Feature

Unable to create bootable USB for windows xp installation

I have mistakenly formatted windows xp partition of my hardrive while trying to install lubuntu operating system.
Now I can only have access to my computer through the live USB disk of lubuntu.
I have couple of .iso files of windows xp cd.
But when I tried to create bootable USB drive from it, it doesn't work.
It either shows "bootmgr is missing" message or it show a blinking cursor and nothing happens while booting.
The iso's that I have, contain all the necessary installation files required.
Is there a way to make USB drive boot from it?
I tried softwares like rufus but that too doesn't work with iso that I have.
try to google a software called ultraiso, it can create an installation usb using an installation Windows cd or iso, no matter the Windows is xp or 7 or 8 or Windows Server.
If you can't find it in google, try to find it using another search engine such as www.baidu.com
then using the usb, you can install Windows again in your hard drive