locked
outputting things RRS feed

  • Question

  • hi

    im writing a script (trying to) that will output success or failure based on a backup script for gpo dns, etc. I cant figure out what i would need to make this work. Esssentially i would like to backup all GPOs in the domain and DNS zones and then send an email stating that it had occurred successfully. Ive had a look around many forums but need some advice on the best way to do something like this. can backup stuff no problem its the output saying yep weve successfully backed up all the gpos in the dolmain/dns zones thats the problem. any help would be massively appreciated.

    cheers

    metatron

    • Moved by Bill_Stewart Thursday, October 9, 2014 1:54 AM This is not "scripts on demand"
    Tuesday, September 2, 2014 1:02 PM

Answers

  • It's not likely that you will find a pre-written script that does everything exactly the way you want. You will need to find examples and make the needed changes. This forum is really for answering specific scripting questions. It's not really a forum where you can post a vague specification and expect others to write all of the code for you.

    That said, there is a script request page here:

    http://gallery.technet.microsoft.com/scriptcenter/site/requests

    However keep in mind that, as with this forum, there is no guarantee that someone will have the time to do it for you.


    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Bill_Stewart Wednesday, September 3, 2014 4:55 PM
    • Marked as answer by Bill_Stewart Thursday, October 9, 2014 1:53 AM
    Tuesday, September 2, 2014 3:43 PM

All replies

  • Use Send-MailMessage


    ¯\_(ツ)_/¯


    • Edited by jrv Tuesday, September 2, 2014 1:19 PM
    Tuesday, September 2, 2014 1:19 PM
  • hello

    yes thats the easy part (,")

    more interested in geting the report out of powershell and into the email body.

    Tuesday, September 2, 2014 2:28 PM
  • hello

    yes thats the easy part (,")

    more interested in geting the report out of powershell and into the email body.


    Just assign it.  What is not working?  We cannot guess at what you are doing.

    ¯\_(ツ)_/¯

    Tuesday, September 2, 2014 2:36 PM
  • It's not likely that you will find a pre-written script that does everything exactly the way you want. You will need to find examples and make the needed changes. This forum is really for answering specific scripting questions. It's not really a forum where you can post a vague specification and expect others to write all of the code for you.

    That said, there is a script request page here:

    http://gallery.technet.microsoft.com/scriptcenter/site/requests

    However keep in mind that, as with this forum, there is no guarantee that someone will have the time to do it for you.


    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Bill_Stewart Wednesday, September 3, 2014 4:55 PM
    • Marked as answer by Bill_Stewart Thursday, October 9, 2014 1:53 AM
    Tuesday, September 2, 2014 3:43 PM
  • fair point. suggestions would be welcome though.  not expecting to be spoon fed. thanks

    Tuesday, September 2, 2014 4:00 PM
  • fair point. suggestions would be welcome though.  not expecting to be spoon fed. thanks

    We have no idea what you are asking.

    Try help for the CmdLet and look at the numerous examples.


    ¯\_(ツ)_/¯

    Tuesday, September 2, 2014 4:04 PM
  • fair point. suggestions would be welcome though.

    That's precisely what sample scripts will give you -- suggestions for how you might be able to accomplish your task.


    -- Bill Stewart [Bill_Stewart]

    Tuesday, September 2, 2014 4:06 PM