Jump to content
Sign in to follow this  

If Computer Name Contains.

Recommended Posts

Here is what I want to do, I have a script now to map and connect printers for multiple offices. Each office has a network printer and all are on the main server. We want to do a conditional statement so that if the computer name is 324-B113-1 (and the printer name is 324-B113-Printer) that is will say something like this:

What I need to know how to do is how to make autoit do an IF statement for that it says something like IF @ComputerName contains "324-B113" then run the command to map the printer for that office.

We already have the commands to map the printers, but right now, if I login to a computer in the B112 office (computer name 324-b112-1) it is showing the printers for the entire building! We just want to show printers for that office.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...