If the ComputerName parameter is not specified, then the local computer is used. Use either of the following formats for the computer account: DOMAIN\SERVERNAME$ or SERVERNAME$.Īdd the ComputerName parameter to specify the target computer you want to use to mount the VHD. Local loopback UNC paths are not supported. In this case, the computer account of the computer that you are using to mount the VHD must have read and write permissions (Read/Write permissions in the File Sharing dialog box, or Full Control on the Security tab of the folder Properties dialog box) on the shared folder, or the VHD will not be accessible. If the VHD is in a network shared folder, then the value of this parameter is a UNC path to the VHD. The VHD can be on a local disk on the target computer, or on a network shared folder. The path can either point to a VHD file, or to a location on which the VHD is already mounted by using Deployment Image Servicing and Management (DISM) tools. The computer must either be configured for HTTPS transport, or the IP address of the remote computer must be included in the WinRM TrustedHosts list on the local computer.įor information about adding a computer name to the WinRM TrustedHosts list, see "How to Add a Computer to the Trusted Host List" in about_Remote_Troubleshooting. To use an IP address of a remote computer as the value of this parameter, your command must include the Credential parameter. Valid values for the parameter include a NetBIOS name, an IP address, or a fully qualified domain name of a remote computer that is running Windows Server. If this parameter is not added, or no computer name is specified, the default target is the local computer. This parameter accepts only one computer name. Uninstalls and optionally removes one or more roles or features from a specified remote computer. This example deletes the feature files for any roles or features that currently are not installed on the local server. Examples Example 1 Get-WindowsFeature | Where-Object -FilterScript | Uninstall-WindowsFeature -Remove This cmdlet requires elevation you must be running a Windows PowerShell session as an administrator to use this cmdlet. This cmdlet works similarly to the uninstallation of roles and features in Server Manager, with an important exception: by default, management tools are not uninstalled when you run the Uninstall-WindowsFeature cmdlet you must add the IncludeManagementTools parameter to uninstall associated management tools. The Uninstall-WindowsFeature cmdlet uninstalls and optionally removes specified roles, role services, and features from a computer that is running Windows Server, or from an offline virtual hard disk (VHD) on which Windows Server is installed. In this article Syntax Uninstall-Windows Feature Uninstalls specified Windows Server roles, role services, and features from a computer that is running Windows Server.īy adding the Remove parameter, also deletes feature files, or payload, from a computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |