Skip to content

Unsupported Hardware Error\Warning

Featured Replies

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

$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

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.