MENU

Office 365 E5 账号申请及永久续期教程

2020 年 07 月 16 日 • 阅读: 370139 • 脚本

你的仓库正在沦为肉鸡

由于 Github 漏洞,攻击者可通过 Pull Request 运行挖矿程序,请删除原先 Fork 的代码,选择 导入私有仓库 再运行 Action。

续订成功通知

续订成功

Office 365 E5 是微软 免费 提供给开发者的 Office 临时 管理号,任何人均可申请。该账号的最大权益便是可分配 25 个子账号,每个账号都拥有 OneDrive 5T 存储 和完整的 Office 客户端 使用权。

首次申请,可免费使用 90 天。到期后,根据微软机制,借助 Github Action 或 Tencent Servless 等平台的虚拟环境和定时任务功能,可实现 永久自动续期

申请步骤

打开 申请链接登录 你的微软账户。如未注册过,点击图中的创建一个,在此不再赘述。

login

登录成功进入信息填写页面后,选择 国家,随意填写 公司 名称,勾选 接受条款 后,点击 下一步

register

进入个性化体验页面后,随意勾选 几个必选项,点击 加入

experience

进入下个页面后,点击 设置 E5 订阅

subscribe

在弹出的对话框中填写 国家用户名密码 后,点击 继续,注意在记事本 保存你的密码

域即 网址前缀,填写后可能提示 已被使用,改用 其他字母 即可。

domain

接着会要求绑定 手机号,由于网站使用了 谷歌 人机验证,因此需要科学上网。

phone

收到 验证码 后,填入对话框,点击 设置

sms

等待一分钟 左右,页面将显示订阅成功。

success

开始使用

打开 Office 官网,使用上图中的 管理员账号 和第五张图设置的 密码 登录。关闭向导后,点击页面中的 OneDrive 和 Word 图标等,即可使用 网页端 服务。如需使用 客户端,点击右上角的 安装 Office - Office 365 应用,使用下载的安装器,跟随步骤安装即可。

success

扩展空间

订阅号默认的 OneDrive 空间是 1T,可在管理页扩展为 5T。打开 OneDrive 存储管理页登录 申请的管理号,将空间设置为 5120 后点击 保存。如页面 无法加载,则系统尚未完成初始化,等待 24 小时 后重新打开。

storage

子号分配

管理员可分配 25 个子号,每个账号都可使用 Office 365 并拥有 5T OneDrive 空间。点击页面中的 管理 按钮,进入管理员中心。

manage

点击左侧菜单栏的 用户 - 活跃用户,点击右侧的 添加用户

add-user

在弹出的选项卡中,填写 必要信息 后,点击 下一步

add-user-info

在接下来的三个步骤中,全部 保持默认选项,直接点击 下一步,最后 关闭 选项卡。

自动续期

订阅的有效期是 90 天。到期前,如果微软检测到账号被用于开发,即 API 被频繁且无规律调用,将自动续期。因此,只需编写几行代码,定时高频调用其 API 即可。

Github Action 是 Github 提供给开发者使用的 虚拟 Linux 环境,可 根据条件,例如指定时间,执行指定代码

添加任务

此视频流程并不全面,请对照下文观看。为节省流量,你必须手动点击播放按钮,等待 30s 后若仍未播放,请刷新网页后再次点击。

首先 登录或注册 一个 Github 账号,在此不再赘述。随后打开 该仓库,点击右上角的 Fork(会遭到攻击,想收藏可以 Star,禁止 Fork)。随后导入私有仓库,在 Your old repository’s clone URL 里填写

https://gitlab.com/vcheckzen/KeepAliveE5.git

Privacy 务必选择 Private

点击 Begin Import,稍等片刻,你的账号下便会复制一份该项目。

现在,创建一个具有 workflow 权限的个人访问密钥,用于同步上流代码。首先访问 密钥创建页面,按照下图填写信息,随后将页面拉到最下方,点击绿色的 Generate token 按钮。

create-pat

接着,页面会跳转到创建成功页面,点击图中的 复制 图标,复制生成的 PAT 密钥备用。

copy-pat-token

现在只需为仓库添加下表中的三个密钥,具体过程请查看上方视频(视频中未添加 PAT,你要自己加上)。

NameValue
PATGithub 个人访问密钥,需要具有 workflow 权限
USERE5 管理员邮箱(支持多个,每行一个,不要填写子号)
PASSWDE5 管理员密码(支持多个,每行一个,顺序必须和邮箱一致)

现在按照 链接 说明,关闭 E5 管理员账号的 两步验证(多因素认证、安全默认值)

