Jump to content


  • 0
keywan

issue with Powershell script in Task Sequence (output)

Question

Hi,

I have Power Shell script a want to run in simply Task Sequence. the script should be output to file or to a output to a task sequence variable.

image.png.7334a40047b8e7b03704c5c928a3e8f8.png

my Collection

image.png.908ca135d1566e04673e6477f1c44557.png

What I want, it should show the result or the output of my PS script here on the Collection. Is there any way to do that?

Regards

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

when you create a custom variable in the collection, you assign a value to it, eg:

 

CheckOutput = 100

 

In your task sequence, you CHECK for the value of the CheckOutput variable and act accordingly. For example you can have a step or group that checks if CheckOutput = 100 and if so it runs, if not, it does not run that step or group. Does that make sense ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.