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:

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

     

  2. To open

    Open a credentials prompt box

     

    :

    No Format
  3. Enter
  4. $cred=get-Credential 
  5. Enter an administrators account (or the admin account you worked with in the Server Requirements) to run the rest of the PowerShell commands with this account.

  6. To create

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

  7. Enter
  8. No Format
    $s=new-PSsession “SharePointServerName” - authentication credssp -credential
  9. $cred     
  10.  $cred     
    Warning

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

  11. 7a on
  12. 7 in the

  13. server (
  14. Server Requirements

  15. )
  16. to enable configuration of the x64 PowerShell

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

     

  18. To load

    .

  19. PowerShell32 –ShowSecurityDescriptorUI


  20. 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;}
     


  21. To return

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

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

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

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

  24. Enter
  25. 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>

...