MarekWinicjuszKapusta / 20h2

0 stars 0 forks source link

20h2 #1

Open MarekWinicjuszKapusta opened 2 years ago

MarekWinicjuszKapusta commented 2 years ago

BEFOREIPU.PS1 makes a backup of drivers etc

prepare drives copy

New-Item -Path 'C:\TempMobilityIssues' -ItemType Directory Export-Win xcopy \st1pwscc630\scp$\Applications\Core\NetMotion\12.10_x64\media*.* "c:\TempMobilityIssues\netmotion12.10" /I/E/V/Y

xcopy #\st1pwscc630\g$\SCCM_Source\Applications\NETM\SCCM_NEMO_MUC_NETMOTIONMOBILITYCLIENT_11.70.07909_X64_4_E#\0058\V1_R1\PKG*.* "c:\TempMobilityIssues\netmotion11.70" /I/E/V

Setup GPO on devices where needed to run afteripu.ps1 when the device is run

AFTERIPU.PS1 checking version if 20h2 is installed – force to reinstall , all drivers before ipu + some actions related to netmotion

$winver=[environment]::OSVersion.Version if ($winver.build -eq '18363'){ echo 'do nothing no 20h2 '} else{

install drivers

Set-Location c:\TempMobilityIssues\
Get-ChildItem *.inf -recurse | ForEach-Object { pnputil /i /a $PSItem.FullName }
set-location C:\windows\system32\DriverStore\FileRepository
$oem = Get-childitem -recurse | select-string “oem65.--" -list
if($oem -ne $null){
    cd c:\TempMobilityIssues\
    Get-ChildItem *.inf -recurse | ForEach-Object { pnputil /i /a $PSItem.FullName }
    #uninstallation of Netmotion
    $WMI = Get-WmiObject win32_product -Filter "name = 'NetMotion Mobility Client'"
    $WMI.uninstall()
}

}

------------------------------------------------------------------------

installation of netmotion

msiexec /i Mobility_xg_client_12.10_Win10_x64_release.msi TRANSFORM=NetMotion_NetMotionMobilityClient_12.10.12166_x64_1.mst /qn NM_OPTIONS=.\options.inf /L*V

MariuszSzwaracki commented 2 years ago

Hello