WIN10任务计划程序无法启动解决方案

OK! 我投降,以下都是打脸记录。

        ** 我升级Win11了,一劳永逸,顺便体验下最新版的Windows系统  **

    我的电脑一般设定晚上0点自动关机,这两天发现这个设定没用了。打开“任务计划程序”,马上弹出窗口,提示“无法连接远程计算机”。What the fuck? 我这是本地计算机,哪需要远程连接?遇事不决问百度,百度哥告诉我说方案有很多,最简单的就是——“启动Task Scheduler服务即可“。So easy?Let me see.

方案一:

开始菜单 -> 运行 -> CMD -> Services.msc -> 回车 -> 找到Task Scheduler服务 -> 设为“自动”并“启动”

打开“服务”窗口,找到这一项,该死,这是灰色选项。咳咳..万能的百度哥告诉我第二个方案,修改注册表。

方案二:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule]

"Start"=dword:00000002

    打开Regedit.exe找到这项,把数值改成“2”,重启电脑即可。当然,你也把这段代码直接保存为批处理格式.bat双击导入注册表。

    [^注:同时,要确保系统中“Remote Procedure Call (RPC)”和“WINDOWS EVENTS LOG”两项服务正常启动。 ]


    为了保证100%成功,百度哥还告诉我第三个方案。真有100%解决问题的办法吗?当然有,重装系统。……哈哈,这是个笑话。

方案三:

    使用 Win+R 输入CMD打开“命令提示符” -> 输入netsh winsock reset->回车

    [^注:此操作需上升到管理员权限]

Day2:
    果然,没有100%,没有绝对,只有可能能够解决,实际并未能解决。目前尝试修复系统,这是一个比重装系统稍好一点但又很无奈的办法,期待着……

方案四:

打开“命令提示符” -> 输入sfc /scannow -> 回车  

结果出来了,然并卵,Fuck…………!#$@%$#^%^%%(&^#!@#¥%……&()——&)^&%&^$$%#!#$%$^&)&)_!@#¥%&*()!@#¥%……&*IO(P!@#¥%……&*()——+{}))Are you kidding me?

.

.

.

查看系统日志,提示以下问题点:


日志名称: System

来源: Service Control Manager

日期: 2021/12/30 14:22:10

事件 ID: 7006

任务类别: 无

级别: 错误

关键字: 经典

用户: 暂缺

计算机: X570

描述:
由于下列错误,ScRegSetValueExW 调用无法运行 Start:
拒绝访问。

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7006</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2021-12-30T06:22:10.4693142Z" />
    <EventRecordID>363504</EventRecordID>
    <Correlation />
    <Execution ProcessID="1248" ThreadID="1328" />
    <Channel>System</Channel>
    <Computer>X570</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">ScRegSetValueExW</Data>
    <Data Name="param2">Start</Data>
    <Data Name="param3">%%5</Data>
  </EventData>
