Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


xtremee

[?] Powershell script feed from other output script

Recommended Posts

Hi all,

 

Is it possible to create a powershell script that check the output of another script for a certain generated text/ID and depend on it carry on a new task depend on the founded value?

Share this post


Link to post
Share on other sites

No…

 

…not unless you learn to post your question in the appropriate location on the forum and include pertinent detail to enable interested parties to attempt to help you!

Share this post


Link to post
Share on other sites

@  Yzöwl

sorry for posting in a wrong forum. I actually don't know where to post my question.

 

@ Tripredacus

One script!

Sound interesting. How can I do so?

Share this post


Link to post
Share on other sites

The script which is generating the output text/ID may be able3 to be expanded to incorporate the new requirement or be re-written to merge both tasks into a single new script.

Share this post


Link to post
Share on other sites

Because I'm feeling generous, you're going to be offered one more chance…

 

Either post the script you are using and a full explanation of its output and your intentions for its expansion into powershell or I close the Topic and any further Topics you open with the same inane ramblings.

Share this post


Link to post
Share on other sites

Actually I do not have any script right now. I have the idea and I am asking about how this can be done in PowerShell. I do know the commands that I should use to carry on such a sequence...

Share this post


Link to post
Share on other sites

Easy method write the value to a registry key or temp file, then program your second script where to look.

 

Share this post


Link to post
Share on other sites

guys my problem is:

1. Can I use PowerShell to create such a script?

2. If yes, then which commands should I use to do so?

Share this post


Link to post
Share on other sites

We can't do all the work for you, but maybe point into some directions. For example, the answer to your initial question is that instead of using 2 scripts, use one. With one you can read and store data in a variable to be used in another function.

Some links you can check out:

http://technet.microsoft.com/en-us/library/dd315394.aspx

http://www.powershellpro.com/powershell-tutorial-introduction/variables-arrays-hashes/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×