Differences between revisions 4 and 5
Revision 4 as of 2020-08-13 04:22:04
Size: 851
Editor: PieterSmit
Comment:
Revision 5 as of 2020-08-13 21:12:41
Size: 1066
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
         * After install still got import error {{{
> import-module activedirectory
WARNING: Error initializing default drive: 'Unable to find a default server with Active Directory Web Services
running.'.
}}}

Windows/PowerShell Notes

Missing powershell commands

  • Get info on a machine by id

    #Powershell > import-module activedirectory
                  Get-ADComputer -Identity "abcd" | select -ExpandProperty DistinguishedName
  • Err

    > Get-ADComputer -Identity "abcd" | select -ExpandProperty DistinguishedName
    Get-ADComputer : The term 'Get-ADComputer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1

Windows/PowerShell (last edited 2022-01-26 21:34:01 by PieterSmit)