I am very new to PowerShell, but I have been learning. Recently I was wondering if it would be possible to take a txt file with a list of compute names using our naming convention and translate them for each line. What I mean is , if the first character in the name is an L its a laptop, if its a D its a desktop, if the second 3 characters are “ops” then it belongs to ops, if its “deb” it belongs to finance.
I was wanting the script to run and grab the name of the computer and output something like this
Lops504 laptop Ops serial 504
Lops313 laptop Ops serial 313
DDeb505 Desktop finance serial 505
thank you in advance