mrdon03

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Get KB details from EventViewer #288022
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Correction:

    I would like the output like below format.

    Server KB TimeCreated
    ServerA KB12345 xxxxxxxxxxx
    ServerB KB56789 xxxxxxxxxxx

    in reply to: How to put all result in 1 table #285547
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Thanks Rob That works.
    One last question,

    How can I catch the error for this line of code. In case of the one of the server is offline.
    I would like to catch the error for that offline server while continuing the script for the rest of the server in the list.

    in reply to: How do I show everything in the custom table? #282937
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Hi it is working.

    can you explain “2>&1” part ?

     

    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Thanks. It is working now. ūüôā

    in reply to: How to create multiple PSSession to exchange management shell #281849
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Oh, thanks. It’s functioning.
    I tried to add the line below and received error.

    Error: the term format table is not recognized as the name of a cmdlet

     

    in reply to: SelectionColor property not workingin GUI #264494
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Code Updated:

    • This reply was modified 3 months, 1 week ago by mrdon03.
    in reply to: Unable to view output table in RichTextBox #261425
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    First of all, Format-Table is used only to format output in the interactive console session.

    One if the options would be to loop through your $sqlservices object and append/format every value manually using spaces new lines and tabs.

    Another option would be to use RTF (Reach Text Format) codes to generate a table inside reach text box:

    https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxrtfcp/65dfe2df-1b69-43fc-8ebd-21819a7463fb

    Hope that helps.

    Hi Andy

    I came out with below code. I am trying to use the first method u suggest. It is still not working.

    • This reply was modified 3 months, 3 weeks ago by mrdon03.
    • This reply was modified 3 months, 3 weeks ago by grokkit.
    in reply to: Unable to view output table in RichTextBox #261404
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Hi Andy,

    Do you mind showing me example for the first method? loop through $sqlservices object and append/format every value manually using spaces new lines and tabs.

    Thank you

    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Resolved.

    in reply to: Insert your output into textbox form when button is clicked. #259909
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant
    • This reply was modified 3 months, 4 weeks ago by mrdon03.
    in reply to: Insert your output into textbox form when button is clicked. #259585
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Hello mrdon03,

    Try something like this:

    Reference.

    Hope that helps.

    Thanks. Do you know how can i apply the font color as well.
    For example:

    computer is Online – GREEN
    computer is Offline – RED

    • This reply was modified 3 months, 4 weeks ago by mrdon03.
    • This reply was modified 3 months, 4 weeks ago by mrdon03.
    Participant
    Topics: 12
    Replies: 12
    Points: 145
    Rank: Participant

    Code updated:

Viewing 12 posts - 1 through 12 (of 12 total)