October 30, 201411 yr 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?
October 30, 201411 yr 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!
October 30, 201411 yr Author @ Yzöwlsorry for posting in a wrong forum. I actually don't know where to post my question. @ TripredacusOne script!Sound interesting. How can I do so?
October 30, 201411 yr 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.
October 30, 201411 yr 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.
October 31, 201411 yr Author 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...
October 31, 201411 yr Easy method write the value to a registry key or temp file, then program your second script where to look.
October 31, 201411 yr Author 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?
October 31, 201411 yr 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/
October 31, 201411 yr Author Thanks for the links. It will be a great chance to learn more about PowerShell.
Create an account or sign in to comment