Showing posts with label windows server. Show all posts
Showing posts with label windows server. Show all posts

Friday, January 15, 2021

Install the PowerShell A/D module

 From this page:

How to install the PowerShell Active Directory module


Enable Active Directory module for Windows PowerShell in Remote Server Administration Tools > Role Administration Tools > AD DS and AD LDS Tools.


Thursday, January 14, 2021

How do I know if a Windows feature is installed?

 Honestly, every time previously I've tried filtering for Windows Features, I've used some form of variables and/or the PowerShell where-object, and today, I learned the get-windowsfeature cmdlet takes wildcards.


 get-windowsfeature "*fs*"






Wednesday, January 13, 2021

Set the friendly name of a physical disk

I need to set the FriendlyName of a PhysicalDisk in PowerShell, but the uniqueID isn't shown.

Use this:

Get-PhysicalDisk | Select-Object SerialNumber,UniqueID