Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Add Windows Feature

Posted on December 15, 2015 By David Kittell

First figure out what features are installed

Get Windows Feature
Import-Module ServerManager -Verbose
Get-WindowsFeature

To add a feature look at the listing from Get-WindowsFeature and it will have something like XPS-Viewer or Web-Http-Redirect

Add Windows Feature
Import-Module ServerManager -Verbose
Add-WindowsFeature Web-Http-Redirect
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell

Post navigation

Previous post
Next post

Related Posts

XML Site Map

Posted on October 17, 2013October 26, 2015

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="generateXML.aspx.vb" Inherits="Examples_generateXML" %> <%@ Register Assembly="Ektron.Cms.Controls" Namespace="Ektron.Cms.Controls" TagPrefix="CMS" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Generate Sitemap Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Button runat="server" ID="btnGenerate" Text="Click to Generate Sitemap" OnClientClick="displayWait()" /> <br /> <br /> <cms:login runat="server" id="login1"…

Read More

Mac OS X – Remove Users In Terminal/SSH

Posted on February 19, 2016March 30, 2016

Recently I had to remove users from a Mac that was on a network only with SSH available. In this document I use the user name “administrator” as the account that I do the work in and would like to keep, your user name may be different. First we need…

Read More

WordPress Change URL – MySQL – Update String Within Column

Posted on October 17, 2014January 15, 2021

Recently I changed a domain alias for a WordPress site and needed to change the domain in all the pages/posts and this little script came in handy. Typical disclaimer stands, do a full backup before running this and verify you have everything setup correctly. UPDATE wp_options SET option_value = REPLACE(option_value,…

Read More

Code

Top Posts & Pages

  • PowerShell - Change Windows CD/DVD Drive Letter
  • Bleaching Wool using Hydrogen Peroxide
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - Disable Auto Run In Windows
  • MacOSX Terminal - Convert P7B Certificate to PEM/CER Certificate

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Change Windows CD/DVD Drive Letter
  • Bleaching Wool using Hydrogen Peroxide
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - Disable Auto Run In Windows
  • MacOSX Terminal - Convert P7B Certificate to PEM/CER Certificate
  • Get Windows Shortcut (.lnk) Details
©2025 David Kittell | WordPress Theme by SuperbThemes
David Kittell
  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support