Author Topic: Use the Server Manager module for Windows PowerShell  (Read 3678 times)

0 Members and 1 Guest are viewing this topic.

Use the Server Manager module for Windows PowerShell
« on: July 03, 2010, 03:14:50 PM »

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Use the Server Manager module for Windows PowerShell

Learn how to access and use additional Server Manager cmdlets in Windows PowerShell.


Server Manager’s command-line counterpart is the ServerManager module for Windows PowerShell. Generally, this module is not imported into Windows PowerShell by default. Instead, you need to import the module before you can use the cmdlets it provides. To import the Server Manager module, enter Import-Module ServerManager at the Windows PowerShell prompt. Once the module is imported, you can use it with the currently running instance of Windows PowerShell. The next time you start Windows PowerShell, you’ll need to import the module again if you want to use its features.

Note that you must be running Windows PowerShell with elevated user rights.

You can then use the following cmdlets:

-Add-WindowsFeature
-Get-WindowsFeature
-Remove-WindowsFeature

Here is a look at the syntax of these three cmdlets:

Add-WindowsFeature [-Name] <string[]> [-IncludeAllSubFeature] [-logPath <string>] [-WhatIf] [-Restart] [-Concurrent] [<CommonParameters>]

Get-WindowsFeature [[-Name] <string[]>] [-logPath <string>] [<CommonParameters>]

Remove-WindowsFeature [-Name] <string[]> [-logPath <string>] [-WhatIf] [-Restart] [-Concurrent] [<CommonParameters>]

A simple sample, add-windowsfeature nlb would install Network Load Balancing.

From the Microsoft Press book Windows Server 2008 Administrator’s Pocket Consultant, Second Edition by William R. Stanek.


credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
3934 Views
Last post June 11, 2010, 06:56:51 PM
by Nick
0 Replies
5300 Views
Last post July 02, 2010, 02:46:52 PM
by Nick
0 Replies
4662 Views
Last post July 02, 2010, 04:56:32 PM
by Nick
0 Replies
3776 Views
Last post July 02, 2010, 05:06:19 PM
by Nick
0 Replies
2501 Views
Last post July 02, 2010, 05:19:25 PM
by Nick
0 Replies
4167 Views
Last post July 03, 2010, 03:11:45 PM
by Nick
0 Replies
5178 Views
Last post July 03, 2010, 03:15:40 PM
by Nick
0 Replies
3357 Views
Last post March 08, 2012, 04:30:06 PM
by Nick
0 Replies
1845 Views
Last post July 08, 2012, 11:44:04 AM
by Nick
0 Replies
1773 Views
Last post August 06, 2012, 05:23:05 PM
by Nick