Information about the domain could not be retrieved (1355) RRS feed

  • Question

  • Running the followng powershell using the Dot Net System.DirectoryServices.AccountManagement assembly

    Add-Type -AssemblyName System.DirectoryServices.AccountManagement


    #store credentials (of account with appropriate permissions)
    $creds = Get-Credential 
    #set the domain name
    $dn = '' 

    #Create the principal context object (so to say connect to a domain with the credentials provided)
    $pc = [System.DirectoryServices.AccountManagement.PrincipalContext]::new([System.DirectoryServices.AccountManagement.ContextType]::`

    #set the group name (SamAccount)
    $username = "cs982ml"

    #load the group from AD / create the group object
    $user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($pc,$username)


    Exception calling "GetGroups" with "0" argument(s): "The server is not operational.
    Name: ""

    It works from one machine but another machine we get this error

    .: Lister :.

    Saturday, August 3, 2019 6:30 PM

All replies

  • Hi Mike Lister, 

    Thank you for posting here.

    According to your description, your issue is more related to PowerShell. Therefore, it will be more appropriate to ask your question in PowerShell Forums.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, August 5, 2019 6:38 AM