locked
A call to SSPI failed, see inner script RRS feed

  • Question

  • Hi

    Our organisation has a new user script for all of our schools located in a central mgmt server. This seems to be working fine from all schools apart form one. When we run the script we receive the following error:

    WARNING: Error initializing default drive: 'A call to SSPI failed, see inner
    exception.'.
    get-addomain : A call to SSPI failed, see inner exception.
    At  - script location
    s1:147 char:19
    +     $CurrDomain = get-addomain
    +                   ~~~~~~~~~~~~
        + CategoryInfo          : SecurityError: (SECONDARY:ADDomain) [Get-ADDomai
       n], AuthenticationException
        + FullyQualifiedErrorId : A call to SSPI failed, see inner exception.,Micr
       osoft.ActiveDirectory.Management.Commands.GetADDomain

    I have changed the restrictions (which were already unrestricted) to match the others but no luck.

    Friday, February 16, 2018 12:27 PM

All replies

  • You have an issue that is unrelated to scripting.  As you say, the script works from all but one location.   Contact your network and AD people to help get this fixed.

    Also be sure RSAT is installed correctly and the firewalls and routers are all configured correctly.


    \_(ツ)_/

    Friday, February 16, 2018 12:35 PM