Skip to content

issue with Powershell script in Task Sequence (output)

Featured Replies

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

 

 

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 ?

  • Author

What I want in my TS, is to run my PS and it should display it in my Collection as Value and can see there the Result.

Have you any Idea how I can realize it?

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.