SHARE
TWEET

Win10 Prep

david62277 May 6th, 2016 (edited) 1,168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2. This is a script I wrote that will clean up a Windows 10 image of all the Microsoft bloat that can be removed/disabled.  Read through the whole thing and understand what this script is doing.  Read comments marked with "####"
  3. I use shorthand so this is what these mean when you see them
  4. sp = set-property = sets registry values
  5. rp = remove-property = removes registry values
  6. ri = remove item = removes files/folders/registry keys
  7. #>
  8.  
  9. #### make sure you allow scripts to run through group policy, or with the following commands
  10. #### set-executionpolicy unrestricted -scope localmachine
  11. #### set-executionpolicy unrestricted -scope currentuser
  12.  
  13. #### enable winrm (remote management)
  14. & winrm quickconfig -quiet
  15.  
  16. #### list of default applications to remove
  17. $rapps = @(
  18. "Microsoft.3DBuilder"
  19. "Microsoft.BingFinance"
  20. "Microsoft.BingNews"
  21. "Microsoft.BingSports"
  22. "Microsoft.BingWeather"
  23. "Microsoft.Getstarted"
  24. "Microsoft.MicrosoftOfficeHub"
  25. "Microsoft.MicrosoftSolitaireCollection"
  26. "Microsoft.Office.OneNote"
  27. "Microsoft.People"
  28. "Microsoft.SkypeApp"
  29. "Microsoft.Windows.Photos"
  30. "Microsoft.WindowsCamera"
  31. "microsoft.windowscommunicationsapps"
  32. "Microsoft.WindowsMaps"
  33. "Microsoft.WindowsPhone"
  34. "Microsoft.WindowsSoundRecorder"
  35. "Microsoft.WindowsStore"
  36. "Microsoft.XboxApp"
  37. "Microsoft.ZuneMusic"
  38. "Microsoft.ZuneVideo"
  39. )
  40.  
  41. #### list of services to disable
  42. $dsvcs = @(
  43. "BITS"
  44. "DeviceAssociationService"
  45. "DPS"
  46. "WdiServiceHost"
  47. "WdiSystemHost"
  48. "DiagTrack"
  49. "fdPHost"
  50. "HomeGroupProvider"
  51. "HomeGroupListener"
  52. "wscsvc"
  53. "ShellHWDetection"
  54. "SSDPSRV"
  55. "SysMain"
  56. "wcncsvc"
  57. "AJRouter"
  58. "ALG"
  59. "BDESVC"
  60. "BthHFSrv"
  61. "bthserv"
  62. "PeerDistSvc"
  63. "EFS"
  64. "Fax"
  65. "SharedAccess"
  66. "CscService"
  67. "defragsvc"
  68. "RetailDemo"
  69. "SensrSvc"
  70. "upnphost"
  71. "WerSvc"
  72. "WMPNetworkSvc"
  73. "WbioSrvc"
  74. "wuauserv"
  75. "WlanSvc"
  76. "WwanSvc"
  77. "XblAuthManager"
  78. "XblGameSave"
  79. "XboxNetApiSvc"
  80. )
  81.  
  82. #### list of scheduled tasks to disable
  83. $dtasks = "`"taskpath`",`"taskname`"
  84. `"\Microsoft\Windows\Application Experience\`",`"Microsoft Compatibility Appraiser`"
  85. `"\Microsoft\Windows\Application Experience\`",`"ProgramDataUpdater`"
  86. `"\Microsoft\Windows\Application Experience\`",`"StartupAppTask`"
  87. `"\Microsoft\Windows\Autochk\`",`"Proxy`"
  88. `"\Microsoft\Windows\Customer Experience Improvement Program\`",`"Consolidator`"
  89. `"\Microsoft\Windows\Customer Experience Improvement Program\`",`"KernelCeipTask`"
  90. `"\Microsoft\Windows\Customer Experience Improvement Program\`",`"Uploader`"
  91. `"\Microsoft\Windows\Customer Experience Improvement Program\`",`"UsbCeip`"
  92. `"\Microsoft\Windows\Shell\`",`"FamilySafetyMonitor`"
  93. `"\Microsoft\Windows\Shell\`",`"FamilySafetyRefresh`"
  94. `"\Microsoft\Windows\Windows Filtering Platform\`",`"BfeOnServiceStartTypeChange`"
  95. `"\Microsoft\Windows\Diagnosis\`",`"Scheduled`"
  96. `"\Microsoft\Windows\DiskDiagnostic\`",`"Microsoft-Windows-DiskDiagnosticDataCollector`"
  97. `"\Microsoft\Windows\DiskDiagnostic\`",`"Microsoft-Windows-DiskDiagnosticResolver`"
  98. `"\Microsoft\Windows\Defrag\`",`"ScheduledDefrag`"
  99. `"\Microsoft\Windows\FileHistory\`",`"File History (maintenance mode)`"
  100. `"\Microsoft\Windows\Maintenance\`",`"WinSAT`"
  101. `"\Microsoft\Windows\MemoryDiagnostic\`",`"ProcessMemoryDiagnosticEvents`"
  102. `"\Microsoft\Windows\MemoryDiagnostic\`",`"RunFullMemoryDiagnostic`"
  103. `"\Microsoft\Windows\Power Efficiency Diagnostics\`",`"AnalyzeSystem`"
  104. `"\Microsoft\Windows\RecoveryEnvironment\`",`"VerifyWinRE`"
  105. `"\Microsoft\Windows\SystemRestore\`",`"SR`"
  106. `"\Microsoft\Windows\WDI\`",`"ResolutionHost`"" | ConvertFrom-Csv
  107.  
  108. #### removes junk applications - you may see some red errors on the screen when this runs - you can ignore them
  109. foreach ($rapp in $rapps) {
  110. Get-AppxPackage $rapp | Remove-AppxPackage | Out-Null
  111. Remove-ProvisionedAppxPackage -Online -PackageName (Get-ProvisionedAppxPackage -Online | ?{$_.DisplayName -eq $rapp}).packagename
  112. }
  113.  
  114. #### stops and disables junk services (BITS is set to Manual)
  115. foreach ($dsvc in $dsvcs) {
  116. if ($dsvc -eq "BITS") {
  117. if ((Get-Service $dsvc).Status -eq "running") {Stop-Service $dsvc}
  118. Set-Service -Name $dsvc -StartupType Manual
  119. } else {
  120. if ((Get-Service $dsvc).Status -eq "running") {Stop-Service $dsvc}
  121. Set-Service -Name $dsvc -StartupType Disabled
  122. }
  123. }
  124.  
  125. #### disables tasks
  126. foreach ($dtask in $dtasks) {
  127. Disable-ScheduledTask -TaskPath $dtask.taskpath -TaskName $dtask.taskname
  128. }
  129. #### Registry Tweaks - ignore any errors due to registry keys not being present for remove-property (rp)
  130. sp HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters -Name DisableTaskOffload -Value 1 -Type DWord
  131. sp HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableFirstLogonAnimation -Value 0 -Type DWord
  132. sp HKLM:\SYSTEM\CurrentControlSet\Control\Windows -Name ErrorMode -Value 2 -Type DWord
  133. sp HKLM:\SOFTWARE\Policies\Microsoft\Windows\System -Name DisableLogonBackgroundImage -Value 1 -Type DWord
  134. sp HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout -Name EnableAutoLayout -Value 0 -Type DWord
  135. sp HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name NoRemoteRecursiveEvents -Value 1 -Type DWord
  136. sp HKLM:\SOFTWARE\Microsoft\SQMClient\Windows -Name CEIPEnable -Value 0 -Type DWord
  137. sp HKLM:\SYSTEM\CurrentControlSet\Control -Name ServicesPipeTimeout -Value 120000 -Type DWord
  138. sp HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell -Name UseActionCenterExperience -Value 0 -Type DWord
  139.  
  140. #### remove junk that can delay logon
  141. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{89B4C1CD-B018-4511-B0A1-5476DBF70820}' -Name StubPath
  142. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{2C7339CF-2B09-4501-B3F3-F3508C9228ED}' -Name StubPath
  143. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}' -Name StubPath
  144. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{6BF52A52-394A-11d3-B153-00C04F79FAA6}' -Name StubPath
  145. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4340}' -Name StubPath
  146. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4383}' -Name StubPath
  147. rp 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{22d6f312-b0f6-11d0-94ab-0080c74c7e95}' -Name StubPath
  148. ri 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Recurse -Force
  149. ri 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Recurse -Force
  150.  
  151. #### create keys if they dont exist
  152. if (!(Test-Path HKLM:\SOFTWARE\Policies\Microsoft)) {md HKLM:\SOFTWARE\Policies\Microsoft | Out-Null}
  153. if (!(Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows)) {md HKLM:\SOFTWARE\Policies\Microsoft\Windows | Out-Null}
  154. if (!(Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search')) {md 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' | Out-Null}
  155. if (!(Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Skydrive)) {md HKLM:\SOFTWARE\Policies\Microsoft\Windows\Skydrive | Out-Null}
  156.  
  157. #### disable skydrive - local policy
  158. sp HKLM:\SOFTWARE\Policies\Microsoft\Windows\Skydrive -Name DisableFileSync -Value 1 -Type DWord
  159. sp HKLM:\SOFTWARE\Policies\Microsoft\Windows\Skydrive -Name DisableLibrariesDefaultSaveToSkyDrive -Value 1 -Type DWord
  160. if (!(Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender')) {md 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' | Out-Null}
  161. #### disable windows defender
  162. sp 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name DisableAntiSpyware -Value 1 -Type DWord
  163. #### to disable cortana or not... uncomment the next line if you want her disabled
  164. #### sp 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name AllowCortana -Value 0 -Type DWord
  165.  
  166. #### do not allow search to use location or search the web - next two lines
  167. sp 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name AllowSearchToUseLocation -Value 0 -Type DWord
  168. sp 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name ConnectedSearchUseWeb -Value 0 -Type DWord
  169.  
  170. #### create keys if they dont exist
  171. if (!(Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer')){md 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer' | Out-Null}
  172. if (!(Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main')) {md 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main' | Out-Null}
  173. #### various tweaks
  174. sp 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main' -Name DisableFirstRunCustomize -Value 1 -Type DWord
  175. sp HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name NtfsDisableLastAccessUpdate -Value 1 -Type DWord
  176. sp HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl -Name CrashDumpEnabled -Value 0 -Type DWord
  177. sp HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl -Name LogEvent -Value 0 -Type DWord
  178. sp HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl -Name SendAlert -Value 0 -Type DWord
  179. sp HKLM:\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction -Name Enable -Value N -Type String
  180. sp HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout -Name EnableAutoLayout -Value 0 -Type DWord
  181. sp HKLM:\SYSTEM\CurrentControlSet\Services\disk -Name TimeOutValue -Value 200 -Type DWord
  182. sp 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name ClearPageFileAtShutdown -Value 0 -Type DWord
  183.  
  184. #### this turns off the vmware tools tray - comment out the next line if needed
  185. sp 'HKLM:\SOFTWARE\VMware, Inc.\VMware Tools' -Name ShowTray -Value 0 -Type DWord
  186.  
  187. #### more tweaks in hkcu
  188. sp HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackDocs -Value 0 -Type DWord
  189. sp 'HKCU:\Control Panel\Desktop' -Name MenuShowDelay -Value 120 -Type DWord
  190. if (!(Test-Path HKCU:\SOFTWARE\Microsoft\Feeds)) {md HKCU:\SOFTWARE\Microsoft\Feeds | Out-Null}
  191. sp HKCU:\SOFTWARE\Microsoft\Feeds -Name SyncStatus -Value 0 -Type DWord
  192.  
  193. #### I copy in "transcodedwallpaper.jpg" to the root of C: on my XD image - this sets it for the current user
  194. #### comment out the next line if you dont want to use that
  195. sp 'HKCU:\Control Panel\Desktop' -Name Wallpaper -Value "C:\transcodedwallpaper.jpg" -Type String
  196. sp HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -Value 1 -Type DWord
  197.  
  198. #### editing the default ntuser.dat file!
  199. & reg load HKLM\asdf C:\users\Default\NTUSER.DAT
  200. sp HKLM:\asdf\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackDocs -Value 0 -Type DWord
  201. sp 'HKLM:\asdf\Control Panel\Desktop' -Name MenuShowDelay -Value 120 -Type DWord
  202. if (!(Test-Path HKLM:\asdf\SOFTWARE\Microsoft\Feeds)) {md HKLM:\asdf\SOFTWARE\Microsoft\Feeds | Out-Null}
  203. sp HKLM:\asdf\SOFTWARE\Microsoft\Feeds -Name SyncStatus -Value 0 -Type DWord
  204.  
  205. #### this sets the default wallpaper - comment out/delete the next line if not needed
  206. sp 'HKLM:\asdf\Control Panel\Desktop' -Name Wallpaper -Value "C:\transcodedwallpaper.jpg" -Type String
  207. sp HKLM:\asdf\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -Value 1 -Type DWord
  208. rp HKLM:\asdf\SOFTWARE\Microsoft\Windows\CurrentVersion\Run -Name OneDriveSetup
  209.  
  210. #### wait half a second and unload the default ntuser.dat file - after the script runs be sure that HKLM:\asdf does not exist in the registy
  211. #### if it does - unload the hive
  212. Start-Sleep -m 500
  213. & reg unload HKLM\asdf
  214.  
  215. #### power configuration
  216. & powercfg -change -disk-timeout-ac 0
  217. & powercfg -change -disk-timeout-dc 0
  218. & powercfg -H OFF
  219. & powercfg -change -monitor-timeout-ac 0
  220. & powercfg -change -monitor-timeout-dc 0
  221.  
  222. #### disable restore
  223. Disable-ComputerRestore -Drive c:\
  224.  
  225. #### disable boot logging
  226. & bcdedit /bootdebug off
  227. & bcdedit /debug off
  228. & bcdedit /set bootlog no
  229.  
  230. #### uninstall onedrive
  231. $app = start-process C:\Windows\SysWOW64\OneDriveSetup.exe -ArgumentList "/uninstall" -PassThru
  232. Wait-Process $app.Id
  233.  
  234. #### onedrive registry entries that are needed after uninstalling the app (if these do not exist you get an error when trying to rename files\folders)
  235. if (!(Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}')) {md 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' | Out-Null}
  236. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Attributes -Value 1 -Type DWord
  237. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Category -Value 4 -Type DWord
  238. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name DefinitionFlags -Value 40 -Type DWord
  239. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name LocalRedirectOnly -Value 1 -Type DWord
  240. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Name -Value OneDrive -Type String
  241. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name ParentFolder -Value '{5E6C858F-0E22-4760-9AFE-EA3317B67173}' -Type String
  242. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name ParsingName -Value 'shell:::{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Type String
  243. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name RelativePath -Value OneDrive -Type String
  244. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Icon -Value '%SystemRoot%\system32\imageres.dll,-1040' -Type ExpandString
  245. sp 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name LocalizedName -Value '@%SystemRoot%\System32\SettingSyncCore.dll,-1024' -Type ExpandString
  246. if (!(Test-Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}')) {md 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' | Out-Null}
  247. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Attributes -Value 1 -Type DWord
  248. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Category -Value 4 -Type DWord
  249. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name DefinitionFlags -Value 40 -Type DWord
  250. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name LocalRedirectOnly -Value 1 -Type DWord
  251. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Name -Value OneDrive -Type String
  252. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name ParentFolder -Value '{5E6C858F-0E22-4760-9AFE-EA3317B67173}' -Type String
  253. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name ParsingName -Value 'shell:::{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Type String
  254. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name RelativePath -Value OneDrive -Type String
  255. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name Icon -Value '%SystemRoot%\system32\imageres.dll,-1040' -Type ExpandString
  256. sp 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}' -Name LocalizedName -Value '@%SystemRoot%\System32\SettingSyncCore.dll,-1024' -Type ExpandString
  257.  
  258. New-PSDrive -Name HKCR -PSProvider Registry -Root HKCR | Out-Null
  259. sp 'HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Name 'System.IsPinnedToNameSpaceTree' -Value 0 -Type DWord
  260. Remove-PSDrive -Name HKCR
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top