![]() Example 6 Install-WindowsFeature -Name Web-Server -Source \\server2\winsxs Start with Web are installed on the local computer. The result of this cmdlet is all features that Pipes the resulting list to Install-WindowsFeature. This example retrieves a list of all Windows features beginning with the characters Web, and then Example 5 Get-WindowsFeature -Name Web-* | Install-WindowsFeature Instructions in the ADCSConfigFile.xml configuration file are applied to each of the servers that The first line, the value of the $servers variable is set on the second line, the installation The Confirm installation selections page of the Add Roles and Feature Wizard in Server Manager. The configuration file was created by clicking Export configuration settings on AD CS is installed on a list of computers that is contained in the This example installs Active Directory Certificate Services (AD CS) as specified in a configurationįile named ADCSConfigFile.xml. Example 4 $servers = ('server1', 'server2')įoreach ($server in $servers) Settings on the Confirm installation selections page of the Add Roles and Features Wizard in Server The configuration file was created by clicking Export configuration ![]() This example installs all roles, role services and features that are specified in a configurationįile named ADCSConfigFile.xml. Example 3 Install-WindowsFeature -ConfigurationFilePath d:\ConfigurationFiles\ADCSConfigFile.xml On a computer named Server1, by using the credentials of a user account named \johnj99. This example installs Web Server (IIS), including all role services and applicable management tools, Example 2 Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature -IncludeManagementTools -ComputerName Server1 -Credential \johnj99 By adding the WhatIf parameter, you can view the results of the This example shows what is installed with Web Server (IIS), including all role services, on aĬomputer named Server1. Examples Example 1 Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature -ComputerName Server1 -WhatIf This cmdlet requires elevation you must be running a Windows PowerShell session as an administrator IncludeManagementTools parameter to your command. Install management tools such as snap-ins on a target server, you must add the Important exception: the cmdlet does not install management tools for the features by default. ThisĬmdlet works similarly to the installation of roles and features in Server Manager, with an ![]() Windows Server, or on an offline virtual hard disk (VHD) on which Windows Server is installed. The Install-WindowsFeature cmdlet installs the specified features on a computer that is running Installs one or more roles, role services, or features on either the local or a specified remote
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |