# accessing sharepoint cmdlets from member server

**URL:** https://forums.powershell.org/t/accessing-sharepoint-cmdlets-from-member-server/2996
**Category:** PowerShell Help
**Created:** [August 20, 2014, 12:33am UTC](https://forums.powershell.org/t/accessing-sharepoint-cmdlets-from-member-server/2996 "2014-08-20T00:33:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![windows-liveuser34](https://avatars.discourse-cdn.com/v4/letter/w/ad7895/32.png) [@windows-liveuser34](https://forums.powershell.org/u/windows-liveuser34)
#### Post date: [August 20, 2014, 12:33am UTC](https://forums.powershell.org/t/accessing-sharepoint-cmdlets-from-member-server/2996/1 "2014-08-20T00:33:22Z")

</div>

Good Morning,  
I need to access the sharepoint cmdlets from a management server.  
I have created a new-possession between the management server and the sharepoint server $g = new-possession -cn xxx -authentication credssp -cred $cred-- have enabled wsmancredssp on each machine client on management server and sharepoint has server  
I have added the Microsoft.sharepoint.powershell snapin (invoke-command -session $g -scriptblock {add-pssnapin -name Microsoft.sharepoint.powershell}  
in addition check with the get-pssnapin to verify it is there (get-pssnapin -name Microsoft.sharepoint.powershell -registered) returns that is there  
then try invoke-command -session $g -scriptblock {get-spweb [https://mcs.xxxxx.sgn](https://mcs.xxxxx.sgn)}  
error back is that get-spweb is not a name of a cmdlet etc…  
any ideas

---

<div class="post-metadata">

### Author: ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)
#### Post date: [August 20, 2014, 2:31am UTC](https://forums.powershell.org/t/accessing-sharepoint-cmdlets-from-member-server/2996/2 "2014-08-20T02:31:38Z")

</div>

Can you try performing the same tasks - loading the snapin, verifying it, and then attempting to run the command - by using Enter-PSSession to interactively connect to the server? That would be a good troubleshooting step. Do any other SharePoint commands load, or does it appear as if they are all unavailable?

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 8:47pm UTC](https://forums.powershell.org/t/accessing-sharepoint-cmdlets-from-member-server/2996/3 "2024-05-16T20:47:40Z")

</div>


