Trying to disable Internet Explorer but is receiving a prompt whether to complete the operation now? [Y/N]?
Tried this command:
Disable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 -Online -Confirm:$false
Tried this command:
Disable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 -Online -Confirm:$false
But received an error message:
I agree with the suggestion given by Santiago.
The correct command to disable the Internet Explorer using the Powershell is as below.
Disable-WindowsOptionalFeature -online -FeatureName internet-explorer-optional-amd64
When you run the command, it will ask you whether you would like to restart the machine or later. You could enter the desired choice.
Note: Make sure you are running the Powershell as Administrator.
Related
I am trying to install Hyper V for an Azure Dev Ops (ADO) pipeline (using powershell task). When I do a "Get-VM", I am getting the typical powershell error "... not recognized as the name cmdlet" error so it make me believe Hyper V is not installed. When I do a "Get-Module -listavailable" Hyper V is not listed.
I have a build agent with Windows 2019 and Windows 2022 and neither seems to work.
I have tried the following;
DISM /Online /NoRestart /Enable-Feature /All /FeatureName:Microsoft-Hyper-V /LogLevel:4 <-- seems to work but at the end of the task it just says Exit 1
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -NoRestart -All
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Offline -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Online -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-Clients -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-PowerShell -NoRestart -All
import-module Hyper-V <-- says can't find module
I am stuck on what to do. I need Hyper V as part of my pipeline tests.
Thanks
Darren
I am afraid that Hyper V can't be enabled on Microsoft Hosted Agents. According to the documentation
Microsoft-hosted agents:
Run on Microsoft Azure general purpose virtual machines Standard_DS2_v2
Hyper V can only be enabled on Virtual Machines which supports Nested Virtualization. Check this link for more details:
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
Unfortunately, DSv2-series do not support Nested Virtualization
Figured it out somewhat. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All is sufficient to do it BUT a reboot is needed which is a new issue. Will follow up with that in a separate posting.
When adding a windows static node on jfrog pipelines, and running the initialization script on the windows server throws "check_win_containers_enabled : Windows Containers must be enabled" error
This seems to require some windows features to be enabled manually, here are the commands to run on powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All
The shell will also ask to restart after running these commands, here is where i found the answer https://www.jfrog.com/confluence/display/JFROG/Troubleshooting
I am trying to uninstall the older version of the software and install the latest version. I have an uninstall script and an install script that does this. When I run the script as Powershell as Admin, the script executes successfully, but in non Admin mode, it prompts for a popup asking for confirmation,
Since I am trying to automate via pipeline I need to skip or suppress this popup,
msiexec.exe /i "installer.msi" /q
$app = Get-WmiObject -Class Win32_Product -Filter "Name = 'installer'" | Remove-WmiObject
I have tried using /q, /quiet that did not help
Is there any way to suppress such prompt so that it can continue silently?
I have a PowerShell script to uninstall the two problem KB's MS has released, we are pushing it through with our RMM as run PowerShell as admin, but if the user is currently logged in that does not have admin priv. the script errors out with the requested operation requires elevation. Here is the command being run:
Get-WindowsPackage -Online | ?{$_.ReleaseType -like "*Update*"} |
%{Get-WindowsPackage -Online -PackageName $_.PackageName} |
?{$_.Description -like "*KB5000802*"} | Remove-WindowsPackage -Online -Restart /quiet
Is there some way to get around the elevated privilege's issue?
I am trying to enable Windows features "MSMQ Server" and "MSMQ Server Core" using PowerShell with the below command:
Enable-WindowsOptionalFeature -Online -FeatureName 'MSMQ-Server' -All -NoRestart
But the above command enables only the "MSMQ Server" and not "MSMQ Server Core". I want a PowerShell command which enables both "MSMQ Server" and "MSMQ Server Core" feature. Any help on this will be highly appreciated.
Thanks,
Mani Athreya S
If you want to enable all MSMQ features, you can run this command. For the record, I do not see a MSMS-Server-Core feature available in my up-to-date Server 2019 VM.
Get-WindowsOptionalFeature -FeatureName MSMQ* -Online |
Enable-WindowsOptionalFeature -Online -NoRestart -Verbose