'Get-WBJob' and 'Get-WBSummary' unrecognised commandsRun PowerShell script within a maintenance plannet file...

Grepping string, but include all non-blank lines following each grep match

Review your own paper in Mathematics

Check if object is null and return null

Can I say "fingers" when referring to toes?

Can I run 125kHz RF circuit on a breadboard?

Is there anyway, I can have two passwords for my wi-fi

Is there a way to play vibrato on the piano?

What (the heck) is a Super Worm Equinox Moon?

Pre-Employment Background Check With Consent For Future Checks

How do I prevent inappropriate ads from appearing in my game?

If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?

How to make a list of partial sums using forEach

What is the smallest number n> 5 so that 5 ^ n ends with "3125"?

What is the meaning of "You've never met a graph you didn't like?"

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

Make a Bowl of Alphabet Soup

Limit max CPU usage SQL SERVER with WSRM

How much do grades matter for a future academia position?

Echo with obfuscation

I'm just a whisper. Who am I?

Showing mass murder in a kid's book

Quoting Keynes in a lecture

Difference between shutdown options

Is there a RAID 0 Equivalent for RAM?



'Get-WBJob' and 'Get-WBSummary' unrecognised commands


Run PowerShell script within a maintenance plannet file for admin drivenet filePowershell (sqlps) lastbackupdate not changing despite having run a sqlserver backupSchtasks — what is wrong with the following commandPowerShell Snap-In for IIS 7.0 IIsProviderSnapIn vs WebAdministrationPowershell script runs in an infinite loop when executed a certain wayGet-MaskingSet in PowerShell 2.0How to install and use Windows Assessment and Deployment SDK on Windows Server 2008 R2?how to get a single value of a policy on a remote computer via POWERSHELLpowershell AD module wont work over pssession unless credentials provided explicitly













1















I am using a script that is set to run every morning read if teh last backup failed or completed and then puts it into a html page. This works fine on all of our 2012/2012R2 servers using the



Get-WBJob


and



Get-WBSummary


commands but this doesn't work on server 2008 Is there any alternative for those commands on this server version or is syntax slightly different? Please see below for relevant parts of the script. The 2008 server is also running version 2.0 of powershell



$WBJob = Get-WBJob
$WBSummary = Get-WBSummary
$WBErrorMsg = $WBJob.ErrorDescription + "'n" + $WBSummary.DetailedMessage
$WBResult = $WBSummary.LastBackupResultHR









share|improve this question














bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Did you load/install the module that contains these cmdlets?

    – Colyn1337
    Feb 21 '17 at 14:45











  • sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

    – xjacksssss
    Feb 22 '17 at 10:08
















1















I am using a script that is set to run every morning read if teh last backup failed or completed and then puts it into a html page. This works fine on all of our 2012/2012R2 servers using the



Get-WBJob


and



Get-WBSummary


commands but this doesn't work on server 2008 Is there any alternative for those commands on this server version or is syntax slightly different? Please see below for relevant parts of the script. The 2008 server is also running version 2.0 of powershell



$WBJob = Get-WBJob
$WBSummary = Get-WBSummary
$WBErrorMsg = $WBJob.ErrorDescription + "'n" + $WBSummary.DetailedMessage
$WBResult = $WBSummary.LastBackupResultHR









share|improve this question














bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Did you load/install the module that contains these cmdlets?

    – Colyn1337
    Feb 21 '17 at 14:45











  • sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

    – xjacksssss
    Feb 22 '17 at 10:08














1












1








1








I am using a script that is set to run every morning read if teh last backup failed or completed and then puts it into a html page. This works fine on all of our 2012/2012R2 servers using the



Get-WBJob


and



Get-WBSummary


commands but this doesn't work on server 2008 Is there any alternative for those commands on this server version or is syntax slightly different? Please see below for relevant parts of the script. The 2008 server is also running version 2.0 of powershell



$WBJob = Get-WBJob
$WBSummary = Get-WBSummary
$WBErrorMsg = $WBJob.ErrorDescription + "'n" + $WBSummary.DetailedMessage
$WBResult = $WBSummary.LastBackupResultHR









share|improve this question














I am using a script that is set to run every morning read if teh last backup failed or completed and then puts it into a html page. This works fine on all of our 2012/2012R2 servers using the



Get-WBJob


and



Get-WBSummary


commands but this doesn't work on server 2008 Is there any alternative for those commands on this server version or is syntax slightly different? Please see below for relevant parts of the script. The 2008 server is also running version 2.0 of powershell



$WBJob = Get-WBJob
$WBSummary = Get-WBSummary
$WBErrorMsg = $WBJob.ErrorDescription + "'n" + $WBSummary.DetailedMessage
$WBResult = $WBSummary.LastBackupResultHR






windows-server-2008 powershell






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 '17 at 14:42









xjacksssssxjacksssss

135




135





bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Did you load/install the module that contains these cmdlets?

    – Colyn1337
    Feb 21 '17 at 14:45











  • sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

    – xjacksssss
    Feb 22 '17 at 10:08



















  • Did you load/install the module that contains these cmdlets?

    – Colyn1337
    Feb 21 '17 at 14:45











  • sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

    – xjacksssss
    Feb 22 '17 at 10:08

















Did you load/install the module that contains these cmdlets?

– Colyn1337
Feb 21 '17 at 14:45





Did you load/install the module that contains these cmdlets?

– Colyn1337
Feb 21 '17 at 14:45













sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

– xjacksssss
Feb 22 '17 at 10:08





sorry yes i did i simply forgot to include it. At the beginning of the script i have this to load the PSSnapin 'Add-PSSnapin Windows.ServerBackup -ErrorAction SilentlyContinue'

– xjacksssss
Feb 22 '17 at 10:08










1 Answer
1






active

oldest

votes


















0














On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx




In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.







share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f833944%2fget-wbjob-and-get-wbsummary-unrecognised-commands%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx




    In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.







    share|improve this answer




























      0














      On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx




      In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.







      share|improve this answer


























        0












        0








        0







        On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx




        In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.







        share|improve this answer













        On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx




        In the Add Features Wizard, on the Select Features page, expand Windows Server Backup Features, and then select the check boxes for Windows Server Backup and Command-line Tools.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 23 '17 at 10:46









        Deadly-BagelDeadly-Bagel

        1414




        1414






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f833944%2fget-wbjob-and-get-wbsummary-unrecognised-commands%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...