Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4021490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:21:29+00:00 2026-05-20T10:21:29+00:00

I am currently writing a Powershell module to provide functions for installing / operating

  • 0

I am currently writing a Powershell module to provide functions for installing / operating SharePoint 2007.
One of my scripts checks the health of SharePoint servers farm.

So I use Remote Powershell : using New-PSSession.
In my Virtualized test farm (Windows server 2003, same domain, same admin…), the New-PSSession cmdlet failed :

enter image description here

After googling it, the only solution I saw was to use the NoMachineProfile option :
That solved my problem.

Now the problem :
I need to use SharePoint object : SPFarm.Local (on all servers)

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
[Microsoft.SharePoint.Administration.SPFarm]::Local

This code works locally (on all servers)
But when I run it remotely (using the NoMachineProfile option), SPFarm.Local is null !

I Suppose (I cannot check it) it is because SharePoint uses some registry values that are not loaded because of the NoMachineProfile option.

So :

1 – Do you think SPFarm.Local is null because of the NoMachineProfile option ?

2 – Do you know how can I solve the first problem without using the -NoMachineProfile option ?

Thx a lot !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:21:30+00:00Added an answer on May 20, 2026 at 10:21 am

    I believe your problem is related to the PowerShell Multi-Hop (Diagram below of what a multi-hop operation is) issue Which was discussed here… PowerShell is not able to perform a multi-hop operation by default, because your credential are not being passed to the next server… Since you are trying to contact different SP servers in the farm from a remote host. I would recommend reading the following blog entry related to multi-hop scenarios and following his instructions to correct your issue.

    Using CredSSP for multi-hop authentication

    http://www.ravichaganti.com/blog/?p=1230

    I know this diagram mentions file server but it’s the same basic principle.

    PowerShell Multi-Hop Diagram

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application that can run PowerShell scripts which I'd like to be
I'm currently writing my bachelor thesis and my university wants a one sided print.
I am currently writing my first Android application and I keep running into references
I am currently writing a quick script in Ruby that goes through all the
I'm currently writing a JNI project where I'm getting the following error log when
I'm currently writing a QuickLook plugin, and I wondering how I can display an
I am currently writing an application that needs to pull data from an XHTML
I'm currently writing a simple cross platform app with Node.js on the server and
I'm currently writing a piece of code that does some searches which returns IDisposable
I'm currently writing a Twitter client for iPhone and need a way to cache

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.