<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Windows on Eason Yang&#39;s Blog</title>
    <link>https://easonyang.com/tags/windows/</link>
    <description>Recent content in Windows on Eason Yang&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 10 Aug 2016 09:39:18 +0000</lastBuildDate>
    <atom:link href="https://easonyang.com/tags/windows/atom.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>解决Windows安装Microsoft Visual Studio 2010 Tools for Office Runtime(kb3001652)提示0x80070643错误的问题</title>
      <link>https://easonyang.com/2016/08/10/fix-the-installation-failure-of-windows-kb3001652/</link>
      <pubDate>Wed, 10 Aug 2016 09:39:18 +0000</pubDate>
      <guid>https://easonyang.com/2016/08/10/fix-the-installation-failure-of-windows-kb3001652/</guid>
      <description>&lt;h2 id=&#34;环境&#34;&gt;环境&lt;/h2&gt;&#xA;&lt;p&gt;Windows 10&lt;/p&gt;&#xA;&lt;p&gt;Microsoft Office 2016&lt;/p&gt;&#xA;&lt;p&gt;Visual Studio 2015&lt;/p&gt;&#xA;&lt;h2 id=&#34;前言&#34;&gt;前言&lt;/h2&gt;&#xA;&lt;p&gt;自去年以来，KB3001652 也就是 Microsoft Visual Studio 2010 Tools for Office Runtime 这个功能补丁安装失败的提示就一直存在于我的系统更新日志中，之前忙东忙西无暇顾及，这次恰逢更新 Windows 10 到周年纪念版，实在不想再忍，决心彻底解决这个问题。&lt;/p&gt;&#xA;&lt;p&gt;在 Windows 的事件管理器中看到错误信息的与更新日志中的一样，没有什么详细信息。尝试 Google 这个补丁编号和错误码，得到建议大多是用某种方法屏蔽掉这个补丁的推送，尝试未果，但是找到了 Microsoft Visual Studio 2010 Tools for Office Runtime 的官方下载地址，想到既然是功能性补丁，不如我手动安装下试试。&lt;/p&gt;</description>
    </item>
    <item>
      <title>为Git设置SSH公钥及私钥</title>
      <link>https://easonyang.com/2016/07/31/set-ssh-identity-file-for-git/</link>
      <pubDate>Sun, 31 Jul 2016 15:45:33 +0000</pubDate>
      <guid>https://easonyang.com/2016/07/31/set-ssh-identity-file-for-git/</guid>
      <description>&lt;p&gt;在使用 Git 进行代码管理时，如果我们不使用 SSH 公钥及密钥，那么我们就必须在每次执行 Git 命令后键入密码来验明正身，所以为 Git 配置 SSH 公钥及密钥是很有必要的。下文对 Windows 及 Linux 系统，自建 Git 及 Github 均适用。&lt;/p&gt;&#xA;&lt;h2 id=&#34;配置公钥&#34;&gt;配置公钥&lt;/h2&gt;&#xA;&lt;p&gt;首先通过 &lt;code&gt;ssh-keygen -t rsa -b 4096 -C &amp;quot;name@example.com&amp;quot;&lt;/code&gt; 或者 XShell 的相应功能来生成一对密钥和公钥。随后我们得到了一个 id_rsa 和 id_rsa.pub （名称来源于你的定义，本文统一视作 id_rsa），其中 id_rsa 为私钥，id_rsa.pub 为公钥，我们需要把这个公钥的内容上传到服务器对应 Git 用户的  &lt;code&gt;.ssh/authorized_keys&lt;/code&gt; 目录中，并在 SSH 的配置文件中允许通过公钥登陆。对于 Github 来说则是上传到 Github 中的公钥设置页面中。如果遇到提示未在远程服务器注册的问题，请执行 &lt;code&gt;chmod 600 authorized_keys&lt;/code&gt; 。至此公钥配置完毕。&lt;/p&gt;</description>
    </item>
    <item>
      <title>在Windows上搭建Git服务器</title>
      <link>https://easonyang.com/2016/07/31/set-up-a-git-server-on-windows/</link>
      <pubDate>Sun, 31 Jul 2016 14:36:42 +0000</pubDate>
      <guid>https://easonyang.com/2016/07/31/set-up-a-git-server-on-windows/</guid>
      <description>&lt;p&gt;由于最近要在一个仅装有 Windows 的无外网环境下写一个小项目，无法连接我自己建在远程服务器上的 Git Server，所以在 Windows 下临时简单搭建一个 Git 服务器来做版本控制。&lt;/p&gt;&#xA;&lt;h2 id=&#34;给-windows-安装-ssh-服务器&#34;&gt;给 Windows 安装 SSH 服务器&lt;/h2&gt;&#xA;&lt;p&gt;由于 Windows 本身并没有 SSH 相关的组件，所以我们需要先进行 SSH 服务器的安装。与 Linux 下的 OpenSSH 不同，Windows 下并没有一个得到广泛认同的 SSH 软件，各种工具五花八门，本文使用Bitvise SSH Server ，该工具对非商业用途免费，虽然免费版限制一些功能的使用，但对我来说足够使用。但如果是超过10个人以上的或者商用的团队则应该购买商业授权或者使用其他同类软件。在官网下载后一路 Next 安装即可。&lt;/p&gt;</description>
    </item>
    <item>
      <title>旧版SEP在Windows XP下的漏洞</title>
      <link>https://easonyang.com/2016/07/31/the-bug-of-sep/</link>
      <pubDate>Sun, 31 Jul 2016 14:35:44 +0000</pubDate>
      <guid>https://easonyang.com/2016/07/31/the-bug-of-sep/</guid>
      <description>&lt;p&gt;低版本的 SEP(Symantec endpoint protection) 在 Windows XP 系统下存在一个漏洞（其他版本 windows 尚未验证），即修改注册表某一键的值后，即可在不输入密码的情况下关闭该软件的相关保护功能。&lt;/p&gt;&#xA;&lt;h2 id=&#34;分析&#34;&gt;分析&lt;/h2&gt;&#xA;&lt;p&gt;首先创建一个 test.reg 文件，用于修改注册表，内容如下。&lt;/p&gt;</description>
    </item>
    <item>
      <title>使用PowerShell及Shell实现将子目录中的所有指定类型文件批量复制到其他目录</title>
      <link>https://easonyang.com/2016/07/03/automatically-copy-files-from-various-subdirectory-with-shell-and-powershell/</link>
      <pubDate>Sun, 03 Jul 2016 14:36:50 +0000</pubDate>
      <guid>https://easonyang.com/2016/07/03/automatically-copy-files-from-various-subdirectory-with-shell-and-powershell/</guid>
      <description>&lt;p&gt;最近有个小需求，需要在 windows 系统下，把 mobi 格式的电子书文件从不同子目录里拷贝到同一目录中，由于微软的 Bash for windows 还没出正式版，所以这里先用 PowerShell 解决。&lt;/p&gt;&#xA;&lt;p&gt;首先用 Dir 命令遍历所有子目录获取 mobi 文件：&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$data = Dir C:\data -filter *.mobi -recurse&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;-recurse 参数会递归地遍历 C:\data 下的子目录，寻找 -filter 所定义的所有以 mobi 为后缀的文件，将结果存入变量 data 中。&lt;/p&gt;</description>
    </item>
    <item>
      <title>用Python为 WoX 写插件</title>
      <link>https://easonyang.com/2016/06/19/use-python-to-build-a-wox-plugin/</link>
      <pubDate>Sun, 19 Jun 2016 22:18:50 +0000</pubDate>
      <guid>https://easonyang.com/2016/06/19/use-python-to-build-a-wox-plugin/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;WoX&lt;/strong&gt; is a launcher for Windows that simply works. It&amp;rsquo;s an alternative to &lt;a href=&#34;https://www.alfredapp.com/&#34;&gt;Alfred&lt;/a&gt; and &lt;a href=&#34;http://www.launchy.net/&#34;&gt;Launchy&lt;/a&gt;. You can call it Windows omni-eXecutor if you want a long name.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;这是 WoX 官网的简介，作为一个 Windows 下开源的快速启动工具，虽然没有 Launchy 成熟稳定，但是可以方便地写插件这点还是挺值得一试的。到这里获取 WoX ：&lt;a href=&#34;http://www.getwox.com/&#34;&gt;getWox&lt;/a&gt; &lt;a href=&#34;https://github.com/Wox-launcher/Wox&#34;&gt;Github&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;WoX 的插件开发支持 C# 和  Python 3 ，本文以 Python 为基础开发几款小插件。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