</Event>```    

导航栏二级菜单HTML代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html lang="en">
<head>

<style>
*{
margin: 0;
padding: 0;
}
ul,li{
list-style: none;
}
.one{
width: 100px;
background-color: #FAEBD7;
height: 30px;
margin: 0 ;
}
.one li{

width: 100px;
text-align: center;
line-height: 30px;
}
.one li:hover{
background-color: #FAEBD7;
color: #C0C0C0;
}
.one .two{
display: none;
}
.one li:hover .two{
display: block;
}
.one .two li{
background-color:#honeydew;
}

.one .two li:hover{
background-color:#FFFFCC;
}
a{
display: block;
text-decoration: none;
}
</style>
</head>
<body>

<ul class="one">

<li><a href="">网上冲浪</a>
<ul class="two">
<li><a href="https://bbs.pcbeta.com/">远影论坛</a> </li>
<li><a href="https://www.huya.com/g/">虎牙直播</a> </li>
<li><a href="https://dict.youdao.com/">有道词典</a> </li>
<li><a href="http://www.dytt8.net/">电影天堂</a> </li>
<li><a href="https://www.bttwo.com/">两个BT电影</a> </li>
<li><a href="http://qunyifeng.cn">群益丰电子</a> </li>
<li><a href="http://qunyifeng.1688.com">群益丰店铺</a> </li>
</ul>
</li>

</ul>

</body>
</html>

聚合搜索模板

<!doctype html>
<meta charset="utf-8">
<title>主页</title>
<html><head>
<link rel="icon" type="image/x-icon" href="png/favicon.ico">
<link rel="icon" type="image/x-icon" href="pic/nico.png">
<base target="_blank"> <!-- 这段代码放到<head>里边,实现所有超链接使用新标签页打开 */-->

 <style type="text/css">
   *{ margin:0; padding:0;}
   div{ text-align:center;}
   #QUYU{ border:0px dashed ; width:800px; height:900px; }
   #QUYU #TOUBU{width:770px; height:120px; border:0px dashed ; margin:15px;  }
   #QUYU #TOUBU #LOGO{ width:160px; height:120px; border:0px dashed ; }
   #QUYU #KONGBAI{ width:784px; height:25px; border:0px dashed ; }
   #QUYU #CHANGYONGWANGZHAN{ width:160px; height:300px; border:0px dashed ; }
   #QUYU #GERENWANGZHAN{ width:160px; height:300px; border:0px dashed ; }    
   #QUYU #DIBU{ width:770px; height:120px; border:0px dashed ; margin:0px;  }
 body {
background-image: url(pic/bg2.jpg);
background-repeat: no-repeat;
background-size:cover;         
}
 </style>
</head>     


<div class="search clearfix">
<meta charset="utf-8">
<style type="text/css">

#search{
width: auto;
height: auto;

}
#search input{
width: 19.7%;
height: auto;
border: 2px solid #f10215;
background-color: #fff; opacity: 0.8;  /* 搜索框半透明效果 */
outline-style: none;/* 消除原来的边框默认属性 */

padding-left: 4px;/* 让文字在搜索的时候距离框4px */
color: #888;
}
#search button{
width: auto;
height: auto;
background-color: #f10215;opacity: 0.8; 

color: white;opacity: 0.8; 
}
</style>
<script type="text/javascript">
var keyword = "念念不忘,必有回响";//搜索框中默认的搜索词
window.onload = function(){
//得到按钮的对象
var btnsearch = document.getElementById("search").getElementsByTagName("button")[0];
//得到搜索框的对象
var txt = document.getElementById("search").getElementsByTagName("input")[0];
//为搜索框注册焦点事件
txt.onfocus = function(){
//当在焦点上时让搜索框文字变成黑色
txt.style.color = "black";
//如果搜索框为关键字的时候,注册焦点就让搜索框为空
if (txt.value == keyword) {
txt.value = "";
 }
}
//为搜索框注册失去焦点事件
txt.onblur = function(){
//在失去焦点的时候如果搜索框内容为空,就让搜索框显示默认关键字
  if (txt.value == "") {
  this.value = keyword;
  this.style.color = "#888";
}
}
}
  
</script>
</head>
<body>
<div id="search">
<input  value="念念不忘,必有回响" name="q" id="bdcsMain" />

<button class="button0" type="text" onclick="window.open('https://baidu.com/s?ie=utf-8&wd='+document.getElementById('bdcsMain').value)">百度搜索</button> 
<button class="button1" type="text" onclick="window.open('https://baidu.com/s?rtt=1&bsst=1&cl=2&tn=news&word='+document.getElementById('bdcsMain').value)">百度资讯</button>
<button class="button2" type="text" onclick="window.open('https://tianyancha.com/search?key='+document.getElementById('bdcsMain').value)">天眼查</button>
<button class="button3" type="text" onclick="window.open('https://search.bilibili.com/all?keyword='+document.getElementById('bdcsMain').value)">哔哩哔哩</button>
<button class="button4" type="text" onclick="window.open('https://zhihu.com/search?q='+document.getElementById('bdcsMain').value)">知乎</button>
<button class="button5" type="text" onclick="window.open('https://douban.com/search?q='+document.getElementById('bdcsMain').value)">豆瓣</button>
<button class="button6" type="text" onclick="window.open('https://search.jd.com/Search?keyword='+document.getElementById('bdcsMain').value)">京东</button>
<button class="button7" type="text" onclick="window.open('http://ai.taobao.com/search/index.htm?&amp;key='+document.getElementById('bdcsMain').value)">淘宝</button>
<button class="button8" type="text" onclick="window.open('http://cn.bing.com/search?q='+document.getElementById('bdcsMain').value)">必应</button>
<button class="button9" type="text" onclick="window.open('https://kuaidi100.com/?nu='+document.getElementById('bdcsMain').value)">国内快递</button>
<button class="button10" type="text" onclick="window.open('https://t.17track.net/zh-cn#nums='+document.getElementById('bdcsMain').value)">国际快递</button>
<button class="button11" type="text" onclick="window.open('https://github.com/search?q='+document.getElementById('bdcsMain').value)">Github</button>
<button class="button12" type="text" onclick="window.open('https://stackoverflow.com/search?q='+document.getElementById('bdcsMain').value)">Stack Overflow</button>
<button class="button13" type="text" onclick="window.open('https://s.weibo.com/weibo/'+document.getElementById('bdcsMain').value)">微博</button>
<button class="button14" type="text" onclick="window.open('http://weixin.sogou.com/weixin?type=2&query='+document.getElementById('bdcsMain').value)">微信文章</button>
<button class="button15" type="text" onclick="window.open('http://weixin.sogou.com/weixin?type=1&query='+document.getElementById('bdcsMain').value)">微信公众号</button>
<button class="button16" type="text" onclick="window.open('https://minapp.com/miniapp/search/?query='+document.getElementById('bdcsMain').value)">微信小程序</button>
<button class="button17" type="text" onclick="window.open('https://xueshu.baidu.com/s?wd='+document.getElementById('bdcsMain').value)">百度学术</button>
<button class="button18" type="text" onclick="window.open('https://music.163.com/#/search/m/?s='+document.getElementById('bdcsMain').value)">网易云音乐</button>  
<br />
<head><base target="_blank"></head>
  <a class="item" href="index.htm" tppabs=" http://baidu.com/"><i class="home icon"></i>首页</a>&nbsp;&nbsp;
  <a class="item" href="blog/index.php" tppabs=" http://baidu.com" title="个人Typecho博客"><i class="blog icon"></i> 博客 </a>&nbsp;&nbsp;
  <a class="item" href="pan/index.php" tppabs=" http://baidu.com"title="个人可道云网盘服务器"><i class="pan icon"></i>网盘</a> &nbsp;&nbsp;
  <a class="item" href="about/index.htm" tppabs=" http://baidu.com/about"title="关于我"><i class="about icon"></i>@我</a>&nbsp;&nbsp;
  <a href=" http://baidu.com"title="QYF">官网后台</a>&nbsp;&nbsp;
  <a href=" http://baidu.com"title="Typecho博客站点后台">小站后台</a>&nbsp;&nbsp;
  <a href="https://cdzonline.github.io/"title="Github博客">cdzonline.github.io</a>&nbsp;&nbsp;
  <a href="https://github.com/cdzonline"title="Github仓库">Github.com/cdzonline</a>&nbsp;&nbsp;
  <a href="http://127.0.0.1" title="Jellyfin本地电影服务器 http://127.0.0.1">本地电影</a>&nbsp;&nbsp;
  <a href="https://wanyouw.com/"title="网站资源应有尽有,我挺喜欢的">万有导航</a>&nbsp;&nbsp; 
<br />
  <a href="https://bbs.pcbeta.com"t>远影论坛</a>&nbsp;&nbsp;
  <a href="https://www.huya.com/">虎牙直播</a>&nbsp;&nbsp;
  <a href="https://dict.youdao.com">有道词典</a>&nbsp;&nbsp;
  <a href="http://192.168.1.1">路由器管理</a>&nbsp;&nbsp;
  <a href="http://www.dytt8.net/"title="电影资源下载网站">电影天堂</a>&nbsp;&nbsp;
  <a href="https://www.bttwo.com/"title="两个BT电影资源网">两个BT</a>&nbsp;&nbsp;
  <a href="http://qunyifeng.cn"title="东莞市群益丰电子科技有限公司企业官网">群益丰电子</a>&nbsp;&nbsp;
  <a href="http://qunyifeng.1688.com"title="东莞市群益丰电子科技有限公司电商平台">群益丰店铺</a>&nbsp;&nbsp;
<br />
<a href=" http://baidu.com" font-family:Apple Chancery  title="如果你觉得自己可以做到,你就能做到">If you think you can,youcan.</a>&nbsp;&nbsp;
<br />
 <a href="http://127.0.0.1">127.0.0.1</a>&nbsp;&nbsp;
</body>        
<div id="QUYU">
<div id="TOUBU">
    <div id="LOGO"><a href="index.htm"><img src="pic/cdz.png" width="153" height="118" alt=""/></a></div>
  <div id="KONGBAI"></div>
  <div id="CHANGYONGWANGZHAN"></div>
  <div id="GERENWANGZHAN"></div>
  <div id="DIBU"></div>
</div>
</div>
   <p id="hitokoto"><a href="#" id="hitokoto_text"></a>
<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
</body>
</html>

Hexo博客搭建过程随记

安装Hexo

npm install hexo-cli -g

检查hexo安装是否成功

hexo -v

设置npm全局地址

npm config set prefix "E:\Documents\WWW\nodejs\node_global"
npm config set cache "E:\Documents\WWW\nodejs\node_cache"

把public改名为用户名.github.io

注1:后面实际验证,有时并不需要这么做,原因未知

注2:把主分支改成master,在_config.yml文件和网页的Setting的Branch里更改

再复制粘贴以下代码,git执行:

git branch -m main master
git fetch origin
git branch -u origin/master master
git remote set-head origin -a

然后网页可以显示正常博文了,标题和内容(包括图片和超链接)都一切正常。Good job!!

最后:

npm install hexo-deployer-git --save  //安装这个插件才能执行Hexo d部署博客

卸载命令之站内搜索:

npm uninstall hexo-generator-search
npm uninstall hexo-generator-searchdb

常用命令

hexo init //新建博客第一个命令是初始化(即把Hexo博客模板从GITHUB下载下来,后续的网站装修都是在这个基础上操作的)  

hexo g    //生成博客

hexo s     //本地预览博客

hexo d     //发布博客  

hexo clean && hexo g && hexo d && hexo s  //一次性完成本地删除本地public、生成网页、发布博客和本地预览博客命令

重装gulp

npm install -g gulp

hexo clean && hexo g  //清空缓存并生成静态文件

VM虚拟机安装macOS注意事项之AMD篇

VM虚拟机需要安装unlocker3.0(最新版)才能破解并安装macOS,程序可到Github下载
VM虚拟机安装:选择Workstation 10.x

虚拟机设置:USB控制器–选择USB2.0并显示所有USB设备

打开macOS虚拟机安装目录,修改.vmx文件—-保存

smc.version = 0
cpuid.0.eax = 000000000000000000000000000010 11
cpuid.0.ebx = 01110101011011 1001100101010001 11
cpuid.0.ecx = 01101100011001010111010001101110
cpuid.0.edx = 010010010110010101101110011010 01
cpuid.1.eax = 000000000000000100000110011100 01
cpuid.1.ebx = 00000010000000010000100000000000
cpuid.1.ecx = 10000010100110000010001000000011
cpuid.1.edx = 000001111000101111 11101111111111
smbios.reflectHost = TRUE
hw.model = MacBookPro14,3
board-id = Mac-551B86E5744E2388
keyboard.vusb.enable = TRUE
mouse.vusb.enable = TRUE

系统安装过程注意事项:

1、安装过程先选择“磁盘工具”,把要安装系统的磁盘抹掉

2、返回安装界面–选择“安装macOS

3、后面都是简单设置即可进入系统

MacOC引导安装指南 OpenCore Install Guide
黑果小兵的部落阁(OS下载源)
显卡驱动下载