一定要按照链接里的1-5步关闭两步验证(多因素认证、安全默认值),否则无法注册成功,进而无法调用 API。

现在转到 Action 面板,在 All workflows 下找到 Register APP,手动触发它完成注册流程,2 分钟左右。如果确认一切操作正确仍然 Register 失败,可等待 10-30min 后再操作,因为关闭安全默认值后,微软系统要过一段时间才会刷新。

如果 Action 面板找不到 Register APP,则修改 .github/workflows 目录下的两个文件,随便添加一行注释保存,详细过程见上方视频。如果 Action 面板不显示,则到仓库的 Settings -> Actions -> Actions permissions 勾选 Allow all actions 后保存,具体参考 该链接。部分用户账号由于之前跑其它违规项目被封禁 Action 功能的,自行注册新账号。

运行成功演示

务必确保运行日志如下图一样包含成功字样,否则必须按照提示解决问题后再重新启动注册动作,直到注册成功。

应用注册成功

应用注册成功

API 调用成功

API 调用成功

再找到 Invoke API 手动触发它看能否成功调用 API。如无错误,任务会定时执行,基本可保证续订成功。最后如果你想使用 OneDrive 搭建个人网盘,可参考 这些文章

TG 大佬群 QQ 大佬群

最后编辑于: 2024 年 03 月 13 日
返回文章列表 文章二维码
本页链接的二维码
打赏二维码
添加新评论

Loading captcha...

