Hi thank you for your suggestions. But i already tried those and didnt make a difference. 1.The directory is short, C:\Tool\... 2. I am running Start.cmd as administrator. 3. Checked to update net framework and it says im already on the latest.
I have this odd issue, where when i try to remove stuff from the "System Apps" section, Security Center gets removed for some reason, even though its not on that list? i'm not interested in removing that. im using the latest 11.7 version. Any know why this happens?
Dism based Powershell cmdlets will do this job in a very easy way plus user grid view passthru will work like a charm. pl do some more research & i know you will find a good solution though.
I'm not well versed in scripting, just know a bit of basic command prompt stuff from back in the day, so was easy to just throw together and get it to work.
Expert @RaiyvaN Knows this . he is an Expert in modding Toolkit with a very easy user friendly way. Lots n Lots of thanks to him for being here with us to support us on toolkit . or this : Code: @echo off echo ====================================================== echo -------------- Disable Windows Features -------------- echo ====================================================== Powershell -Command "Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq 'Enabled' } | Out-GridView -PassThru -Title 'Select Windows Optional Features to Disable' | Disable-WindowsOptionalFeature -Online -NoRestart -Verbose" echo ====================================================== echo ------------- Remove Windows Capabilities ------------ echo ====================================================== Powershell -Command "Get-WindowsCapability -Online | Where-Object {$_.State -eq 'Installed' } | Out-GridView -PassThru -Title 'Select Windows Capabilities to Remove' | Remove-WindowsCapability -Online -Verbose" echo ====================================================== echo ------------------ Remove MetroApps ------------------ echo ====================================================== PowerShell -Command "Get-AppXProvisionedPackage -Online | Out-GridView -PassThru -Title 'Remove Windows Apps' | Remove-AppXProvisionedPackage -Online -ErrorAction SilentlyContinue -Verbose" echo ====================================================== echo ------------------ Remove SystemApps ----------------- echo ====================================================== Powershell -Command "Get-AppxPackage -AllUsers | Out-GridView -PassThru -Title 'Remove System Apps' | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue -Verbose" echo ====================================================== pause This script works upon only current Installed OS but not Offline Wim Index.
OFFLINE - [Use with PowerRun Command Prompt] Code: Disable Windows Features: Powershell -Command "Get-WindowsOptionalFeature -Path C:\mount | Where-Object {$_.State -eq 'Enabled' } | Out-GridView -PassThru -Title 'Select Windows Optional Features to Disable' | Disable-WindowsOptionalFeature -Path C:\mount -NoRestart -Verbose" Enable Windows Features: Powershell -Command "Get-WindowsOptionalFeature -Path C:\mount | Where-Object {$_.State -eq 'Disabled' } | Out-GridView -PassThru -Title 'Select Windows Optional Features to Enable' | Enable-WindowsOptionalFeature -Path C:\mount -NoRestart -Verbose" Remove Windows Capabilities: Powershell -Command "Get-WindowsCapability -Path C:\mount | Where-Object {$_.State -eq 'Installed' } | Out-GridView -PassThru -Title 'Select Windows Capabilities to Remove' | Remove-WindowsCapability -Path C:\mount -Verbose" Remove MetroApps: Powershell -Command "Get-AppXProvisionedPackage -Path C:\mount | Out-GridView -PassThru -Title 'Remove Windows Apps' | Remove-AppxProvisionedPackage -Path C:\mount -ErrorAction SilentlyContinue -Verbose" Remove SystemApps: Powershell -Command "Get-ChildItem -Path C:\mount\Windows\SystemApps | Out-GridView -PassThru -Title 'Select SystemApps to Remove' | Remove-Item -Force -Confirm:$False" Remove Regedit SystemApps: Reg Load HKLM\S C:\mount\Windows\System32\config\SOFTWARE Powershell -Command "Get-ChildItem -Path "HKLM:S\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Config" | Out-GridView -PassThru -Title 'Select Configs to Remove' | Remove-Item -Force -Confirm:$False" Reg Unload HKLM\S