| Author |
Topic  |
|
|
mitachu
Honorable But Hopeless Addict
    
United Kingdom
1947 Posts
Status: offline |
Posted - 06/07/2012 : 06:13:11 AM
|
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
|
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. |
 |
|
|
mitachu
Honorable But Hopeless Addict
    
United Kingdom
1947 Posts
Status: offline |
Posted - 06/08/2012 : 07:10:11 AM
|
I'll certainly take a look at doing that.
|
Tim |
 |
|
|
JeffWouters
Here To Stay
 
Netherlands
147 Posts
Status: offline |
Posted - 07/09/2012 : 09:34:15 AM
|
Hi Tim, Any updates on this one? Jeff. |
Greetsz, Jeff. |
 |
|
|
mitachu
Honorable But Hopeless Addict
    
United Kingdom
1947 Posts
Status: offline |
Posted - 07/16/2012 : 09:52:37 AM
|
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 |
 |
|
|
Playwell
Honorable But Hopeless Addict
    
Netherlands
4821 Posts
Status: offline |
Posted - 07/16/2012 : 10:57:12 AM
|
| 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

|
 |
|
|
Mark Minasi
Chief cook and bottle washer
    
USA
10658 Posts
Status: offline |
Posted - 07/16/2012 : 10:16:11 PM
|
| wbadmin get status is pretty useful sometimes. |
Mark tweetin' at mminasi |
 |
|
|
mitachu
Honorable But Hopeless Addict
    
United Kingdom
1947 Posts
Status: offline |
Posted - 07/17/2012 : 08:12:51 AM
|
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 |
 |
|
|
mitachu
Honorable But Hopeless Addict
    
United Kingdom
1947 Posts
Status: offline |
Posted - 10/05/2012 : 03:51:13 AM
|
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 |
 |
|
| |
Topic  |
|