已有 502 条评论
  1. Allen Allen   Windows 10 x64 Edition  Google Chrome 108.0.0.0

    感谢大神,一开始运行register总报错,Error: Process completed with exit code 1.,后来把两步验证里面的安全默认值调整好(此处有可能是网络问题,(解决方法:关闭所有去广告的插件,管家,等等),如果进入active dictionary中左侧导航栏有很多不可点击的,那么就是和我遇到同样问题了,此时,再试两遍,通关!

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 110.0.0.0

      @AllenNice experience sharing.

  2. shki shki   Windows 10 x64 Edition  Google Chrome 110.0.0.0

    您好,请问这是什么问题?卡在这里4个小时了,群进不去orz
    bash wrapper.sh register
    shell: /usr/bin/bash -e {0}
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.9/x64/lib
    VENV: .venv/bin/activate
    没有找到配置文件, 请执行应用注册 Action.

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 110.0.0.0

      @shkiProbably due to wrong password or not disabling security defaults. By the way, you've been in the group before commenting.

    2. shki shki   Windows 10 x64 Edition  Google Chrome 110.0.0.0

      @LOGI感谢回复,听从您的建议更改了账号,困扰的问题得到解决

  3. zpsure1 zpsure1   Windows 10 x64 Edition  Google Chrome 109.0.0.0

    报错actions/checkout@v3, actions/setup-python@v4, snok/install-poetry@v1, and actions/cache@v3 are not allowed to be used in zpsure1/zp1235.

  4. xinapore xinapore   Windows 10 x64 Edition  Google Chrome 108.0.0.0

    大佬你好,文中提到了微软的要求是“API 被频繁且无规律调用”,但是您设置的API调用貌似是定时的;请问这可以成功续期吗?

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @xinaporeYes, but you can't make a high random scheduling due to Github's limited execution time and job triggering mechanism. Even though, a lot of people have been managing to get a renewal, which means the demand for real random execution is not so necessary.

  5. QR_noob QR_noob   Windows 10 x64 Edition  Google Chrome 107.0.0.0

    为什么运行成功但转到仪表盘剩余天数还是和之前一样

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @QR_noobOf course, read through the comments which I have made as replies to others.

  6. 木木 木木   Windows 10  Google Chrome 108.0.0.0

    我的GitHub上看不着actions

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @木木Read the last but one paragraph.

    2. 木木 木木   iOS 16.3  Safari 16.0

      @LOGI弄好了,但是我看我的订阅还没续期

    3. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @木木New subscription will not be achieved until about 30 days before the expiration time of the current one. Microsoft has an automatic job which is triggered by the expiration time, evaluating whether your account is qualified to get the next subscription based on the statistics of the activity of that account. My program is trying to make your account active, but not ensure the account will be considered as qualified, which should be known to everyone who are using the program.

  7. ZhuZhaoqi ZhuZhaoqi   Mac OS X 10.15.7  Safari 16.2

    视频放不出来@(呵呵)

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @ZhuZhaoqiClick the play button manually.

  8. manun2nd manun2nd   Windows 10 x64 Edition  Google Chrome 108.0.0.0

    @(呵呵)

  9. asas asas   Windows 10 x64 Edition  Firefox 108.0

    Error: Process completed with exit code 1.
    你好,我遇到这个问题,不知道如何解决,可以指教一下吗

    1. asas asas   Windows 10 x64 Edition  Firefox 108.0

      @asasERROR: Resource '46cd285a-0069-4937-b38e-e9804ffe21bc' does not exist or one of its queried reference-property objects are not present.
      错误信息还有这个

    2. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @asasThese messages provided are not so helpful. People reside in the discussion groups which can be found before the comment area and after the post text of this page are those who will give you help. Joining in one of the groups you like or both.

  10. SYQ SYQ   Windows 10 x64 Edition  Google Chrome 108.0.0.0

    你好,我有一个小问题,这个续期是只用管理员触发API吗?还是说所有子账号也要触发API?@(疑问)

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @SYQHardly will you have that problem provided thorough reading.

  11. xun xun   Windows 10 x64 Edition  Google Chrome 108.0.0.0

    一直在这一步出现错误:
    Run bash wrapper.sh register

    Error: Process completed with exit code 1.
    大佬能看看这个是什么原因吗?这几天一直是这个问题,是我本身的账号原因吗?

    1. xun xun   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @xun报错的一些信息(因为大佬的评论每次都不能超过200字符只能这么放了):
      ##[debug]/usr/bin/bash -e /home/runner/work/_temp/da6d12d0-abc6-4148-93e4-21a5aad34802.sh

    2. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @xunJoin the discussion group following the article.

  12. Goodyear Goodyear   Windows 10 x64 Edition  Google Chrome 92.0.4515.131

    这个能解决2年有效期问题?

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @GoodyearWhat you said is not related to that of this post.

    2. Goodyear Goodyear   iOS 16.1  Mozilla Compatible

      @LOGI谢谢,回复,我是想问一个E5账号只有两年有效期嘛。这两年过了再重新申请一个E5账号吗?

    3. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 108.0.0.0

      @GoodyearDo some reading work.

  13. Nov Nov   Windows 10 x64 Edition  Google Chrome 106.0.0.0

    没有找到配置文件, 请执行应用注册 Action.
    Error: Process completed with exit code 1.
    一直提示这个怎么破?

    1. Licus Licus   Windows 10 x64 Edition  Google Chrome 109.0.0.0

      @Nov先跑Register app里的Run Workflow才能跑Invoke Api.

  14. kong kong   Windows 10 x64 Edition  Google Chrome 107.0.0.0

    大佬,E5不是可以分配25个子账号吗,刷API续期,是用其中一个子账号的API就醒了吗,
    不需要25个子号全都刷吧

  15. May May   Windows 10 x64 Edition  Google Chrome 107.0.0.0

    Input required and not supplied: token, 请问怎么解决?

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 107.0.0.0

      @MayRead through the article seriously.

  16. Hello Hello   Windows 10 x64 Edition  Firefox 79.0

    大佬 有个问题 我填了两个账号 但是Invoke API中的Test Api 只显示一个账号调用成功 咋回事啊

  17. Ice Year Ice Year   Android 6.0  Google Chrome 107.0.0.0

    一个小建议:是否可增加Circle CI 续期功能?
    Circle CI也是一个成熟的CI/CD工作流平台,增加Workflow的Circle CI版本可在一定程度上规避Github封号风险,而且Circle CI执行效率较Github Action更高。它的yml配置也与Github相似。

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 107.0.0.0

      @Ice YearPR is welcomed.

  18. 洗衣机 洗衣机   Windows 10 x64 Edition  Google Chrome 106.0.0.0

    Error: .github#L1
    snok/install-poetry@v1 is not allowed to be used in Z-letter/Office365E5Keep. Actions in this workflow must be: within a repository owned by Z-letter or created by GitHub.
    这是什么情况

    1. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 107.0.0.0

      @洗衣机Not following the post deserves no reply.

  19. renciarjou renciarjou   Windows 10 x64 Edition  Google Chrome 107.0.0.0

    大佬,想问一下,在文章末尾-运行成功演示,这个点击出来图片如何设置的呀?谢谢了

  20. 特别甜的蓝天 特别甜的蓝天   Windows 10 x64 Edition  Google Chrome 106.0.0.0

    之前一直正常运行 最近开始在Test Api这出错
    VENV: .venv/bin/activate
    PASSWD: ***
    应用信息已解密

    应用信息已加密
    Error: Process completed with exit code 1.

    1. Foresc Foresc   Windows 10 x64 Edition  Google Chrome 107.0.0.0

      @特别甜的蓝天我也出现一样的问题

    2. LOGI LOGI   Windows 10 x64 Edition  Google Chrome 107.0.0.0

      @ForescDiscussion groups follow the post.