欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

WINDOWS 10安装配置好几个事儿

程序员文章站 2022-07-03 09:34:14
...

一、删除3D对象

新建批处理文件,内容如下:

@echo off
REG DELETE
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\Namespace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f
REG DELETE
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\Namespace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f
exit

保存,右键以管理员身份运行。

二、让windows 10使用图片查看器打开图像

新建注册表文件(.reg),记事本打开文件,输入以下内容:

Windows Registry Editor Version 5.00
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.jpg]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.jpeg]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.gif]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.png]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.bmp]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.tiff]
 @="PhotoViewer.FileAssoc.Tiff"
 ; Change Extension's File Type
 [HKEY_CURRENT_USER\Software\Classes\.ico]
 @="PhotoViewer.FileAssoc.Tiff"

保存,双击运行。在系统设置-默认软件中更改图片打开方式为图片查看器。

三、禁止windows 10自动安装app

  1. 按Win+R打开运行,输入regedit回车打开注册表编辑器;
  2. 展开以下位置:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
    
    在该项下新建名为CloudContent的子项;
  3. 选中CloudContent项,在右侧新建名为DisableWindowsConsumerFeatures的DWORD(32位)值。双击DisableWindowsConsumerFeatures,将其值设置为1,然后保存;
  4. 重启。

四、windows 10删除app

  1. 打开powershell,右键以管理员身份运行;
  2. 删除当前用户中所有已安装app,在powershell中输入:
    Get-AppXPackage | Remove-AppxPackage
    
  3. 如果要卸载所用用户中的应用,可输入下面的命令:
    Get-AppXPackage -AllUsers | Remove-AppxPackage
    
    另外,部分内置应用,比如Cortana,联系支持人员,edge浏览器,windows反馈,设置和搜索无法从系统中删除。

五、office 2016配置安装

从官网下载 office部署工具,解压安装后修改xml文件内容如下:

<Configuration>
<Add SourcePath = "E:\" OfficeClientEdition="64">
		<Product ID = "ProPlusRetail">
			<Language ID = "zh-CN" />
				<ExcludeApp ID = "Access" />
				<ExcludeApp ID = "Groove" />
				<ExcludeApp ID = "InfoPath" />
				<ExcludeApp ID = "Lync" />
				<ExcludeApp ID = "Outlook" />
				<ExcludeApp ID = "Publisher" />
				<ExcludeApp ID = "SharePointDesigner" />
				<ExcludeApp ID = "skypeforbusiness" />
				<ExcludeApp ID = "OneNote" />
				<ExcludeApp ID = "OneDrive" />
		</Product>
</Add>
</Configuration>

打开CMD,在解压文件的当前目录运行:

setup.exe /configure configuration.xml

六、彻底删除onedrive

管理员身份运行批处理文件,文件内容如下:

@ECHO OFF
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
RD "%UserProfile%\OneDrive" /Q /S
RD "%LocalAppData%\Microsoft\OneDrive" /Q /S
RD "%ProgramData%\Microsoft OneDrive" /Q /S
RD "C:\OneDriveTemp" /Q /S
REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
END
相关标签: WINDOWS 10