Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

Tip

Open a Windows PowerShell session as administrator.

...

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

    No Format

...

  1. Enable-WSManCredSSP -Role client -DelegateComputer “SharePointServerName”

     

...

  1. Open a credentials prompt box

...

  1. :

    No Format

...

  1. $cred=get-Credential 
  2. 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.

...


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

...

  1. No Format
    $s=new-PSsession “SharePointServerName” - authentication credssp -credential

...

  1.  $cred     
    Warning

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

...

...

  1. Server Requirements (go to) to enable configuration of the x64 PowerShell

...

  1. .

...

 

...



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

    No Format

...

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

...


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

    No Format

...

  1. Invoke-Command -Session $s -ScriptBlock {get-SPContentDatabase} 

...

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

...

  1. No Format
    Invoke-Command -Session $s -ScriptBlock {get-spserviceinstance} 

...

  1. To attempt to use the PS Session to ensure connectivity between the two machines

...

  1. 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>

...