Jump to content


  • 0
Coffee_muff

Unsupported Hardware Error\Warning

Question

Hello All,

I am working on a TaskSequence for a client where client wats to add a step in task sequence to show a warning for an unsupported hardware.

I have added a query to eg:- Select * FROM Win32_ComputerSystem WHERE Model Like"%Latitude 7070%" if true then execute TS.

I am not sure how to add the Error\Warning, I need it to look like the screenshot below and then it should end the TS.

image.png.e3eb98a8516e625f56fd692feb629c3e.png

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
$model=(Get-WmiObject Win32_ComputerSystem | Where-Object {$_.Model -like  "*Latitude 7070*"}).model
 
if($model -match 'Latitude 7070'){}else{
 
$TSEnv = New-Object -COMObject Microsoft.SMS.TSEnvironment
$TSProgressUI = new-object -comobject Microsoft.SMS.TSProgressUI
$TSProgressUI.CloseProgressDialog()
 
$a = new-object -comobject wscript.shell 
$intAnswer = $a.popup("The current computer hardware does not match ",0,'computer',16#first number is timeout, second is display.   
 
}
 
Add a running script step in the task sequence, use this command to pop up a gui notification message

通知提醒.png

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.