Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

Tip

Open a Windows PowerShell session as administrator.

  1. To enable

    Enable Credential Security Service Provider (CREDSSP) authentication on the local client machine:

    No Format
     Enter
    Enable-WSManCredSSP -Role client -DelegateComputer “SharePointServerName”

     

  2. To open

    Open a credentials prompt box

     

    :

    No Format
  3. Enter
  4. $cred=get-Credential 
  5. Enter

  6. and
  7. an administrators account (or the admin account you worked with in

  8. the above steps
  9. the Server Requirements) to run the rest of the PowerShell commands with this account.

  10. To create

    Create a new remote session to the SharePointServerName using the authentication type CredSSP and the credentials previously entered:

    No Format
  11. Enter
  12. $s=new-PSsession “SharePointServerName” - authentication credssp -credential
  13. $cred     
  14.  $cred     
    Warning

    If this fails with an "access denied" error, re-run step

  15. 7a on
  16. 7 in the

  17. server (
  18. Server Requirements

  19. )
  20. to enable configuration of the x64 PowerShell

  21. (i.e. Set-PSSessionConfiguration -Name Microsoft)

     

  22. To load

    .

  23. PowerShell32 –ShowSecurityDescriptorUI


  24. Load the SharePoint snap-in to the current session to allow SharePoint related scripts to be executed:

    No Format
    Enter
    Invoke-Command -Session $s -ScriptBlock {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
     


  25. To return

    Return all content databases in your SharePoint farm (which ensures you have access):

    Enter 
    No Format
    Invoke-Command -Session $s -ScriptBlock {get-SPContentDatabase} 
     
  26. To return

    Return all SharePoint service instances (which ensures you have access):

    Enter
    No Format
    Invoke-Command -Session $s -ScriptBlock {get-spserviceinstance} 
     
  27. To attempt to use the PS Session to ensure connectivity between the two machines

  28. Enter
  29. No Format
    Enter-PSSession -session $s 


Tip

You will now see the server(s) name in brackets [ ] PS: c:\users\someuser\documents

...

.

Example: [sp2013-app.fabrikaminc.local]: PS C:\Users\adamb\Documents>

...