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 3319200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:47:48+00:00 2026-05-17T22:47:48+00:00

I asked this on ServerFault, but didn’t get any reply’s, I know it’s command

  • 0

I asked this on ServerFault, but didn’t get any reply’s, I know it’s command line, but they should still be able to answer it, anyone here have any idea’s?

I’ve ran the following (task description):

> Add-PsSnapin Microsoft.SharePoint.Powershell
> Backup-SPFarm -Directory E:\Backups -BackupMethod Full

But get this error:

Backup-SPFarm : Object reference not set to an instance of an object.
At line:1 char:14
+ Backup-SPFarm <<<<  -Directory \\SHAREPOINTSERV\Backups -BackupMethod full
    + CategoryInfo          : InvalidData: (Microsoft.Share...mdletBackupFarm:SPCmdletBackupFarm) [Backup-SPFarm], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupFarm

I can backup manually through the Admin site, so all the services/permissions are setup correctly.

I can’t find much helpful info on this does anyone know why I’m getting this error message?

  • running SQL Server 2008 R2 and Win2008 Standard (x64).
  • tried setting the directory to a UNC path and a local path.
  • tried set-executionpolicy ByPass (and RemoteSigned)
  • I’m logged on as a user with enterprise admin security credentials
  • SharePoint & SQL Server are installed on the same machine

Not sure if relevent, but I’m a developer and have never used power-shell before (nor has it been used on this machine before)… so my only guess is there is some sort of pre-requisite that I am supposed to have run or know about?

EDIT:
VERBOSE OUTPUT

PS E:\Backups\Script> Backup-SPFarm -Directory E:\Backups -BackupMethod Full -Verbose
VERBOSE: Leaving BeginProcessing Method of Backup-SPFarm.
VERBOSE: Performing operation "Backup-SPFarm" on Target "SHAREPOINTSERV".
Backup-SPFarm : Object reference not set to an instance of an object.
At line:1 char:14
+ Backup-SPFarm <<<<  -Directory E:\Backups -BackupMethod Full -Verbose
    + CategoryInfo          : InvalidData: (Microsoft.Share...mdletBackupFarm:SPCmdletBackupFarm) [Backup-SPFarm], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupFarm


VERBOSE: Leaving ProcessRecord Method of Backup-SPFarm.
VERBOSE: Leaving EndProcessing Method of Backup-SPFarm.
  • 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-17T22:47:48+00:00Added an answer on May 17, 2026 at 10:47 pm

    Unfortunately, as I suspected this was something simple, but took a long time to work out (thanks to Microsoft’s amazingly useful error message :p )

    I had opened Sharepoint Management Shell before, but as a different user, which meant I did see a vital message that would point me in the right direction…

    When I set up the server, there was no need to log into SQL Server other than to set up the service accounts (I think I logged in as my user, not the enterprise admin) and the enterprise admin didn’t have any SQL Server permissions.

    I suspected the line Add-PsSnapin Microsoft.SharePoint.Powershell hadn’t worked properly, even though it said it did.

    As I was trying to create a powershell script through the powershell editor I never opened Sharepoint Management Shell as the admin user I had logged in as.

    Once I had seen the message in Sharepoint Management Shell, I googled it, and problem solved.

    It would have been nice of Microsoft to display this instead of the object reference message!

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

Sidebar

Related Questions

I asked this question earlier, but I changed the table structure based on recommendations.
I asked this question on the jQueryUI forums, but got no response. I've created
Does anyone have any idea of why this could happen? I have a C
I'm rewording my question so hopefully I can get a better response. I asked
I asked this question yesterday: Compare array of words to a textarea input with
I asked this question two months ago and got nary an answer. In fact
I have a pair of svn repositories which are significantly larger than others. They're
We use Collabnet Subversion and are on version 1.6.2, with FSFS format repository. On
I have just installed a fresh instance of SubText via the Web installer, I
I’m after some thoughts on how people go about calculating database load for the

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.