Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 6 Next »

On the client machine:

Open a Windows PowerShell session as administrator.

  1. To enable Credential Security Service Provider (CREDSSP) authentication on the local client machine
    1.  Enter Enable-WSManCredSSP -Role client -DelegateComputer “SharePointServerName”
       
  2. To open a credentials prompt box  
    1. Enter $cred=get-Credential
    2. Enter and administrators account (or the admin account you worked with in the Server Requirements) to run the rest of the PowerShell commands with this account

  3. To create a new remote session to the SharePointServerName using the authentication type CredSSP and the credentials previously entered
    1. Enter $s=new-PSsession “SharePointServerName” - authentication credssp -credential $cred     

      If this fails with an "access denied" error, re-run step 7a on the server (Server Requirements) to enable configuration of the x64 PowerShell (i.e. Set-PSSessionConfiguration -Name Microsoft.PowerShell32 –ShowSecurityDescriptorUI)

       

  4. To load the SharePoint snap-in to the current session to allow SharePoint related scripts to be executed
    1. Enter Invoke-Command -Session $s -ScriptBlock {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
       
  5. To return all content databases in your SharePoint farm (which ensures you have access)
    1. Enter Invoke-Command -Session $s -ScriptBlock {get-SPContentDatabase}
       
  6. To return all SharePoint service instances (which ensures you have access)
    1. Enter Invoke-Command -Session $s -ScriptBlock {get-spserviceinstance}
       
  7. To attempt to use the PS Session to ensure connectivity between the two machines
    1. Enter Enter-PSSession -session $s
    2. You will now see the server(s) name in [ ] PS: c:\users\someuser\documents (Example: [sp2013-app.fabrikaminc.local]: PS C:\Users\adamb\Documents>)

       

 

  • No labels