Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-DriverPackages.ps1 - Handle WMI Query for Lenovo Machines #5

Open
crew05king opened this issue Jun 14, 2017 · 1 comment
Open

Comments

@crew05king
Copy link

crew05king commented Jun 14, 2017

Does it make sense to add something like this to the Get-DriverPackages.ps1 script to handle Lenovo machines since they use a different naming convention for wmic csproduct get name?

If (((Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Vendor) -eq "LENOVO")
        {
            
           $script:Model = (Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Version
        }
        Else
        {

           $script:Model = (Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Name 

        }
@arwidmark
Copy link
Contributor

Yes, it does. I'll check in with Matthew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants