$dom=[system.directoryservices.activedirectory.domain]::getcurrentdomain()
$dom | format-list *
The first line holds a directory connection in the variable $dom so you can pipe it through thr format-list command in the second line.
the alternative CMD command is
netdom query /domain:mydomain.co.uk fsmo
No comments:
Post a Comment