Remote Install Software with Powershell

My company is rolling out Active Directory on Windows Server 2012. I’ve been using the project as an excuse to work on my PowerShell skills.

  1. I can’t remember how to start a remote session. I can remember Get-Command so I’ll Use that to find the command until my memory kicks in
    • Get-Command *pssession*
  2. Start the remote session. It will prompt you for the server to which you want a connection
    • New-PSSession
  3. Use Get-WindowsFeature to find what is installed, and the name of what you want to install
    • Get-WindowsFeature
  4. Do it
    • Add-WindowsFeature Feature Name

This is a personal website. Unless otherwise stated, the content and opinions expressed here are my own and not those of my employer.