Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Script to Check computer name in task sequence

  • Thread starter Thread starter Richard
  • Start date Start date
  • Replies Replies 1
  • Views Views 2K

Richard

Member
Messages
5
Reaction score
1
Points
1
I want to deploy a Wim image to only existing laptops.

The existing laptops have a computer name starting with abcd-1234 and the new devices have a computer name abcdef-1234

So I want to build a task sequence which checks if the computer name matches for example abcd-1234. If it matches then it should continue with the next step in the task sequence loading wim image and if it doesn’t macht then show a message like image already loaded and exit the task sequence

So before deploying anything the task sequence needs to check if the computer name matches

I have found a powershell script which does the check on computer name but have no idea how to combine this with a task sequence

Anyone who can help

I really appreciate if someone could help me with any solution

Every help is more then Welkom
Thank you
 
Back
Top