WinchLi
发表于 2024-12-30 09:29
非常实用的技巧
sdwfyzz
发表于 2024-12-30 09:30
向高手学习,感谢分享。
beloved敏
发表于 2024-12-30 09:33
好好学习吧!!!!!
fdsfds680617
发表于 2024-12-30 09:33
程序员大显身手了
qqsxbg
发表于 2024-12-30 09:34
先来一个 我的EDGE设置
Windows Registry Editor Version 5.00
#Microsoft Edge - 策略
#https://learn.microsoft.com/zh-cn/DeployEdge/microsoft-edge-policies#startup-home-page-and-new-tab-page
#企业个人浏览器的策略筛选器
#https://learn.microsoft.com/zh-cn/deployedge/edge-learnmore-personal-browser-policies
#https://admx.help/?Category=EdgeChromium
#https://admx.help/?Category=EdgeChromium&Language=zh-cn
#新选项卡页面布局允许使用的背景类型(1=禁用每日背景图像类型、2=禁用自定义背景图像类型、3=禁用所有背景图像类型)
"NewTabPageAllowedBackgroundTypes"=dword:00000003
#从新选项卡页隐藏默认热门网站 (0显示、1隐藏)
"NewTabPageHideDefaultTopSites"=dword:00000001
#允许新选项卡页上的快速链接 (1允许、0禁止)(网站导航按钮 设置0就变成灰色不可选状态)
"NewTabPageQuickLinksEnabled"=dword:00000001
#新选项卡页上允许/禁止 Microsoft 内容 (1允许、0禁止)(显示信息摘要 设置0就变成灰色不可选状态)
"NewTabPageContentEnabled"=dword:00000001
#首次运行体验和初始屏幕 (1禁用、0启用)
"HideFirstRunExperience"=dword:00000001
#允许通知EDGE设置为默认PDF阅读器 (0禁用、1启用)
"ShowPDFDefaultRecommendationsEnabled"=dword:00000000
#启动EDGE时 检测EDGE是否设置为默认浏览器 (0禁用、1启用)
"DefaultBrowserSettingEnabled"=dword:00000000
#Windows启动时启动EDGE搜索栏 (1禁用、0启用)
"WebWidgetIsEnabledOnStartup"=dword:00000000
#在关闭具有多个选项卡的浏览器窗口之前获取用户确认
"AskBeforeCloseEnabled"=dword:00000001
#Microsoft Edge 中的双击功能(仅在中国可用)
"DoubleClickCloseTabEnabled"=dword:00000001
#工具栏上的“显示下载”按钮
"ShowDownloadsToolbarButton"=dword:00000001
#在工具栏上显示“主页”按钮
"ShowHomeButton"=dword:00000001
#启用“显示密码”按钮
"PasswordRevealEnabled"=dword:00000001
##适用于Microsoft Edge的SmartScreen
@=dword:00000001
#阻止可能不需要的应用
@=dword:00000001
#禁止侧边栏发现按钮
#
#"HubsSidebarEnabled"=dword:00000000
#禁止工具栏主页按钮
#
#"ShowHomeButton"=dword:00000000
#禁止冲浪游戏
"AllowSurfGame"=dword:00000000
#禁止玩家模式
"GamerModeEnabled"=dword:00000000
#禁止在每次启动时从其他浏览器导入数据
"ImportOnEachLaunch"=dword:00000000
#禁用Microsoft Edge 中的购物助手
"EdgeShoppingAssistantEnabled"=dword:00000000
#禁用访问集锦功能
"EdgeCollectionsEnabled"=dword:00000000
#禁用Bing云内容搜索
#
#"DisableSearchBoxSuggestions"=dword:00000001
#Edge启动增强功能(影响打开EDGE 打开上次标签页)
"StartupBoostEnabled"=dword:00000000
#询问在何处保存下载的文件(EDGE 设置 下载 每次下载都询问我该做些什么)
"PromptForDownloadLocation"=dword:00000001
#阻止必应搜索结果中的所有广告
#如果启用此策略,则用户可以在 bing.com 上搜索并享受无广告搜索体验。 同时,安全搜索设置将设置为“严格”,用户无法更改。
#如果未配置此策略,则默认体验将在 bing.com 上的搜索结果中显示广告。 默认情况下,安全搜索将设置为“中等”,用户可以更改该设置
"BingAdsSuppression"=dword:00000001
#启用新选项卡页面的预加载,以便快速呈现
"NewTabPagePrerenderEnabled"=dword:00000001
qqsxbg
发表于 2024-12-30 09:35
右键添加常用设置
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu]
#1 桌面右键添加常用设置 - 添加
"Icon"="SHELL32.dll,314"
"MUIVerb"="常用设置(&A)"
"SubCommands"=""
"Position"="top"
"MUIVerb"="服务 (&0)"
"Icon"="C:\\Windows\\system32\\filemgmt.dll,0"
@="mmc services.msc"
"MUIVerb"="注册表 (&1)"
"Icon"="regedit.exe"
@="regedit"
"MUIVerb"="组策略 (&2)"
"Icon"="C:\\Windows\\System32\\shell32.dll,90"
@="mmc gpedit.msc"
"MUIVerb"="任务计划 (&3)"
"Icon"="C:\\Windows\\system32\\miguiresource.dll,1"
@="mmc taskschd.msc /s"
"MUIVerb"="事件查看器 (&4)"
"Icon"="C:\\Windows\\system32\\miguiresource.dll,0"
@="mmc eventvwr.msc /s"
"Icon"="control.exe"
"MUIVerb"="控制面板 (&5)"
"CommandFlags"=dword:00000020
@="control.exe"
"MUIVerb"="系统配置 (&6)"
"Icon"="msconfig.exe"
@="msconfig"
"Icon"="SHELL32.dll,-025"
"MUIVerb"="上帝模式 (&7)"
@="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"
"MUIVerb"="计算机管理 (&G)"
"Icon"="shell32.dll,88"
@="C:\\Windows\\system32\\CompMgmtLauncher.exe"
"MUIVerb"="刷新DNS缓存 (&D)"
"Icon"="shell32.dll,293"
"CommandFlags"=dword:00000020
@="PowerShell -NoProfile -ExecutionPolicy Bypass -Command \"& {Start-Process PowerShell -ArgumentList 'ipconfig /flushdns' -Verb RunAs}\""
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,69,00,67,00,\
75,00,69,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,2e,00,64,00,6c,\
00,6c,00,2c,00,30,00,00,00
"MUIVerb"="清理系统日志(&C)"
@="PowerShell -NoProfile -ExecutionPolicy Bypass -Command \"& {Start-Process PowerShell -ArgumentList 'wevtutil el | Foreach-Object {wevtutil cl \"$_\"}' -Verb RunAs}\""
"MUIVerb"="重启 Explorer (&R)"
"Icon"="C:\\Windows\\System32\\imageres.dll,229"
"CommandFlags"=dword:00000020
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"tskill.exe\",\"explorer\",\"\",\"open\",0)(close)"
"CanonicalName"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
"Description"="@explorerframe.dll,-14403"
"Icon"=hex(2):69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,\
00,6c,00,2c,00,2d,00,38,00,31,00,00,00
"MUIVerb"="关于 Windows(&A)"
"CommandFlags"=dword:00000020
"DelegateExecute"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
#
#"MUIVerb"="关机选项(&Z)"
#"Icon"="imageres.dll,207"
#"SubCommands"=""
#"Position"="bottom"
#
#
#"MUIVerb"="注销(&0)"
#"Icon"="shell32.dll,44"
#
#@="shutdown -l"
#
#"MUIVerb"="关机(&1)"
#"Icon"="shell32.dll,27"
#
#@="mshta vbscript:createobject(\"wscript.shell\").run(\"shutdown.exe -s -f -t 0\",0)(close)"
#
#"MUIVerb"="重启(&2)"
#"Icon"="shell32.dll,238"
#
#@="mshta vbscript:createobject(\"wscript.shell\").run(\"shutdown.exe -r -f -t 0\",0)(close)"
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu]
#3 所有目录添加右键常用设置 - 添加
"Icon"="SHELL32.dll,314"
"MUIVerb"="常用设置(&A)"
"SubCommands"=""
"Position"="Top"
"MUIVerb"="服务 (&0)"
"Icon"="C:\\Windows\\system32\\filemgmt.dll,0"
@="mmc services.msc"
"MUIVerb"="注册表 (&1)"
"Icon"="regedit.exe"
@="regedit"
"MUIVerb"="组策略 (&2)"
"Icon"="C:\\Windows\\System32\\shell32.dll,90"
@="mmc gpedit.msc"
"MUIVerb"="任务计划 (&3)"
"Icon"="C:\\Windows\\system32\\miguiresource.dll,1"
@="mmc taskschd.msc /s"
"MUIVerb"="事件查看器 (&4)"
"Icon"="C:\\Windows\\system32\\miguiresource.dll,0"
@="mmc eventvwr.msc /s"
"Icon"="control.exe"
"MUIVerb"="控制面板 (&5)"
"CommandFlags"=dword:00000020
@="control.exe"
"MUIVerb"="系统配置 (&6)"
"Icon"="msconfig.exe"
@="msconfig"
"Icon"="SHELL32.dll,-025"
"MUIVerb"="上帝模式 (&7)"
@="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"
"MUIVerb"="计算机管理 (&G)"
"Icon"="shell32.dll,88"
@="C:\\Windows\\system32\\CompMgmtLauncher.exe"
"MUIVerb"="刷新DNS缓存 (&D)"
"Icon"="shell32.dll,293"
"CommandFlags"=dword:00000020
@="PowerShell -NoProfile -ExecutionPolicy Bypass -Command \"& {Start-Process PowerShell -ArgumentList 'ipconfig /flushdns' -Verb RunAs}\""
"Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,69,00,67,00,\
75,00,69,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,2e,00,64,00,6c,\
00,6c,00,2c,00,30,00,00,00
"MUIVerb"="清理系统日志(&C)"
@="PowerShell -NoProfile -ExecutionPolicy Bypass -Command \"& {Start-Process PowerShell -ArgumentList 'wevtutil el | Foreach-Object {wevtutil cl \"$_\"}' -Verb RunAs}\""
"MUIVerb"="重启 Explorer (&R)"
"Icon"="C:\\Windows\\System32\\imageres.dll,229"
"CommandFlags"=dword:00000020
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"tskill.exe\",\"explorer\",\"\",\"open\",0)(close)"
"CanonicalName"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
"Description"="@explorerframe.dll,-14403"
"Icon"=hex(2):69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,\
00,6c,00,2c,00,2d,00,38,00,31,00,00,00
"MUIVerb"="关于 Windows(&A)"
"CommandFlags"=dword:00000020
"DelegateExecute"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
#
#"MUIVerb"="关机选项(&Z)"
#"Icon"="imageres.dll,207"
#"SubCommands"=""
#"Position"="bottom"
#
#
#"MUIVerb"="注销(&0)"
#"Icon"="shell32.dll,44"
#
#@="shutdown -l"
#
#"MUIVerb"="关机(&1)"
#"Icon"="shell32.dll,27"
#
#@="mshta vbscript:createobject(\"wscript.shell\").run(\"shutdown.exe -s -f -t 0\",0)(close)"
#
#"MUIVerb"="重启(&2)"
#"Icon"="shell32.dll,238"
小银狐
发表于 2024-12-30 09:36
解决Windows 11中Windows Hello和PIN不可用的问题,可以尝试以下几种方法
--------------------------------------------
1、将本地账户转换为Microsoft账户:
打开“设置”,点击“账户”,然后选择“你的信息”。
在账户设置中,点击“改用Microsoft账户登录”,完成登录后即可设置使用PIN、脸部或指纹识别登录选项。
修改注册表以允许域PIN登录。
2、打开注册表编辑器(按“Win+R”输入“regedit”)
导航到路径:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System。
在System键下新建一个DWORD(32位)值,命名为“allowdomainpinlogon”,并将其值设置为1。
完成后重启计算机,重新设置PIN码和指纹识别。
3、调整用户账户控制策略:
按下“Win+R”输入“gpedit.msc”打开组策略编辑器。
在“计算机配置”-“Windows设置”-“安全设置”-“本地策略”-“安全选项”中,找到“用户账户控制:用于内置管理员账户的管理员批准模式”,将其设置为启用状态。
4、删除组策略目录并强制更新组策略:
打开“运行”窗口(按“Win+R”),输入“netplwiz”取消自动登录。
进入“设置”-“账户”,断开所有工作和学校账号的链接。
以管理员身份运行CMD,输入命令删除组策略目录并强制更新组策略:
RD /S /Q "%WinDir%\System32\GroupPolicyUsers"
RD /S /Q "%WinDir%\System32\GroupPolicy"
gpupdate /force
重启电脑。
智简
发表于 2024-12-30 09:37
我是来学习的
qqsxbg
发表于 2024-12-30 09:37
右键 添加 exe 程序 防火墙规则
Windows Registry Editor Version 5.00
#右键 添加 为.exe程序 添加/删除防火墙规则
"MUIVerb"="防火墙规则 添加/删除"
"Icon"="FirewallControlPanel.dll,0"
"SubCommands"=""
"Position"="Bottom"
"MUIVerb"="为此程序添加禁止入站规则"
"Icon"="imageres.dll,-105"
@="powershell -windowstyle hidden -command \"Start-Process netsh.exe -ArgumentList 'advfirewall firewall add rule name = \\\"%1\\\" dir = in program = \\\"%1\\\" action = block' -Verb runAs\""
"MUIVerb"="为此程序删除禁止入站规则"
"Icon"="imageres.dll,-106"
@="powershell -windowstyle hidden -command \"Start-Process netsh.exe -ArgumentList 'advfirewall firewall delete rule name = \\\"%1\\\" dir = in program = \\\"%1\\\"' -Verb runAs\""
"MUIVerb"="为此程序添加禁止出站规则"
"Icon"="imageres.dll,-105"
"CommandFlags"=dword:00000020
@="powershell -windowstyle hidden -command \"Start-Process netsh.exe -ArgumentList 'advfirewall firewall add rule name = \\\"%1\\\" dir = out program = \\\"%1\\\" action = block' -Verb runAs\""
"MUIVerb"="为此程序删除禁止出站规则"
"Icon"="imageres.dll,-106"
@="powershell -windowstyle hidden -command \"Start-Process netsh.exe -ArgumentList 'advfirewall firewall delete rule name = \\\"%1\\\" dir = out program = \\\"%1\\\"' -Verb runAs\""
小银狐
发表于 2024-12-30 09:38
24H2全新安装默认会开BitLocker
-------------------------
BIOS 中禁用 Secure Boot 即可
取消 bitlocker 加密(以管理员 cmd 输入):
manage-bde -off x:
必须等到 控制面板-bitlocker 加密驱动器-显示 已禁用,才可以关闭 CMD 窗口
------------------------------
进入 Windows PowerShell(以管理员身份),然后输入以下命令:
Disable-BitLocker -MountPoint "驱动器号:" 等几分钟自动解除。
qqsxbg
发表于 2024-12-30 09:38
右键 增加 defender 白名单设置
Windows Registry Editor Version 5.00
#右键 移除 defender 白名单设置
[-HKEY_CLASSES_ROOT\*\shell\DefenderExclusion]
[-HKEY_CLASSES_ROOT\Directory\shell\DefenderExclusion]
[-HKEY_CLASSES_ROOT\Directory\background\shell\DefenderExclusion]
[-HKEY_CLASSES_ROOT\Drive\shell\DefenderExclusion]
#右键 增加 defender 白名单设置
"MUIVerb"="Microsoft Defender 白名单 设置"
"Icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
"SubCommands"=""
"Position"="Bottom"
"MUIVerb"="打开 文件夹访问限制 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://allowappthroughfolder"
"MUIVerb"="打开 排除项 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://exclusions"
"MUIVerb"="添加此文件 Defender 文件夹限制访问 白名单"
"Icon"="imageres.dll,101"
"CommandFlags"=dword:00000020
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ControlledFolderAccessAllowedApplications '%V'\\\" -verb RunAs"
"MUIVerb"="移除此文件 Defender 文件夹限制访问 白名单"
"Icon"="imageres.dll,100"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ControlledFolderAccessAllowedApplications '%V'\\\" -verb RunAs"
"MUIVerb"="添加此文件 Defender 扫描排除项 白名单"
"CommandFlags"=dword:00000020
"Icon"="imageres.dll,101"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"MUIVerb"="移除此文件 Defender 扫描排除项 白名单"
"Icon"="imageres.dll,100"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"CommandFlags"=dword:00000020
"MUIVerb"="添加此文件 Defender 排除进程 白名单"
"Icon"="imageres.dll,101"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ExclusionProcess '%V'\\\" -verb RunAs"
"MUIVerb"="移除此文件 Defender 排除进程 白名单"
"Icon"="imageres.dll,100"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ExclusionProcess '%V'\\\" -verb RunAs"
"MUIVerb"="Microsoft Defender 白名单 设置"
"Icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
"SubCommands"=""
"Position"="Bottom"
"MUIVerb"="打开 文件夹访问限制 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://allowappthroughfolder"
"MUIVerb"="打开 排除项 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://exclusions"
"Icon"="imageres.dll,101"
"MUIVerb"="添加此文件夹 Defender 扫描排除项 白名单"
"CommandFlags"=dword:00000020
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"Icon"="imageres.dll,100"
"MUIVerb"="移除此文件夹 Defender 扫描排除项 白名单"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"MUIVerb"="Microsoft Defender 白名单 设置"
"Icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
"SubCommands"=""
"Position"="Bottom"
"MUIVerb"="打开 文件夹访问限制 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://allowappthroughfolder"
"MUIVerb"="打开 排除项 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://exclusions"
"Icon"="imageres.dll,101"
"MUIVerb"="添加此文件夹 Defender 扫描排除项 白名单"
"CommandFlags"=dword:00000020
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"Icon"="imageres.dll,100"
"MUIVerb"="移除此文件夹 Defender 扫描排除项 白名单"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"MUIVerb"="Microsoft Defender 白名单 设置"
"Icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
"SubCommands"=""
"Position"="Bottom"
"MUIVerb"="打开 文件夹访问限制 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://allowappthroughfolder"
"MUIVerb"="打开 排除项 设置菜单"
"icon"="%ProgramFiles%\\\\Windows Defender\\\\EppManifest.dll,-101"
@="explorer windowsdefender://exclusions"
"Icon"="imageres.dll,101"
"MUIVerb"="添加此驱动器 Defender 扫描排除项 白名单"
"CommandFlags"=dword:00000020
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Add-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
"Icon"="imageres.dll,100"
"MUIVerb"="移除此驱动器 Defender 扫描排除项 白名单"
@="powershell.exe -Command Start-Process PowerShell -ArgumentList \\\"Remove-MpPreference -ExclusionPath '%V'\\\" -verb RunAs"
bgates
发表于 2024-12-30 09:39
集思广益,各位高手出手啊{:5_591:}
qqsxbg
发表于 2024-12-30 09:39
右键 Windows安全中心菜单
Windows Registry Editor Version 5.00
#右键 Windows安全中心菜单 添加
"Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
"MUIVerb"="Windows 安全中心"
"Position"="Bottom"
"SubCommands"=""
"Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
"MUIVerb"="&主页"
@="explorer windowsdefender:"
"CommandFlags"=dword:00000020
"MUIVerb"="&病毒和威胁防护"
@="explorer windowsdefender://threat"
"MUIVerb"="&账户保护"
@="explorer windowsdefender://account"
"MUIVerb"="&防火墙和网络保护"
@="explorer windowsdefender://network"
"MUIVerb"="应用和浏览器控制"
@="explorer windowsdefender://appbrowser"
"MUIVerb"="&设备安全性"
@="explorer windowsdefender://devicesecurity"
"MUIVerb"="&设备性能和运行状况"
@="explorer windowsdefender://perfhealth"
"MUIVerb"="&家庭选项"
@="explorer windowsdefender://family"
"MUIVerb"="&保护历史记录"
@="explorer windowsdefender://history"
"MUIVerb"="&安全提供程序"
@="explorer windowsdefender://providers"
"MUIVerb"="&通知"
@="explorer windowsdefender://settings"
pangang1978
发表于 2024-12-30 09:40
这多么的方法啊。向高手学习,感谢分享。
qqsxbg
发表于 2024-12-30 09:41
右键增加获取管理员权限 有暂停选项
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\TakeOwnership]
[-HKEY_CLASSES_ROOT\*\shell\runas]
@="获取管理员权限"
"Extended"=-
"HasLUAShield"=""
"NoWorkingDirectory"=""
"NeverDefault"=""
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
"IsolatedCommand"= "powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
@="获取管理员权限"
"AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\Users\" OR System.ItemPathDisplay:=\"C:\\ProgramData\" OR System.ItemPathDisplay:=\"C:\\Windows\" OR System.ItemPathDisplay:=\"C:\\Windows\\System32\" OR System.ItemPathDisplay:=\"C:\\Program Files\" OR System.ItemPathDisplay:=\"C:\\Program Files (x86)\")"
"Extended"=-
"HasLUAShield"=""
"NoWorkingDirectory"=""
"Position"="middle"
@="powershell -windowstyle hidden -command \"$Y = ($null | choice).Substring(1,1); Start-Process cmd -ArgumentList ('/c takeown /f \\\"%1\\\" /r /d ' + $Y + ' && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause') -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"$Y = ($null | choice).Substring(1,1); Start-Process cmd -ArgumentList ('/c takeown /f \\\"%1\\\" /r /d ' + $Y + ' && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause') -Verb runAs\""
@="获取管理员权限"
"Extended"=-
"HasLUAShield"=""
"NoWorkingDirectory"=""
"Position"="middle"
"AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
@="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c & Pause"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c & Pause"
小银狐
发表于 2024-12-30 09:42
防止hosts被软件自动修改
-------------------------------------
打开记事本,根据需要输入以下代码:
一、 禁止修改HOSTS文件:
attrib +r +a +s +h %windir%\system32\drivers\etc\hosts
echo y|cacls %windir%\system32\drivers\etc\hosts /g everyone:r
二、允许修改HOSTS文件:
echo y|cacls %windir%\system32\drivers\etc\hosts /g everyone:f
attrib -r -a -s -h %windir%\system32\drivers\etc\hosts
保存为.BAT格式后双击运行即可,当然也可以在CMD中逐条输入。
qqsxbg
发表于 2024-12-30 09:43
鼠标右键启用 在此处打开 PowerShell
Windows Registry Editor Version 5.00
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]
; To allow mapped drives to be available in elevated PowerShell
"EnableLinkedConnections"=dword:00000001
tengzhouvip
发表于 2024-12-30 09:44
{:5_293:}
小银狐
发表于 2024-12-30 09:44
某些设置由你的组织管理,如何取消?
-----------------------------------
1、WIN+R打开“运行”,输入“gpedit.msc”回车 打开组策略;
2、在左侧依次展开:计算机配置 -- 管理模版 -- 控制面板 -- 个性化;
3、在右侧双击打开“不显示锁屏”,弹出窗口中选“未配置”,应用,确定。如果默认为“未配置”先改为“禁用”,应用,再改回“未配置”-“确定”即可。
-----------------------------------
“某些设置由你的组织来管理”
用dism++,先关闭Windows自动更新,然后再打开,就OK了
qqsxbg
发表于 2024-12-30 09:44
右键 Win11 中的 PS1 文件 添加“编辑或运行”
Windows Registry Editor Version 5.00
#Win11 中的 PS1 文件 鼠标右键菜单中 添加“编辑或运行”
"Icon"="powershell.exe"
"MUIVerb"="使用 PowerShell 编辑/运行"
"SubCommands"=""
"MUIVerb"="Run with PowerShell"
"Icon"="powershell.exe"
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" \"-Command\" \"if((Get-ExecutionPolicy ) -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & '%1'\""
"MUIVerb"="Run with PowerShell as administrator"
"HasLUAShield"=""
"Icon"="powershell.exe"
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" \"-Command\" \"\"& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -File \\\"%1\\\"' -Verb RunAs}\""
"MUIVerb"="Edit with PowerShell ISE"
"Icon"="powershell_ise.exe"
"CommandFlags"=dword:00000020
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe\" \"%1\""
"MUIVerb"="Edit with PowerShell ISE as administrator"
"HasLUAShield"=""
"Icon"="powershell_ise.exe"
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start PowerShell_ISE.exe \"\"%1\"\"'-Verb RunAs\""
"MUIVerb"="Edit with PowerShell ISE (x86)"
"Icon"="powershell_ise.exe"
"CommandFlags"=dword:00000020
@="\"C:\\WINDOWS\\syswow64\\WindowsPowerShell\\v1.0\\powershell_ise.exe\" \"%1\""
"MUIVerb"="Edit with PowerShell ISE (x86) as administrator"
"HasLUAShield"=""
"Icon"="powershell_ise.exe"
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start C:\\WINDOWS\\syswow64\\WindowsPowerShell\\v1.0\\powershell_ise.exe \"\"%1\"\"'-Verb RunAs\""
页:
1
2
3
4
5
[6]
7
8
9
10
11
12
13
14
15