xtremee Posted October 30, 2014 Share Posted October 30, 2014 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? Link to comment Share on other sites More sharing options...
Yzöwl Posted October 30, 2014 Share Posted October 30, 2014 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! Link to comment Share on other sites More sharing options...
Tripredacus Posted October 30, 2014 Share Posted October 30, 2014 Why have 2 scripts when you can have one? Link to comment Share on other sites More sharing options...
xtremee Posted October 30, 2014 Author Share Posted October 30, 2014 @ 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? Link to comment Share on other sites More sharing options...
Yzöwl Posted October 30, 2014 Share Posted October 30, 2014 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. Link to comment Share on other sites More sharing options...
xtremee Posted October 30, 2014 Author Share Posted October 30, 2014 Sounds great but how to do that so in PowerShell? Link to comment Share on other sites More sharing options...
Yzöwl Posted October 30, 2014 Share Posted October 30, 2014 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. Link to comment Share on other sites More sharing options...
xtremee Posted October 31, 2014 Author Share Posted October 31, 2014 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... Link to comment Share on other sites More sharing options...
MrJinje Posted October 31, 2014 Share Posted October 31, 2014 Easy method write the value to a registry key or temp file, then program your second script where to look. Link to comment Share on other sites More sharing options...
xtremee Posted October 31, 2014 Author Share Posted October 31, 2014 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? Link to comment Share on other sites More sharing options...
Tripredacus Posted October 31, 2014 Share Posted October 31, 2014 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/ Link to comment Share on other sites More sharing options...
xtremee Posted October 31, 2014 Author Share Posted October 31, 2014 Thanks for the links. It will be a great chance to learn more about PowerShell. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now