[Android General] jwulf1092:
How I created my batch file to run commands in windows, for Minimal ADB and Fastboot

LG V30 Just factory defaulted.

Here is a snipit of the text I used to create my windows batch file for Minimal ADB and Fastboot, to give app freezer by MobizSystems, owner permissions and then to disable 1 program I can't uninstall, and then to uninstall a bunch of programs from the current user.

This batch file is run AFTER installing app freezer, then uninstalling my google account (can't apply owner permissions if there is an account installed). The pauses are to allow me to to verify each different command ran properly, and to terminate the program if a command is not running properly.

This is NOT meant to be a complete list of programs to uninstall, just a small list to show you how the batch file worked for me.

CD C:\Program Files (x86)\Minimal ADB and Fastboot\

adb devices

pause

adb shell dpm set-device-owner com.wakasoftware.appfreezer/.receiver.DPMReceiver

Pause

adb shell pm disable-user --user0 com.android.calendar

pause

adb shell pm uninstall -k --user 0 com.android.bips

pause

adb shell pm uninstall -k --user 0 com.android.egg

adb shell pm uninstall -k --user 0 com.android.mms

adb shell pm uninstall -k --user 0 com.android.printspooler

adb shell pm uninstall -k --user 0 com.android.settingsaccessibility

adb shell pm uninstall -k --user 0 com.android.vpndialogs

adb shell pm uninstall -k --user 0 com.facebook.system

adb shell pm uninstall -k --user 0 com.google.android.feedback

adb shell pm uninstall -k --user 0 com.google.android.marvin.talkback

adb shell pm uninstall -k --user 0 com.google.android.printservice.recommendation

adb shell pm uninstall -k --user 0 com.google.android.apps.cloudprint

adb shell pm uninstall -k --user 0 com.ipsec.vpnclient

adb shell pm uninstall -k --user 0 com.ipsec.profile

adb shell pm uninstall -k --user 0 com.ipsec.service

adb shell pm uninstall -k --user 0 com.lge.clock

adb shell pm uninstall -k --user 0 com.lge.cloudhub

adb shell pm uninstall -k --user 0 com.lge.easyhome

adb shell pm uninstall -k --user 0 com.lge.exchange

adb shell pm uninstall -k --user 0 com.lge.floatingbar

adb shell pm uninstall -k --user 0 com.lge.fmradio

adb shell pm uninstall -k --user 0 com.lge.gallery.aodimagewidget

adb shell pm uninstall -k --user 0 com.lge.gallery.collagewallpaper

adb shell pm uninstall -k --user 0 com.lge.gametuner

adb shell pm uninstall -k --user 0 com.lge.gestureanswering

adb shell pm uninstall -k --user 0 com.lge.jansky.service

adb shell pm uninstall -k --user 0 com.lge.jansky.settings

adb shell pm uninstall -k --user 0 com.lge.lgaccount

adb shell pm uninstall -k --user 0 com.lge.provider.signboard

adb shell pm uninstall -k --user 0 com.lge.qhelp

adb shell pm uninstall -k --user 0 com.lge.remote.setting

adb shell pm uninstall -k --user 0 com.lge.signboard

adb shell pm uninstall -k --user 0 com.lge.signboard.settings

adb shell pm uninstall -k --user 0 com.lge.snappage

adb shell pm uninstall -k --user 0 com.lge.sync

adb shell pm uninstall -k --user 0 com.lge.wallpaper.lightwave

adb shell pm uninstall -k --user 0 com.lge.wallpaper.nightsky

adb shell pm uninstall -k --user 0 com.lge.wifi.p2p

adb shell pm uninstall -k --user 0 com.lge.video.vr.wallpaper

adb shell pm uninstall -k --user 0 com.tmobile.services.nameid