Advertisement
bmartindcs

Run debloat with CWA / Powershell Bypass as admin

Oct 23rd, 2019
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.56 KB | None | 0 0
  1.  
  2. Name Used (GB) Free (GB) Provider Root CurrentLocation
  3. ---- --------- --------- -------- ---- ---------------
  4. HKCR Registry HKEY_CLASSES_ROOT
  5. Initiating Sysprep
  6. Removing bloatware apps.
  7. Get-AppxPackage : Access is denied.
  8. Access is denied.
  9. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:42 char:5
  10. + Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $Whit ...
  11. + ~~~~~~~~~~~~~~~~~~~~~~~~~
  12. + CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
  13. + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
  14. xPackageCommand
  15.  
  16. Get-AppxPackage : Access is denied.
  17. Access is denied.
  18. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:44 char:5
  19. + Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $Whit ...
  20. + ~~~~~~~~~~~~~~~~~~~~~~~~~
  21. + CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
  22. + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
  23. xPackageCommand
  24.  
  25. Get-AppxProvisionedPackage : The requested operation requires elevation.
  26. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:45 char:20
  27. + $AppxRemoval = Get-AppxProvisionedPackage -Online | Where-Object ...
  28. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. + CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException
  30. + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageCommand
  31.  
  32. Removing leftover bloatware registry keys.
  33. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y from registry
  34. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0 from registry
  35. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe from registry
  36. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy from registry
  37. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy from registry
  38. Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy from registry
  39. Removing HKCR:\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0 from registry
  40. Removing HKCR:\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y from registry
  41. Removing HKCR:\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0 from registry
  42. Removing HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy from registry
  43. Removing HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy from registry
  44. Removing HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy from registry
  45. Removing HKCR:\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe from registry
  46. Removing HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0 from registry
  47. Removing HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy from registry
  48. Removing HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy from registry
  49. Removing HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy from registry
  50. Removing HKCR:\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0 from registry
  51. Checking to see if any Whitelisted Apps were removed, and if so re-adding them.
  52. Get-AppxPackage : Access is denied.
  53. Access is denied.
  54. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:206 char:10
  55. + If(!(Get-AppxPackage -AllUsers | Select Microsoft.Paint3D, Micros ...
  56. + ~~~~~~~~~~~~~~~~~~~~~~~~~
  57. + CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
  58. + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
  59. xPackageCommand
  60.  
  61. Stopping telemetry, disabling unneccessary scheduled tasks, and preventing bloatware from returning.
  62. HKCR Registry HKEY_CLASSES_ROOT
  63. Disabling Windows Feedback Experience program
  64. Set-ItemProperty : Requested registry access is not allowed.
  65. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:110 char:9
  66. + Set-ItemProperty $Advertising -Name Enabled -Value 0 -Verbose
  67. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH...AdvertisingInfo:String) [Set-ItemProperty], Securit
  69. yException
  70. + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.SetItemPropertyCommand
  71.  
  72. Stopping Cortana from being used as part of your Windows Search Function
  73. Stopping the Windows Feedback Experience program
  74. Adding Registry key to prevent bloatware apps from returning
  75. Setting Mixed Reality Portal value to 0 so that you can uninstall it in Settings
  76. Disabling live tiles
  77. New-ItemProperty : Cannot find path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
  78. because it does not exist.
  79. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:151 char:9
  80. + New-ItemProperty $Live -Name NoTileApplicationNotification -V ...
  81. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  82. + CategoryInfo : ObjectNotFound: (HKCU:\SOFTWARE\...shNotifications:String) [New-ItemProperty], ItemNotFo
  83. undException
  84. + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand
  85.  
  86. Turning off Data Collection
  87. Set-ItemProperty : Requested registry access is not allowed.
  88. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:158 char:9
  89. + Set-ItemProperty $DataCollection -Name AllowTelemetry -Value ...
  90. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  91. + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH...\DataCollection:String) [Set-ItemProperty], Securit
  92. yException
  93. + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.SetItemPropertyCommand
  94.  
  95. Disabling People icon on Taskbar
  96. Disabling suggestions on the Start Menu
  97. Removing CloudStore from registry if it exists
  98. ERROR: A required privilege is not held by the client.
  99.  
  100. Set-ItemProperty : Cannot find path
  101. 'HKU\Default_User\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' because it does not exist.
  102. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:186 char:5
  103. + Set-ItemProperty -Path Registry::HKU\Default_User\SOFTWARE\Micros ...
  104. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  105. + CategoryInfo : ObjectNotFound: (HKU\Default_Use...DeliveryManager:String) [Set-ItemProperty], ItemNotFo
  106. undException
  107. + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
  108.  
  109. Set-ItemProperty : Cannot find path
  110. 'HKU\Default_User\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' because it does not exist.
  111. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:187 char:5
  112. + Set-ItemProperty -Path Registry::HKU\Default_User\SOFTWARE\Micros ...
  113. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. + CategoryInfo : ObjectNotFound: (HKU\Default_Use...DeliveryManager:String) [Set-ItemProperty], ItemNotFo
  115. undException
  116. + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
  117.  
  118. Set-ItemProperty : Cannot find path
  119. 'HKU\Default_User\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' because it does not exist.
  120. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:188 char:5
  121. + Set-ItemProperty -Path Registry::HKU\Default_User\SOFTWARE\Micros ...
  122. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  123. + CategoryInfo : ObjectNotFound: (HKU\Default_Use...DeliveryManager:String) [Set-ItemProperty], ItemNotFo
  124. undException
  125. + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
  126.  
  127. ERROR: A required privilege is not held by the client.
  128.  
  129. Disabling scheduled tasks
  130. Start-Service : Service 'Microsoft Store Install Service (InstallService)' cannot be started due to the following
  131. error: Cannot open InstallService service on computer '.'.
  132. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:232 char:13
  133. + Start-Service -Name InstallService
  134. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  135. + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
  136. ServiceCommandException
  137. + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
  138.  
  139. Set-Service : Service 'Microsoft Store Install Service (InstallService)' cannot be configured due to the following
  140. error: Access is denied
  141. At C:\Users\Lab\AppData\Local\b752f8416e624a0b8ffc067b0dc41742.ps1:233 char:13
  142. + Set-Service -Name InstallService -StartupType Automatic
  143. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  144. + CategoryInfo : PermissionDenied: (System.ServiceProcess.ServiceController:ServiceController) [Set-Servi
  145. ce], ServiceCommandException
  146. + FullyQualifiedErrorId : CouldNotSetService,Microsoft.PowerShell.Commands.SetServiceCommand
  147.  
  148. Finished all tasks.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement