Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 HALP! Questions on Windows and Windows Server
 PowerShell
 Get-WBSummary not doing...... anything
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 06/07/2012 :  06:13:11 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
OK, so I've got a 2008 server where I'm trying to get some information about the Windows Server Backup job that runs on it each night.

I'm doing:

Add-PSSnapin Windows.ServerBackup
Get-WBSummary

The first line works, the second is accepted but doesn't produce any output whatsoever. No info, no errors, nothing. I just get the powershell prompt.

This server has been rebooted recently and is up to date with patches. The only thing I can think that's upsetting things is that the backup job is triggered via a batch file that starts wbadmin and backs data up to a UNC path. The results of the job are visible within the Windows Server Backup GUI though.

Anyone got any idea?

Tim

JeffWouters
Here To Stay

Netherlands
147 Posts
Status: offline

Posted - 06/07/2012 :  1:28:15 PM  Show Profile  Visit JeffWouters's Homepage  Click to see JeffWouters's MSN Messenger address  Look at the Skype address for JeffWouters  Reply with Quote
Do you see the command if you do: Get-Command -verb get | where {$_.ModuleName -eq "Windows.ServerBackup"} ?

Even if you trigger the backup without using PowerShell, you should still be able to get the summary since PowerShell asks the system for the information...
Do the following commands also provide no feedback?
Get-WBPolicy
Get-WBSchedule

Since the information is available through the GUI, I'm thinking it may be a solution/workaround to remove the backup command line tools feature (server manager or powershell) and re-add them.

Greetsz,
Jeff.
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 06/08/2012 :  07:10:11 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
I'll certainly take a look at doing that.

Tim
Go to Top of Page

JeffWouters
Here To Stay

Netherlands
147 Posts
Status: offline

Posted - 07/09/2012 :  09:34:15 AM  Show Profile  Visit JeffWouters's Homepage  Click to see JeffWouters's MSN Messenger address  Look at the Skype address for JeffWouters  Reply with Quote
Hi Tim,
Any updates on this one?
Jeff.

Greetsz,
Jeff.
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 07/16/2012 :  09:52:37 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
PS C:\Users\Administrator.EASTLODGE> Get-Command -verb get | where {$_.ModuleName -eq "Windows.ServerBackup"}

CommandType Name Definition
----------- ---- ----------
Cmdlet Get-WBBackupTarget Get-WBBackupTarget -Policy <WBPolicy> [-Verbose]...
Cmdlet Get-WBDisk Get-WBDisk [-Verbose] [-Debug] [-ErrorAction <Ac...
Cmdlet Get-WBPolicy Get-WBPolicy [-Editable] [-Verbose] [-Debug] [-E...
Cmdlet Get-WBSchedule Get-WBSchedule [-Policy] <WBPolicy> [-Verbose] [...
Cmdlet Get-WBSummary Get-WBSummary [-Verbose] [-Debug] [-ErrorAction ...
Cmdlet Get-WBVolume Get-WBVolume [-Disk] <WBDisk> [-Verbose] [-Debug...





PS C:\Users\Administrator.EASTLODGE> get-wbschedule

cmdlet Get-WBSchedule at command pipeline position 1
Supply values for the following parameters:
Policy:



PS C:\Users\Administrator.EASTLODGE> get-wbpolicy
PS C:\Users\Administrator.EASTLODGE>


Tim
Go to Top of Page

Playwell
Honorable But Hopeless Addict

Netherlands
4821 Posts
Status: offline

Posted - 07/16/2012 :  10:57:12 AM  Show Profile  Visit Playwell's Homepage  Click to see Playwell's MSN Messenger address  Reply with Quote
Should there be a wbpolicy?

'People who think they know everything are a great annoyance to those of us who do. '
Quote by Isaac Asimov


Go to Top of Page

Mark Minasi
Chief cook and bottle washer

USA
10658 Posts
Status: offline

Posted - 07/16/2012 :  10:16:11 PM  Show Profile  Visit Mark Minasi's Homepage  Reply with Quote
wbadmin get status is pretty useful sometimes.

Mark
tweetin' at mminasi
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 07/17/2012 :  08:12:51 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
PS C:\Users\Administrator.EASTLODGE> wbadmin get status
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.


ERROR - No job is currently running.

PS C:\Users\Administrator.EASTLODGE>

Tim
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/05/2012 :  03:51:13 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
Well this is odd. I found this same problem on a different server, running SBS 2011 this time, and got it working by double clicking the PS1 file in Explorer. That ran the script fine. I then went back into Powershell x64 and ran the command again, and it worked fine. Bizarre!!?

Tim
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000