Forum Discussion

NJKWork's avatar
NJKWork
Copper Contributor
Jun 15, 2021
Solved

Join computer to domain with PowerShell 7

PowerShell 7 does not support the Add-Computer cmdlet and does not support WMI.  I am assuming one needs to use CIM now to add a computer to a domain with PowerShell.  Is that correct, or is there a ...
  • NJKWork's avatar
    Jul 09, 2021
    Sometimes the simple things are over-looked:

    Import-Module Microsoft.PowerShell.Management -UseWindowsPowerShell -WarningAction SilentlyContinue

Resources