none
Design a VB script according to the powershell script RRS feed

  • Question

  • Hi All,

    Could someone please help me to design a vb script according to the powershell script below.

    #Get Model Name
    $model=Get-WmiObject -Namespace root\cimv2 -Class win32_COMPUTERSYSTEMPRODUCT 
    #Disable AMT on ThinkPad X200
    if($model.Version -like "*x200*")
    {
    (gwmi -class Lenovo_SetBiosSetting –namespace root\wmi).SetBiosSetting("AMTControl,Disable,Password,ascii,us")
    (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).SaveBiosSettings("Password,ascii,us”)
    }
    # Disable AMT on Thinkpad x201
    if($model.Version -like "*x201*")
    {
    (gwmi -class Lenovo_SetBiosSetting –namespace root\wmi).SetBiosSetting("AMTControl,Disable, Password,ascii,us")
    (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).SaveBiosSettings("Password,ascii,us”)
    }
    # Disable AMT on ThinkPad X230
    if($model.Version -eq "ThinkPad X230")
    {
    (gwmi -class Lenovo_SetBiosSetting –namespace root\wmi).SetBiosSetting("AMTControl,Disable, Password,ascii,us")
    (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).SaveBiosSettings("Password,ascii,us”)
    }

    • Moved by Bill_Stewart Monday, September 11, 2017 3:44 PM This is not "scripts on demand"
    Monday, July 17, 2017 3:31 PM

All replies