Install a software based on manufacture

JamallT

New Member
Messages
3
Reaction score
0
Hi,

Is it possible to have image setup to install software based of manufacture? For example, I have dell and Lenovo machines. If a dell is detected install dell command update and skip Lenovo system update and vice versa. I'd rather maintains one image instead of having 2.
 
NTLite won't do this natively, you would have to write and install a Post-Setup script which checks the vendor & model name for each PC, and executes a set of wrapper scripts that install whatever per-model tools as necessary.

In the old days, someone would have used WMIC to get the vendor & model details, but WMIC is going away. You could use a PowerShell script to gather the equivalent details.

Something like:
Code:
$System = Get-CimInstance -ClassName Win32_ComputerSystem

switch ($System.Manufacturer) {
    'DELL' {
        switch ($System.Model) {
            'XPS 8930' {
                & \path\some\xps8930.bat
            }

        default {
            # Fallback to unknown Dell model
            & \path\some\dell.bat
        }
    }

    'LENOVO' {
        switch ($System.Model) {
            '20378' {
                # Lenovo Y50-70
                & \path\some\Y50-70.bat
            }

            default {
                # Fallback to unknown Lenovo model
                & \path\some\Lenovo.bat
            }
        }
    }

    default {
        # Fallback to unknown PC brand
        & \path\some\generic.bat
    }
}

You can make a "\sources\$OEM$\$1" folder which holds all of the script files and per-model tools in subfolders.
 
Back
Top