├── .gitattributes
├── .gitignore
├── .vscode
├── extensions.json
└── settings.json
├── LICENSE
├── README.md
├── README_ZH.md
├── check.cmd
├── configuration.ps1
├── features
├── README.md
├── README_ZH.md
├── addDocuments
│ ├── apply.ps1
│ └── docs
│ │ ├── custom.css
│ │ ├── custom.js
│ │ ├── custom_zh-CN.css
│ │ ├── en
│ │ ├── input.html
│ │ ├── multiuser.html
│ │ ├── options.html
│ │ ├── readme.html
│ │ ├── store.html
│ │ └── wsl2.html
│ │ ├── github-markdown.css
│ │ └── zh-CN
│ │ ├── input.html
│ │ ├── multiuser.html
│ │ ├── options.html
│ │ ├── readme.html
│ │ ├── store.html
│ │ └── wsl2.html
├── addNewIsolatedUserScript
│ ├── apply.ps1
│ └── script.ps1
├── addQuickSettings
│ └── apply.ps1
├── addUserFirstRun
│ ├── apply.ps1
│ └── script.ps1
├── applyBetterTouchpadGestures
│ ├── README.md
│ ├── apply.ps1
│ └── apply.reg
├── applyClassicPhotoViewer
│ ├── apply.ps1
│ └── apply.reg
├── applyOptimization
│ └── apply.ps1
├── applyPrivacyProctection
│ ├── apply.ps1
│ └── apply.reg
├── applyRemapIcon
│ └── apply.ps1
├── customGitBash
│ ├── .bashrc
│ └── apply.ps1
├── customGitTig
│ ├── .tigrc
│ └── apply.ps1
├── customMintty
│ ├── .minttyrc
│ └── apply.ps1
├── customPwshProfile
│ ├── apply.ps1
│ ├── git-aliases.txt
│ ├── profile.ps1
│ └── update-git-aliases.ps1
├── customSshKnownHosts
│ ├── apply.ps1
│ └── known_hosts
├── customVim
│ ├── .vimrc
│ ├── apply.ps1
│ └── g.vimrc
├── debloatCloudapps
│ └── apply.ps1
├── debloatNewEmailAndCalendar
│ └── apply.ps1
├── debloatNewMediaPlayer
│ └── apply.ps1
├── debloatNewPhotoViewer
│ └── apply.ps1
├── debloatOneDrive
│ └── apply.ps1
├── debloatXbox
│ └── apply.ps1
├── disableAd
│ └── apply.ps1
├── enableClipboardHistory
│ └── apply.ps1
├── enableSshAgent
│ └── apply.ps1
├── fixAppxNetIsolation
│ └── apply.ps1
├── fixHidpiBlur
│ └── apply.ps1
├── tweakContextmenu
│ └── apply.ps1
├── tweakExplorer
│ ├── apply.ps1
│ └── showDevicesOnlyInThisPc.reg
├── tweakIme
│ └── apply.ps1
├── tweakNewFileTypes
│ └── apply.ps1
├── tweakSendTo
│ └── apply.ps1
├── tweakStartmenu
│ └── apply.ps1
└── tweakTaskbar
│ └── apply.ps1
├── lib
├── applyFeatures.ps1
├── assets
│ └── TaskbarLayoutModification.xml
├── doMakeActionsFolder.ps1
├── doPowershellUpdate.ps1
├── loadModules.ps1
├── main.ps1
├── modules
│ ├── Api.Appx
│ │ └── Api.Appx.psm1
│ ├── Api.Common
│ │ └── Api.Common.psm1
│ ├── Api.Environment
│ │ └── Api.Environment.psm1
│ ├── Api.Filesystem
│ │ └── Api.Filesystem.psm1
│ ├── Api.Installer
│ │ └── Api.Installer.psm1
│ ├── Api.Registry
│ │ └── Api.Registry.psm1
│ ├── Api.Shortcut
│ │ └── Api.Shortcut.psm1
│ ├── ConfigLoader
│ │ └── ConfigLoader.psm1
│ ├── ConsoleHelper
│ │ └── ConsoleHelper.psm1
│ ├── Environment.Common
│ │ └── Environment.Common.psm1
│ ├── Environment.OSVersion
│ │ └── Environment.OSVersion.psm1
│ ├── GUI
│ │ └── GUI.psm1
│ ├── PoshRSJob.Extension
│ │ └── PoshRSJob.Extension.psm1
│ ├── PoshRSJob
│ │ ├── PoshRSJob.psd1
│ │ ├── PoshRSJob.psm1
│ │ ├── Private
│ │ │ ├── ConvertScript.ps1
│ │ │ ├── ConvertScriptBlockV2.ps1
│ │ │ ├── FindFunction.ps1
│ │ │ ├── GetFunctionByFile.ps1
│ │ │ ├── GetFunctionDefinitionByFunction.ps1
│ │ │ ├── GetParamVariable.ps1
│ │ │ ├── GetUsingVariables.ps1
│ │ │ ├── GetUsingVariablesV2.ps1
│ │ │ ├── Increment.ps1
│ │ │ ├── RegisterScriptScopeFunction.ps1
│ │ │ ├── SetIsReceived.ps1
│ │ │ └── WriteStream.ps1
│ │ ├── Public
│ │ │ ├── Get-RSJob.ps1
│ │ │ ├── Receive-RSJob.ps1
│ │ │ ├── Remove-RSJob.ps1
│ │ │ ├── Start-RSJob.ps1
│ │ │ ├── Stop-RSJob.ps1
│ │ │ └── Wait-RSJob.ps1
│ │ ├── Scripts
│ │ │ └── TabExpansion.ps1
│ │ ├── TypeData
│ │ │ ├── PoshRSJob.Format.ps1xml
│ │ │ └── PoshRSJob.Types.ps1xml
│ │ └── en-US
│ │ │ └── about_PoshRSJob.help.txt
│ └── UnattendGenerator
│ │ ├── UnattendGenerator.psm1
│ │ └── unattend.xml
├── submit.ps1
├── submitNewTaskbarLayout.ps1
├── submitNewUnattendFile.ps1
├── submitNewUserRegistry.ps1
└── tryToManuallyAddPkgs.ps1
├── packages
├── .gitignore
├── README.md
├── README_ZH.md
├── __deploy__.cmd
├── __info__.cmd
├── __verify__.cmd
├── config
│ ├── 7zip-zstd.reg
│ ├── Everything.ini
│ ├── altsnap.ini
│ ├── git.ini
│ ├── setupAltsnap.ps1
│ └── workrave.reg
├── lib
│ ├── get-valid-subjects.ps1
│ ├── main.ps1
│ ├── signatures.csv
│ └── verify.ps1
└── scripts
│ ├── 7zip-zstd.ps1
│ ├── adb.ps1
│ ├── altsnap.ps1
│ ├── chocolatey.ps1
│ ├── cyberduck.ps1
│ ├── everything.ps1
│ ├── firefox.ps1
│ ├── git.ps1
│ ├── gsudo.ps1
│ ├── gvim.ps1
│ ├── imdisk.ps1
│ ├── kde-connect.ps1
│ ├── obs.ps1
│ ├── openssh.ps1
│ ├── powershell-core.ps1
│ ├── qbittorent.ps1
│ ├── sysinternals.ps1
│ ├── tabby.ps1
│ ├── thunderbird.ps1
│ ├── twinkle-tray.ps1
│ ├── vbox.ps1
│ ├── veracrypt.ps1
│ ├── vlc.ps1
│ ├── vscode.ps1
│ └── workrave.ps1
├── samples
├── README_ZH.md
├── copyout.cmd
├── copyout.ps1
├── sample-for-developer.ps1
├── sample-for-ime.ps1
├── sample-for-laptop.ps1
├── sample-for-unattend_file.ps1
├── sample-to-add_document.ps1
├── sample-to-add_isolation_userscript.ps1
├── sample-to-add_quicksettings.ps1
├── sample-to-debloat.ps1
├── sample-to-debloat_cloudapps.ps1
├── sample-to-debloat_xbox.ps1
├── sample-to-disable_ad.ps1
├── sample-to-keep_privacy.ps1
├── sample-to-optimize.ps1
├── sample-to-tweak_explorer.ps1
└── sample-to-tweak_taskbar.ps1
├── setup.cmd
└── tools
├── Apply Your Features.cmd
├── README_ZH.md
├── apply-feature.ps1
├── lib
├── applyall-features.ps1
└── print-config.ps1
├── load-modules.ps1
└── setup-package.ps1
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.ps1 text working-tree-encoding=utf-16le-bom eol=crlf
2 | *.psm1 text working-tree-encoding=utf-16le-bom eol=crlf
3 | *.psd1 text working-tree-encoding=utf-16le-bom eol=crlf
4 | *.reg text working-tree-encoding=utf-16le-bom eol=crlf
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.swp
2 |
3 | /config-override.ps1
4 | /sample-*.ps1
5 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-vscode.powershell",
4 | "esbenp.prettier-vscode",
5 | "bierner.markdown-mermaid"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "files.associations": {
3 | "*.reg": "ini",
4 | "**/lib/newdesktop/*.txt": "markdown",
5 | "**/features/customPwshProfile/git-aliases.txt": "shellscript"
6 | },
7 | "search.exclude": {
8 | "**/lib/modules/PoshRSJob": true
9 | },
10 | "[ini]": {
11 | "files.encoding": "utf16le",
12 | "editor.wordWrap": "off"
13 | },
14 | "[powershell]": {
15 | "files.encoding": "utf16le",
16 | "editor.wordWrap": "off"
17 | },
18 | "[md]": {
19 | "editor.defaultFormatter": "esbenp.prettier-vscode"
20 | },
21 | "[html]": {
22 | "editor.defaultFormatter": "esbenp.prettier-vscode"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 LittleboyHarry
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🪟 Your Windows System Preparation
2 |
3 | Auto setup or config Your Windows by One Click.
4 |
5 | 
6 |
7 | Suitable: Win11/Win10, [Win7](./win7/README.md). x64 CPU arch.
8 |
9 | [](https://news.ycombinator.com/item?id=33715265)
10 |
11 | This README is also available in languages: [🇨🇳 简体中文](./README_ZH.md)
12 |
13 | ## 🤔 How To Use?
14 |
15 | 1. Git clone or download this repository into your U disk.
16 | 2. Copy or learn the config files from `samples/`
17 | 3. [Enable or tweak features in `configuration.ps1`](./features/README.md)
18 | 4. [Add packages into `packages/`](./packages/README.md)
19 |
20 | ### 🚩 Deploy On New Machine
21 |
22 | Please read the documentation: [Audit Mode](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-windows-to-audit-mode-or-oobe)
23 |
24 | ```mermaid
25 | flowchart TD
26 | subgraph target [New Machine]
27 | newsys[New Installed Windows] -- press Ctrl + Shift + F3 at startpage --> auditmode[Audit Mode]
28 | subgraph sysprep [ ]
29 | direction LR
30 | auditmode --> generlized[Generlized Boilerplate System]
31 | end
32 | instance[Instanced New System]
33 | end
34 | subgraph U disk
35 | fetch[fetch this repository] -- get packages and config --> bundle[Prepared Bundle]
36 | generlized -. capture .-> image[Personalized System Image]
37 | end
38 | bundle -- setup.cmd --o sysprep
39 | generlized --> instance
40 | image -. apply .-> instance
41 | ```
42 |
43 | ### ⚙️ Deploy On Existed System
44 |
45 | ```mermaid
46 | flowchart TB
47 | fetch[fetch this repository] -- get packages and config --> bundle[Prepared Bundle]
48 | subgraph config [Target Machine]
49 | old[Current System] -- setup.cmd --> new[Optimized System]
50 | end
51 | bundle --o config
52 | ```
53 |
54 | ## ⚠️ Warning
55 |
56 | DISCLAIMER: You're doing this at your own risk, I am not responsible for any data loss or damage that may occur.
57 |
58 | ## 🌟 Install a new Windows
59 |
60 |
61 | Binary Assets ...
62 |
63 |
64 | System Images:
65 |
66 | - [Windows 10](https://www.microsoft.com/software-download/windows10)
67 | - [Windows 11](https://www.microsoft.com/software-download/windows11)
68 |
69 | Get U disk image writer:
70 |
71 | - Ventoy: multi images boot support
72 |
73 | [Official GitHub Release](https://github.com/ventoy/Ventoy/releases/latest)
74 |
75 | - Rufus: only single image, more options and better compatibility
76 |
77 | find `*p.exe` at [Official GitHub Release](https://github.com/pbatard/rufus/releases/latest)
78 |
79 |
80 |
81 |
82 | ## 💿 Make and Apply a System Image
83 |
84 |
85 | Encapsule as an Image ...
86 |
87 |
88 | 1. Generalized shutdown in `sysprep.exe`
89 | 2. Boot into Recovery Mode or WinPE in USB
90 | 3. Check or mount driver letters, list a table:
91 |
92 | echo lis vol | diskpart
93 |
94 | 4. Set temporary directory to attain enough disk space:
95 |
96 | set tmp=d:\tmp
97 | mkdir %tmp%
98 |
99 | 5. Capture command: (open README.md by notepad.exe to copy code)
100 |
101 | start cmd /k dism /capture-image /verify /checkintegrity /name:mysys /compress:max /capturedir:c: /imagefile:d:\mywin.esd
102 |
103 | | Command Parameters | Usage |
104 | | ----------------------- | -------------------------------- |
105 | | start cmd /k | run it in new command prompt |
106 | | /capturedir | the system partition letter |
107 | | /imagefile | type your full backup image path |
108 | | /name | customized Name |
109 | | /compress | (optional) max,fast,none |
110 | | /verify /checkintegrity | (optional) |
111 |
112 | `.wim` is a legacy compatible and low compression format
113 |
114 | `.esd` is the new high compression ratio format with long compression time
115 |
116 |
117 |
118 |
119 | Restore from an Image ...
120 |
121 |
122 | 1. Boot into Recovery Mode or WinPE in USB
123 | 2. Mount the target system partition as C drive
124 | 3. Restore command: (open README.md by notepad.exe to copy code)
125 |
126 | dism /apply-image /index:1 /verify /applydir:c: /imagefile:D:\backup\system.esd
127 |
128 | Attention:
129 |
130 | - `/index` should be 1 as default
131 | - optional: `/verify`
132 | - optional: `/compact` slim down system data, from 40G~ to 20G~ as usual
133 |
134 | Adding a UEFI boot entry:
135 |
136 | mountvol u: /s
137 | bcdboot c:\windows /s u:
138 |
139 |
140 |
141 |
142 | ## 🧋 Buy me a coffee
143 |
144 | Alipay|WeChat Pay
145 | ---|---
146 | |
147 |
--------------------------------------------------------------------------------
/README_ZH.md:
--------------------------------------------------------------------------------
1 | # Windows 一键部署脚手架
2 |
3 | 适用于:Win11/Win10, [Win7](./win7/README.md)
4 |
5 | ## 使用方法
6 |
7 | 1. 克隆本项目代码到 U 盘内
8 | 2. [参考或复制 `samples/` 目录内的配置文件](./samples/README_ZH.md)
9 | 3. [修改 `configuration.ps1` 激活/配置所需特性](./features/README_ZH.md)
10 | 4. [添加安装包到 `packages/` 目录内](./packages/README_ZH.md)
11 |
12 | ### 部署到新机器上
13 |
14 | 请先阅读相关说明:[审核模式](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-windows-to-audit-mode-or-oobe)
15 |
16 | ```mermaid
17 | flowchart TD
18 | subgraph target [新机器]
19 | newsys[新安装好的系统] -- 在启动页内按 Ctrl + Shift + F3 --> auditmode[审核模式]
20 | subgraph sysprep [ ]
21 | direction LR
22 | auditmode --> generlized[配置后通用化的新系统]
23 | end
24 | instance[实例化的新系统]
25 | end
26 | subgraph U盘
27 | fetch[获取本项目源码] -- 获取安装包并自定义配置 --> bundle[准备好的部署工具]
28 | generlized -. 捕抓 .-> image[个性化的系统镜像]
29 | end
30 | bundle -- setup.cmd --o sysprep
31 | generlized --> instance
32 | image -. 释放 .-> instance
33 | ```
34 |
35 | ### 部署到现有系统上
36 |
37 | ```mermaid
38 | flowchart TB
39 | fetch[获取本项目源码] -- 获取安装包并自定义配置 --> bundle[准备好的部署工具]
40 | subgraph config [目标机器]
41 | old[当前系统] -- setup.cmd --> new[调整过的系统]
42 | end
43 | bundle --o config
44 | ```
45 |
46 | ## 免责声明
47 |
48 | ⚠️ 使用本软件存在用户个人数据丢失的风险,使用本功能前,用户应对重要数据进行备份。因用户未能进行充分备份而导致的任何硬盘数据损失,作者不承担任何赔偿责任。
49 |
50 | ## 安装新 Windows 系统
51 |
52 |
53 | 获取安装资源 ……
54 |
55 |
56 | 下载系统镜像:
57 |
58 | - [Windows 10](https://www.microsoft.com/zh-cn/software-download/windows10)
59 | - [Windows 11](https://www.microsoft.com/zh-cn/software-download/windows11)
60 |
61 | 获取 U 盘刻录器:
62 |
63 | - Ventoy: 多镜像启动支持
64 |
65 | [南京大学镜像站](https://mirrors.nju.edu.cn/github-release/ventoy/Ventoy)
66 |
67 | - Rufus: 仅单一镜像,但选项更多、兼容性更好
68 |
69 | 找到 `Portable Version` 下载,[FOSSHub](https://www.fosshub.com/Rufus.html)
70 |
71 | 获取分区辅助工具:
72 |
73 | - DiskGenius
74 |
75 | 找到 `单文件PE版` 并选兼容旧电脑的 32 位版本,
76 | 见[官方下载页](https://www.diskgenius.cn/download.php)
77 |
78 | - [傲梅分区助手](https://www2.aomeisoftware.com/download/pacn/%E5%88%86%E5%8C%BA%E5%8A%A9%E6%89%8BPE.exe)
79 |
80 | 干净的 WinPE:
81 |
82 | - [微 PE 工具箱](https://www.wepe.com.cn/ubook/start.html)
83 | - [优启通 EasyU](https://www.upe.net/)
84 |
85 |
86 |
87 |
88 | ## 制作并使用系统镜像
89 |
90 |
91 | 封装为新镜像……
92 |
93 |
94 | 1. 使用 `sysprep.exe` 通用化封装后关机
95 | 2. 进入恢复模式或从 USB 启动 WinPE
96 | 3. 检查或挂在盘符,列出盘符表:
97 |
98 | echo lis vol | diskpart
99 |
100 | 4. 设置足量的存储空间作暂存区:
101 |
102 | set tmp=d:\tmp
103 | mkdir %tmp%
104 |
105 | 5. 打包为新镜像:( 使用 notepad.exe 打开 README_ZH.md 以复制代码 )
106 |
107 | start cmd /k dism /capture-image /verify /checkintegrity /name:mysys /compress:max /capturedir:c: /imagefile:D:\mywin.esd
108 |
109 | | Command Parameters | Usage |
110 | | ----------------------- | -------------------------- |
111 | | start cmd /k | 在分离的新窗口内执行 |
112 | | /capturedir | 填入捕抓的系统盘符 |
113 | | /imagefile | 备份镜像的完整路径名 |
114 | | /name | 名称自定 |
115 | | /compress | 可选参数:max,fast,none |
116 | | /verify /checkintegrity | 可选参数:完整性和错误校验 |
117 |
118 | - 旧版兼容的低压缩率格式:`.wim`
119 | - 新版压缩时间长的高压缩率格式:`.esd`
120 |
121 |
122 |
123 |
124 |
125 | 从镜像中恢复……
126 |
127 |
128 | 1. 进入恢复模式或从 USB 启动 WinPE
129 | 2. 建议把目标的系统分区挂载为 C 盘
130 | 3. 执行恢复指令:( 使用 notepad.exe 打开 README_ZH.md 以复制代码 )
131 |
132 | dism /apply-image /index:1 /verify /applydir:c: /imagefile:D:\backup\system.esd
133 |
134 | 注意事项:
135 |
136 | - `/index` 一般必填 1
137 | - 可选参数:`/verify` 输出错误信息
138 | - 可选参数:`/compact` 安装时压缩 C 盘系统占用空间,约从 40G~ 降到 20G~
139 |
140 | 添加 UEFI 启动项:
141 |
142 |
143 | mountvol u: /s
144 | bcdboot c:\windows /s u:
145 |
146 |
147 |
148 |
--------------------------------------------------------------------------------
/check.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd /d %~dp0
3 | powershell -exec bypass -file tools\lib\print-config.ps1
4 | pause
5 |
--------------------------------------------------------------------------------
/configuration.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/configuration.ps1
--------------------------------------------------------------------------------
/features/README.md:
--------------------------------------------------------------------------------
1 | Translation: [中文](./README_ZH.md)
2 |
3 | | name | usage |
4 | | --------------------------- | -------------------------------------------------------- |
5 | | addDocuments | add documentation |
6 | | addNewIsolatedUserScript | add "New Privacy-isolated User" guidance into Start Menu |
7 | | addQuickSettings | |
8 | | addUserFirstRun | |
9 | | applyPrivacyProctection | |
10 | | applyClassicPhotoViewer | recommended |
11 | | applyOptimization | recommended |
12 | | applyRemapIcon | recommended |
13 | | applyBetterTouchpadGestures | preferred touchpad gestures |
14 | | customGitBash | custom Git Bash profile |
15 | | customGitTig | custom Git Tig |
16 | | customSshKnownHosts | custom verified known hosts |
17 | | customMintty | custom Mintty terminal |
18 | | customPwshProfile | custom PowerShell profile |
19 | | customVim | custom Vim profile |
20 | | debloatOneDrive | |
21 | | debloatXbox | |
22 | | disableAd | |
23 | | debloatNewEmailAndCalendar | debloat new UWP apps |
24 | | debloatNewMediaPlayer | debloat new UWP apps |
25 | | debloatNewPhotoViewer | debloat new UWP apps |
26 | | debloatCloudapps | debloat Microsoft provisioned cloud applications |
27 | | enableClipboardHistory | |
28 | | enableSshAgent | to remember and passthrough the passphrases of ssh keys |
29 | | fixHidpiBlur | fix bug |
30 | | tweakIme | tweak input method ... |
31 | | tweakContextmenu | ... |
32 | | tweakExplorer | ... |
33 | | tweakStartmenu | ... |
34 | | tweakTaskbar | ... |
35 |
--------------------------------------------------------------------------------
/features/README_ZH.md:
--------------------------------------------------------------------------------
1 | | 名称 | 作用 |
2 | | --------------------------- | ---------------------------------- |
3 | | addDocuments | 添加实用说明文档 |
4 | | addNewIsolatedUserScript | 添加“新数据保护隔离账号”到开始菜单 |
5 | | addQuickSettings | 添加实用的快捷方式 |
6 | | addUserFirstRun | |
7 | | applyPrivacyProctection | |
8 | | applyClassicPhotoViewer | 作者推荐 |
9 | | applyOptimization | 作者推荐 |
10 | | applyRemapIcon | 作者推荐 |
11 | | applyBetterTouchpadGestures | 作者推荐的触摸板手势 |
12 | | customGitBash | 自定义 Git Bash 配置 |
13 | | customGitTig | 自定义 Git Tig 工具 |
14 | | customSshKnownHosts | 自定义 Git 主机验证 |
15 | | customMintty | 自定义 Mintty 终端外观 |
16 | | customPwshProfile | 自定义 PowerShell 配置 |
17 | | customVim | 自定义 Vim 配置 |
18 | | debloatOneDrive | 卸载 OneDrive |
19 | | debloatXbox | 卸载 Xbox |
20 | | disableAd | 屏蔽广告 |
21 | | debloatNewEmailAndCalendar | 移除内置的 UWP 应用 |
22 | | debloatNewMediaPlayer | 移除内置的 UWP 应用 |
23 | | debloatNewPhotoViewer | 移除内置的 UWP 应用 |
24 | | debloatCloudapps | 移除微软提供的云应用 |
25 | | enableClipboardHistory | 激活历史剪贴板 |
26 | | enableSshAgent | 记忆并传递 SSH 密钥 |
27 | | fixHidpiBlur | 修复显示问题 |
28 | | tweakIme | 调整输入法 ... |
29 | | tweakContextmenu | ... |
30 | | tweakExplorer | ... |
31 | | tweakStartmenu | ... |
32 | | tweakTaskbar | ... |
33 |
--------------------------------------------------------------------------------
/features/addDocuments/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addDocuments/apply.ps1
--------------------------------------------------------------------------------
/features/addDocuments/docs/custom.css:
--------------------------------------------------------------------------------
1 | .markdown-body {
2 | box-sizing: border-box;
3 | min-width: 200px;
4 | max-width: 800px;
5 | margin: 0 auto !important;
6 | padding: 45px;
7 | }
8 | @media (max-width: 767px) {
9 | .markdown-body {
10 | padding: 15px;
11 | }
12 | }
13 |
14 | p > code {
15 | white-space: nowrap;
16 | }
17 |
18 | pre {
19 | user-select: all;
20 | }
21 | pre > code {
22 | user-select: text;
23 | }
24 |
25 | button {
26 | padding: 4px 16px;
27 | }
28 |
29 | .editable {
30 | position: relative;
31 | }
32 |
33 | .editable > pre {
34 | box-sizing: border-box;
35 | min-height: calc(16px + 1rem + 16px * 2);
36 |
37 | padding: calc(16px + 0.5em);
38 | }
39 |
40 | .editable::before {
41 | content: "Edit";
42 | display: flex;
43 | align-items: center;
44 | justify-content: center;
45 |
46 | position: absolute;
47 | bottom: 16px;
48 | right: 16px;
49 | width: 53px;
50 | height: 33px;
51 |
52 | border: 1px solid;
53 | border-radius: 6px;
54 | border-color: gray;
55 | background-color: rgba(96, 96, 96, 0.62);
56 | color: white;
57 |
58 | opacity: 0;
59 | transition: opacity 0.1s;
60 |
61 | cursor: pointer;
62 | }
63 | .editable:hover::before {
64 | opacity: 1;
65 | }
66 |
67 | .editable.editing > pre {
68 | outline: 1px solid;
69 | user-select: text;
70 | }
71 | .editable.editing::before {
72 | content: "Done";
73 | width: 60px;
74 | }
75 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/custom.js:
--------------------------------------------------------------------------------
1 | document.addEventListener("click", ({ target }) => {
2 | if (target.classList.contains("editable")) {
3 | const willEditing = !target.classList.contains("editing");
4 | target.contentEditable = willEditing;
5 | target.classList.toggle("editing", willEditing);
6 | target.children[0].style.resize = willEditing ? "vertical" : null;
7 | if (willEditing) {
8 | target.spellcheck = false;
9 | }
10 | }
11 | });
12 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/custom_zh-CN.css:
--------------------------------------------------------------------------------
1 | .editable::before {
2 | content: "编辑";
3 | }
4 | .editable.editing::before {
5 | content: "完成修改";
6 | width: calc(16px * 2 + 4rem);
7 | }
8 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/input.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Input & Keyboard
11 |
12 |
13 | Disable Application Shortcuts
14 |
15 | Some built-in applications can take up global shortcuts and cause
16 | conflicts, e.g. AMD Control Panel takes up
17 | Ctrl + Shift + L
shortcuts, NVDIA graphics programs, etc.
18 | They should be disabled.
19 |
20 | Remap Modifier Keys
21 |
22 | Use MacOS-style ...
23 |
24 |
25 | This schema is conducive to improving typing and triggering shortcuts,
26 | and reducing muscle strain.
27 |
28 |
29 |
30 | New order like Win
Alt
31 | Ctrl
32 |
33 | Swap CapsLock
and Esc
34 |
35 | Enable: (RunAs Admin)
36 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000600000001003A003A0001001D0038005BE01D0038005BE000000000 /f
37 | Disable: (RunAs Admin)
38 | reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
39 | Log out and log in to take effect.
40 |
41 | If you have additional requirements, you can use sharpkeys
42 |
43 |
44 |
45 | Underline Access Keys
46 |
47 | Press Alt key to trigger button or menu item, without mouse operation.
48 |
49 | Sticky keys
50 | Press shift
key 5 times to activate.
51 |
52 | Optimize: press modifier key, once to activate, twice to lock, three times
53 | to simulate down and up
54 |
55 | reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 190 /f
56 |
57 |
58 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/multiuser.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Multi User Isolation Proctection
11 |
12 |
13 |
14 | Protect your personal data by isolating system access to resources with a
15 | multi-user mechanism
16 |
17 | Create a new User
18 | Find New Isolated User
from the start menu.
19 |
20 |
21 | Determine if the new user will be used for a specific application?
22 |
23 |
24 | Enter the app ID (lowercase) or username (disallow spaces or quotes)
25 |
26 |
27 | Set File Permissons
28 |
29 |
30 | C:\Users are isolated from each other normal users ...
31 |
32 |
33 | Only supported in NTFS partitions:
34 |
35 |
36 | Find the files, folders, drives, special devices and objects that need
37 | to be protected
38 |
39 | Right click "Properties" > "Security" > "Edit"
40 | Add whitelisted user(group) and give "Full Control" permission
41 | Remove Authenticated Users and Users permissions
42 | OK
43 |
44 |
45 | Install Applications
46 |
47 | Adjust file permission of installer.
48 |
49 | Start the installer, replace ProgramFiles into the absolute path
50 | of
51 | %HOMEPATH%\appbin
52 |
53 |
54 | Copy the absolute path of the application. Tweak
55 | EDITME as <username> at desktop
56 |
57 | Fill in the "Target" content
58 | Change the path of the icon selection program
59 |
60 |
61 |
62 | Backup and Restore
63 |
64 | How to backup? ...
65 |
66 |
67 | Open the compression software and compress the entire user folder in the
68 | C:\Users directory.
69 |
70 | Recreate the user folder:
71 | $username = Read-Host username
72 |
73 | reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$((Get-LocalUser $username).SID.Value)" /f
74 | reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$((Get-LocalUser $username).SID.Value).bak" /f
75 |
76 | runas /profile /user:$username "cmd /c exit"
77 | icacls "C:\Users\$username" /grant "${env:USERNAME}:(OI)(CI)(F)" >$null
78 |
79 |
80 | Recovery method:
81 |
82 | Decompress the compressed backup, overwrite and confirm all.
83 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/options.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Options
11 |
12 |
13 | Add dual system to boot menu
14 | If you mount the second system partition as B:
15 |
16 |
mountvol a: /s
17 | bcdboot b:\windows /addlast /d /s a:
18 |
19 |
20 |
21 | To avoid twice boot, enable classic boot menu and mark the current system
22 | as main:
23 |
24 |
25 |
bcdedit /set "{current}" bootmenupolicy legacy
26 | bcdedit /set "{current}" description Main
27 |
28 |
29 | Reset Recovery Mode
30 |
31 | How to do?
32 |
33 |
34 | Execute diskpart
, select recovery partition.
35 |
36 | Execute:
37 |
38 |
format quick fs=ntfs label=Recovery
39 | set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
40 | gpt attributes=0x8000000000000001
41 | assign letter r
42 |
43 |
44 |
45 |
46 | Use 7zip to extract \sources\install.wim
47 | 1\windows\system32\Recovery
into R:\
48 |
49 |
50 | Execute:
51 |
52 |
reagentc /setreimage /path r:\recovery
53 | reagentc /enable
54 | mountvol r: /d
55 |
56 |
57 |
58 |
59 |
60 | Grey Color Invert
61 |
62 | Suitable for invert white color mode only apps, press
63 | Win + Ctrl + C
to take effect.
64 |
65 | reg add HKCU\Software\Microsoft\ColorFiltering /v HotkeyEnabled /t REG_DWORD /f /d 1
66 | reg add HKCU\Software\Microsoft\ColorFiltering /v FilterType /t REG_DWORD /d 2 /f
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/readme.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | README.html
11 |
12 |
13 | Todo list after OOBE finished:
14 | Change Computer Name
15 |
16 | Settings
17 |
18 | Optional
19 |
25 | Create Restore Point
26 | Set in advanced system properties.
27 |
28 | Click system partition
29 | Click "Configure..."
30 | Check "Turn on system protection"
31 | Adjust "Max Usage"
32 | OK
33 | Click "Create..."
34 | Name it and confirm
35 |
36 | For Laptop
37 |
38 | Settings:
39 |
40 | Power Saver
41 |
42 |
43 | Touchpad
44 |
45 |
46 | Data Encryption
47 | Encryption makes data theft proof
48 |
49 |
50 | BitLocker Error: The system could not find the specified file
51 |
52 |
53 | mv C:\Windows\System32\Recovery\ReAgent.xml C:\Windows\System32\Recovery\ReAgent.xml.old
54 |
55 | Security
56 |
57 |
58 | Login Options
59 |
60 |
61 | Register Fingerprint
62 |
63 |
64 |
65 |
66 | Use
67 |
70 | Autologon
71 |
72 |
73 |
74 |
75 | A Microsoft provided tiny tool: after decrypt disk, make login password
76 | free
77 |
78 | sudo choco install autologon
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/store.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Microsoft Store Apps for You
11 |
12 |
13 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/en/wsl2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | WSL2
11 |
12 |
13 | Installation
14 | Execute PowerShell script as administrator:
15 |
16 |
17 | Install HyperV support
18 | dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
19 | dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
20 |
21 |
22 |
23 | Add boot menu entries (Optional):
24 |
25 |
# choose time
26 | bcdedit /timeout 2
27 | # recommend use legacy boot menu ( which won't boot twice if select not default )
28 | bcdedit /set "{current}" bootmenupolicy legacy
29 |
30 | bcdedit /set "{current}" hypervisorlaunchtype off
31 | bcdedit /copy "{current}" /d "HyperV OFF"
32 | bcdedit /set "{current}" hypervisorlaunchtype auto
33 | bcdedit /copy "{current}" /d "HyperV ON"
34 |
35 |
36 |
37 | Reboot
38 |
39 | Install or Update WSL Kernel
42 |
43 |
44 | Optional: enable "Give me updates for other Microsoft products when I
45 | update Windows" at
46 | system settings .
47 |
48 |
49 | Usage
50 | Import Linux subsystem:
51 |
52 |
$vmname = 'alpine'
53 |
54 | $fromGzip = Read-Host 'Downloaded image path' | Get-Item
55 | $toDir = Read-Host 'Storage data location' | Get-Item
56 |
57 | wsl --import $vmname $toDir $fromGzip
58 | wsl -s $vmname # make it as default subsystem
59 | wsl -d $vmname
60 |
61 |
62 | Export:
63 | wsl --export $vmname "$vmname.tar"
64 |
65 |
66 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/github-markdown.css:
--------------------------------------------------------------------------------
1 | @media (prefers-color-scheme: dark) {
2 | .markdown-body {
3 | color-scheme: dark;
4 | --color-prettylights-syntax-comment: #8b949e;
5 | --color-prettylights-syntax-constant: #79c0ff;
6 | --color-prettylights-syntax-entity: #d2a8ff;
7 | --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
8 | --color-prettylights-syntax-entity-tag: #7ee787;
9 | --color-prettylights-syntax-keyword: #ff7b72;
10 | --color-prettylights-syntax-string: #a5d6ff;
11 | --color-prettylights-syntax-variable: #ffa657;
12 | --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
13 | --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
14 | --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
15 | --color-prettylights-syntax-carriage-return-text: #f0f6fc;
16 | --color-prettylights-syntax-carriage-return-bg: #b62324;
17 | --color-prettylights-syntax-string-regexp: #7ee787;
18 | --color-prettylights-syntax-markup-list: #f2cc60;
19 | --color-prettylights-syntax-markup-heading: #1f6feb;
20 | --color-prettylights-syntax-markup-italic: #c9d1d9;
21 | --color-prettylights-syntax-markup-bold: #c9d1d9;
22 | --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
23 | --color-prettylights-syntax-markup-deleted-bg: #67060c;
24 | --color-prettylights-syntax-markup-inserted-text: #aff5b4;
25 | --color-prettylights-syntax-markup-inserted-bg: #033a16;
26 | --color-prettylights-syntax-markup-changed-text: #ffdfb6;
27 | --color-prettylights-syntax-markup-changed-bg: #5a1e02;
28 | --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
29 | --color-prettylights-syntax-markup-ignored-bg: #1158c7;
30 | --color-prettylights-syntax-meta-diff-range: #d2a8ff;
31 | --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
32 | --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
33 | --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
34 | --color-fg-default: #c9d1d9;
35 | --color-fg-muted: #8b949e;
36 | --color-fg-subtle: #484f58;
37 | --color-canvas-default: #0d1117;
38 | --color-canvas-subtle: #161b22;
39 | --color-border-default: #30363d;
40 | --color-border-muted: #21262d;
41 | --color-neutral-muted: rgba(110, 118, 129, 0.4);
42 | --color-accent-fg: #58a6ff;
43 | --color-accent-emphasis: #1f6feb;
44 | --color-attention-subtle: rgba(187, 128, 9, 0.15);
45 | --color-danger-fg: #f85149;
46 | }
47 | }
48 | @media (prefers-color-scheme: light) {
49 | .markdown-body {
50 | color-scheme: light;
51 | --color-prettylights-syntax-comment: #6e7781;
52 | --color-prettylights-syntax-constant: #0550ae;
53 | --color-prettylights-syntax-entity: #8250df;
54 | --color-prettylights-syntax-storage-modifier-import: #24292f;
55 | --color-prettylights-syntax-entity-tag: #116329;
56 | --color-prettylights-syntax-keyword: #cf222e;
57 | --color-prettylights-syntax-string: #0a3069;
58 | --color-prettylights-syntax-variable: #953800;
59 | --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
60 | --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
61 | --color-prettylights-syntax-invalid-illegal-bg: #82071e;
62 | --color-prettylights-syntax-carriage-return-text: #f6f8fa;
63 | --color-prettylights-syntax-carriage-return-bg: #cf222e;
64 | --color-prettylights-syntax-string-regexp: #116329;
65 | --color-prettylights-syntax-markup-list: #3b2300;
66 | --color-prettylights-syntax-markup-heading: #0550ae;
67 | --color-prettylights-syntax-markup-italic: #24292f;
68 | --color-prettylights-syntax-markup-bold: #24292f;
69 | --color-prettylights-syntax-markup-deleted-text: #82071e;
70 | --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
71 | --color-prettylights-syntax-markup-inserted-text: #116329;
72 | --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
73 | --color-prettylights-syntax-markup-changed-text: #953800;
74 | --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
75 | --color-prettylights-syntax-markup-ignored-text: #eaeef2;
76 | --color-prettylights-syntax-markup-ignored-bg: #0550ae;
77 | --color-prettylights-syntax-meta-diff-range: #8250df;
78 | --color-prettylights-syntax-brackethighlighter-angle: #57606a;
79 | --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
80 | --color-prettylights-syntax-constant-other-reference-link: #0a3069;
81 | --color-fg-default: #24292f;
82 | --color-fg-muted: #57606a;
83 | --color-fg-subtle: #6e7781;
84 | --color-canvas-default: #ffffff;
85 | --color-canvas-subtle: #f6f8fa;
86 | --color-border-default: #d0d7de;
87 | --color-border-muted: hsla(210, 18%, 87%, 1);
88 | --color-neutral-muted: rgba(175, 184, 193, 0.2);
89 | --color-accent-fg: #0969da;
90 | --color-accent-emphasis: #0969da;
91 | --color-attention-subtle: #fff8c5;
92 | --color-danger-fg: #cf222e;
93 | }
94 | }
95 | .markdown-body,
96 | .markdown-body img {
97 | background-color: var(--color-canvas-default);
98 | }
99 | .markdown-body {
100 | -ms-text-size-adjust: 100%;
101 | -webkit-text-size-adjust: 100%;
102 | margin: 0;
103 | color: var(--color-fg-default);
104 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
105 | sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
106 | font-size: 16px;
107 | line-height: 1.5;
108 | word-wrap: break-word;
109 | }
110 | .markdown-body h1:hover .anchor .octicon-link:before,
111 | .markdown-body h2:hover .anchor .octicon-link:before,
112 | .markdown-body h3:hover .anchor .octicon-link:before,
113 | .markdown-body h4:hover .anchor .octicon-link:before,
114 | .markdown-body h5:hover .anchor .octicon-link:before,
115 | .markdown-body h6:hover .anchor .octicon-link:before {
116 | width: 16px;
117 | height: 16px;
118 | content: " ";
119 | display: inline-block;
120 | background-color: currentColor;
121 | -webkit-mask-image: url("data:image/svg+xml, ");
122 | mask-image: url("data:image/svg+xml, ");
123 | }
124 | .markdown-body details,
125 | .markdown-body figcaption,
126 | .markdown-body figure {
127 | display: block;
128 | }
129 | .markdown-body summary {
130 | display: list-item;
131 | }
132 | .markdown-body [hidden] {
133 | display: none !important;
134 | }
135 | .markdown-body a {
136 | background-color: transparent;
137 | color: var(--color-accent-fg);
138 | text-decoration: none;
139 | }
140 | .markdown-body a:active,
141 | .markdown-body a:hover {
142 | outline-width: 0;
143 | }
144 | .markdown-body abbr[title] {
145 | border-bottom: none;
146 | text-decoration: underline dotted;
147 | }
148 | .markdown-body b,
149 | .markdown-body strong,
150 | .markdown-body table th {
151 | font-weight: 600;
152 | }
153 | .markdown-body dfn {
154 | font-style: italic;
155 | }
156 | .markdown-body h1,
157 | .markdown-body hr {
158 | border-bottom: 1px solid var(--color-border-muted);
159 | }
160 | .markdown-body h1 {
161 | padding-bottom: 0.3em;
162 | font-size: 2em;
163 | }
164 | .markdown-body mark {
165 | background-color: var(--color-attention-subtle);
166 | color: var(--color-text-primary);
167 | }
168 | .markdown-body small {
169 | font-size: 90%;
170 | }
171 | .markdown-body sub,
172 | .markdown-body sup {
173 | font-size: 75%;
174 | line-height: 0;
175 | position: relative;
176 | vertical-align: baseline;
177 | }
178 | .markdown-body sub {
179 | bottom: -0.25em;
180 | }
181 | .markdown-body sup {
182 | top: -0.5em;
183 | }
184 | .markdown-body img {
185 | border-style: none;
186 | max-width: 100%;
187 | box-sizing: content-box;
188 | }
189 | .markdown-body samp {
190 | font-family: monospace, monospace;
191 | font-size: 1em;
192 | }
193 | .markdown-body figure {
194 | margin: 1em 40px;
195 | }
196 | .markdown-body hr {
197 | box-sizing: content-box;
198 | overflow: hidden;
199 | background: 0 0;
200 | height: 0.25em;
201 | padding: 0;
202 | margin: 24px 0;
203 | background-color: var(--color-border-default);
204 | border: 0;
205 | }
206 | .markdown-body input {
207 | font: inherit;
208 | margin: 0;
209 | overflow: visible;
210 | font-family: inherit;
211 | font-size: inherit;
212 | line-height: inherit;
213 | }
214 | .markdown-body [type="button"],
215 | .markdown-body [type="reset"],
216 | .markdown-body [type="submit"] {
217 | -webkit-appearance: button;
218 | }
219 | .markdown-body [type="button"]::-moz-focus-inner,
220 | .markdown-body [type="reset"]::-moz-focus-inner,
221 | .markdown-body [type="submit"]::-moz-focus-inner {
222 | border-style: none;
223 | padding: 0;
224 | }
225 | .markdown-body [type="button"]:-moz-focusring,
226 | .markdown-body [type="reset"]:-moz-focusring,
227 | .markdown-body [type="submit"]:-moz-focusring {
228 | outline: 1px dotted ButtonText;
229 | }
230 | .markdown-body [type="checkbox"],
231 | .markdown-body [type="radio"] {
232 | box-sizing: border-box;
233 | padding: 0;
234 | }
235 | .markdown-body [type="number"]::-webkit-inner-spin-button,
236 | .markdown-body [type="number"]::-webkit-outer-spin-button {
237 | height: auto;
238 | }
239 | .markdown-body [type="search"] {
240 | -webkit-appearance: textfield;
241 | outline-offset: -2px;
242 | }
243 | .markdown-body [type="search"]::-webkit-search-cancel-button,
244 | .markdown-body [type="search"]::-webkit-search-decoration {
245 | -webkit-appearance: none;
246 | }
247 | .markdown-body ::-webkit-input-placeholder {
248 | color: inherit;
249 | opacity: 0.54;
250 | }
251 | .markdown-body ::-webkit-file-upload-button {
252 | -webkit-appearance: button;
253 | font: inherit;
254 | }
255 | .markdown-body a:hover {
256 | text-decoration: underline;
257 | }
258 | .markdown-body hr::before {
259 | display: table;
260 | content: "";
261 | }
262 | .markdown-body hr::after {
263 | display: table;
264 | clear: both;
265 | content: "";
266 | }
267 | .markdown-body table {
268 | border-spacing: 0;
269 | border-collapse: collapse;
270 | display: block;
271 | width: max-content;
272 | max-width: 100%;
273 | overflow: auto;
274 | }
275 | .markdown-body td,
276 | .markdown-body th {
277 | padding: 0;
278 | }
279 | .markdown-body .task-list-item.enabled label,
280 | .markdown-body details summary {
281 | cursor: pointer;
282 | }
283 | .markdown-body details:not([open]) > :not(summary) {
284 | display: none !important;
285 | }
286 | .markdown-body kbd {
287 | display: inline-block;
288 | padding: 3px 5px;
289 | font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
290 | Liberation Mono, monospace;
291 | line-height: 10px;
292 | color: var(--color-fg-default);
293 | vertical-align: middle;
294 | background-color: var(--color-canvas-subtle);
295 | border: solid 1px var(--color-neutral-muted);
296 | border-bottom-color: var(--color-neutral-muted);
297 | border-radius: 6px;
298 | box-shadow: inset 0-1px 0 var(--color-neutral-muted);
299 | }
300 | .markdown-body h1 {
301 | margin: 24px 0 16px;
302 | font-weight: 600;
303 | line-height: 1.25;
304 | }
305 | .markdown-body h2,
306 | .markdown-body h3,
307 | .markdown-body h4,
308 | .markdown-body h5,
309 | .markdown-body h6 {
310 | margin-top: 24px;
311 | margin-bottom: 16px;
312 | line-height: 1.25;
313 | }
314 | .markdown-body h2 {
315 | font-weight: 600;
316 | padding-bottom: 0.3em;
317 | font-size: 1.5em;
318 | border-bottom: 1px solid var(--color-border-muted);
319 | }
320 | .markdown-body h3 {
321 | font-weight: 600;
322 | font-size: 1.25em;
323 | }
324 | .markdown-body h4 {
325 | font-weight: 600;
326 | font-size: 1em;
327 | }
328 | .markdown-body h5 {
329 | font-weight: 600;
330 | font-size: 0.875em;
331 | }
332 | .markdown-body h6 {
333 | font-weight: 600;
334 | font-size: 0.85em;
335 | color: var(--color-fg-muted);
336 | }
337 | .markdown-body blockquote {
338 | padding: 0 1em;
339 | color: var(--color-fg-muted);
340 | border-left: 0.25em solid var(--color-border-default);
341 | }
342 | .markdown-body ol,
343 | .markdown-body ul {
344 | padding-left: 2em;
345 | }
346 | .markdown-body ol ol,
347 | .markdown-body ul ol {
348 | list-style-type: lower-roman;
349 | }
350 | .markdown-body ol ol ol,
351 | .markdown-body ol ul ol,
352 | .markdown-body ul ol ol,
353 | .markdown-body ul ul ol {
354 | list-style-type: lower-alpha;
355 | }
356 | .markdown-body dd {
357 | margin-left: 0;
358 | }
359 | .markdown-body code,
360 | .markdown-body pre,
361 | .markdown-body tt {
362 | font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
363 | Liberation Mono, monospace;
364 | }
365 | .markdown-body pre {
366 | word-wrap: normal;
367 | }
368 | .markdown-body .octicon {
369 | display: inline-block;
370 | overflow: visible !important;
371 | vertical-align: text-bottom;
372 | fill: currentColor;
373 | }
374 | .markdown-body ::placeholder {
375 | color: var(--color-fg-subtle);
376 | opacity: 1;
377 | }
378 | .markdown-body input::-webkit-inner-spin-button,
379 | .markdown-body input::-webkit-outer-spin-button {
380 | margin: 0;
381 | -webkit-appearance: none;
382 | appearance: none;
383 | }
384 | .markdown-body .pl-c {
385 | color: var(--color-prettylights-syntax-comment);
386 | }
387 | .markdown-body .pl-c1,
388 | .markdown-body .pl-s .pl-v {
389 | color: var(--color-prettylights-syntax-constant);
390 | }
391 | .markdown-body .pl-e,
392 | .markdown-body .pl-en {
393 | color: var(--color-prettylights-syntax-entity);
394 | }
395 | .markdown-body .pl-s .pl-s1,
396 | .markdown-body .pl-smi {
397 | color: var(--color-prettylights-syntax-storage-modifier-import);
398 | }
399 | .markdown-body .pl-ent {
400 | color: var(--color-prettylights-syntax-entity-tag);
401 | }
402 | .markdown-body .pl-k {
403 | color: var(--color-prettylights-syntax-keyword);
404 | }
405 | .markdown-body .pl-pds,
406 | .markdown-body .pl-s,
407 | .markdown-body .pl-s .pl-pse .pl-s1,
408 | .markdown-body .pl-sr,
409 | .markdown-body .pl-sr .pl-sra,
410 | .markdown-body .pl-sr .pl-sre {
411 | color: var(--color-prettylights-syntax-string);
412 | }
413 | .markdown-body .pl-smw,
414 | .markdown-body .pl-v {
415 | color: var(--color-prettylights-syntax-variable);
416 | }
417 | .markdown-body .pl-bu {
418 | color: var(--color-prettylights-syntax-brackethighlighter-unmatched);
419 | }
420 | .markdown-body .pl-ii {
421 | color: var(--color-prettylights-syntax-invalid-illegal-text);
422 | background-color: var(--color-prettylights-syntax-invalid-illegal-bg);
423 | }
424 | .markdown-body .pl-c2 {
425 | color: var(--color-prettylights-syntax-carriage-return-text);
426 | background-color: var(--color-prettylights-syntax-carriage-return-bg);
427 | }
428 | .markdown-body .pl-sr .pl-cce {
429 | font-weight: 700;
430 | color: var(--color-prettylights-syntax-string-regexp);
431 | }
432 | .markdown-body .pl-ml {
433 | color: var(--color-prettylights-syntax-markup-list);
434 | }
435 | .markdown-body .pl-mh,
436 | .markdown-body .pl-mh .pl-en,
437 | .markdown-body .pl-ms {
438 | font-weight: 700;
439 | color: var(--color-prettylights-syntax-markup-heading);
440 | }
441 | .markdown-body .pl-mi {
442 | font-style: italic;
443 | color: var(--color-prettylights-syntax-markup-italic);
444 | }
445 | .markdown-body .pl-mb {
446 | font-weight: 700;
447 | color: var(--color-prettylights-syntax-markup-bold);
448 | }
449 | .markdown-body .pl-md {
450 | color: var(--color-prettylights-syntax-markup-deleted-text);
451 | background-color: var(--color-prettylights-syntax-markup-deleted-bg);
452 | }
453 | .markdown-body .pl-mi1 {
454 | color: var(--color-prettylights-syntax-markup-inserted-text);
455 | background-color: var(--color-prettylights-syntax-markup-inserted-bg);
456 | }
457 | .markdown-body .pl-mc {
458 | color: var(--color-prettylights-syntax-markup-changed-text);
459 | background-color: var(--color-prettylights-syntax-markup-changed-bg);
460 | }
461 | .markdown-body .pl-mi2 {
462 | color: var(--color-prettylights-syntax-markup-ignored-text);
463 | background-color: var(--color-prettylights-syntax-markup-ignored-bg);
464 | }
465 | .markdown-body .pl-mdr {
466 | font-weight: 700;
467 | color: var(--color-prettylights-syntax-meta-diff-range);
468 | }
469 | .markdown-body .pl-ba {
470 | color: var(--color-prettylights-syntax-brackethighlighter-angle);
471 | }
472 | .markdown-body .pl-sg {
473 | color: var(--color-prettylights-syntax-sublimelinter-gutter-mark);
474 | }
475 | .markdown-body .pl-corl {
476 | text-decoration: underline;
477 | color: var(--color-prettylights-syntax-constant-other-reference-link);
478 | }
479 | .markdown-body [data-catalyst] {
480 | display: block;
481 | }
482 | .markdown-body g-emoji {
483 | font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
484 | font-size: 1em;
485 | font-style: normal !important;
486 | font-weight: 400;
487 | line-height: 1;
488 | vertical-align: -0.075em;
489 | }
490 | .markdown-body g-emoji img {
491 | width: 1em;
492 | height: 1em;
493 | }
494 | .markdown-body::after,
495 | .markdown-body::before {
496 | display: table;
497 | content: "";
498 | }
499 | .markdown-body::after {
500 | clear: both;
501 | }
502 | .markdown-body > :first-child {
503 | margin-top: 0 !important;
504 | }
505 | .markdown-body > :last-child {
506 | margin-bottom: 0 !important;
507 | }
508 | .markdown-body a:not([href]) {
509 | color: inherit;
510 | text-decoration: none;
511 | }
512 | .markdown-body .absent {
513 | color: var(--color-danger-fg);
514 | }
515 | .markdown-body .anchor {
516 | float: left;
517 | padding-right: 4px;
518 | margin-left: -20px;
519 | line-height: 1;
520 | }
521 | .markdown-body .anchor:focus {
522 | outline: 0;
523 | }
524 | .markdown-body details,
525 | .markdown-body dl,
526 | .markdown-body ol,
527 | .markdown-body p,
528 | .markdown-body pre,
529 | .markdown-body table,
530 | .markdown-body ul {
531 | margin-top: 0;
532 | margin-bottom: 16px;
533 | }
534 | .markdown-body blockquote {
535 | margin: 0 0 16px;
536 | }
537 | .markdown-body blockquote > :first-child {
538 | margin-top: 0;
539 | }
540 | .markdown-body blockquote > :last-child {
541 | margin-bottom: 0;
542 | }
543 | .markdown-body sup > a::before {
544 | content: "[";
545 | }
546 | .markdown-body sup > a::after {
547 | content: "]";
548 | }
549 | .markdown-body h1 .octicon-link,
550 | .markdown-body h2 .octicon-link,
551 | .markdown-body h3 .octicon-link,
552 | .markdown-body h4 .octicon-link,
553 | .markdown-body h5 .octicon-link,
554 | .markdown-body h6 .octicon-link {
555 | color: var(--color-fg-default);
556 | vertical-align: middle;
557 | visibility: hidden;
558 | }
559 | .markdown-body h1:hover .anchor,
560 | .markdown-body h2:hover .anchor,
561 | .markdown-body h3:hover .anchor,
562 | .markdown-body h4:hover .anchor,
563 | .markdown-body h5:hover .anchor,
564 | .markdown-body h6:hover .anchor {
565 | text-decoration: none;
566 | }
567 | .markdown-body h1:hover .anchor .octicon-link,
568 | .markdown-body h2:hover .anchor .octicon-link,
569 | .markdown-body h3:hover .anchor .octicon-link,
570 | .markdown-body h4:hover .anchor .octicon-link,
571 | .markdown-body h5:hover .anchor .octicon-link,
572 | .markdown-body h6:hover .anchor .octicon-link {
573 | visibility: visible;
574 | }
575 | .markdown-body h1 code,
576 | .markdown-body h1 tt,
577 | .markdown-body h2 code,
578 | .markdown-body h2 tt,
579 | .markdown-body h3 code,
580 | .markdown-body h3 tt,
581 | .markdown-body h4 code,
582 | .markdown-body h4 tt,
583 | .markdown-body h5 code,
584 | .markdown-body h5 tt,
585 | .markdown-body h6 code,
586 | .markdown-body h6 tt {
587 | padding: 0 0.2em;
588 | font-size: inherit;
589 | }
590 | .markdown-body ol.no-list,
591 | .markdown-body ul.no-list {
592 | padding: 0;
593 | list-style-type: none;
594 | }
595 | .markdown-body ol[type="1"] {
596 | list-style-type: decimal;
597 | }
598 | .markdown-body ol[type="a"] {
599 | list-style-type: lower-alpha;
600 | }
601 | .markdown-body ol[type="i"] {
602 | list-style-type: lower-roman;
603 | }
604 | .markdown-body div > ol:not([type]) {
605 | list-style-type: decimal;
606 | }
607 | .markdown-body ol ol,
608 | .markdown-body ol ul,
609 | .markdown-body ul ol,
610 | .markdown-body ul ul {
611 | margin-top: 0;
612 | margin-bottom: 0;
613 | }
614 | .markdown-body li > p {
615 | margin-top: 16px;
616 | }
617 | .markdown-body li + li {
618 | margin-top: 0.25em;
619 | }
620 | .markdown-body dl {
621 | padding: 0;
622 | }
623 | .markdown-body dl dt {
624 | padding: 0;
625 | margin-top: 16px;
626 | font-size: 1em;
627 | font-style: italic;
628 | font-weight: 600;
629 | }
630 | .markdown-body dl dd {
631 | padding: 0 16px;
632 | margin-bottom: 16px;
633 | }
634 | .markdown-body table td,
635 | .markdown-body table th {
636 | padding: 6px 13px;
637 | border: 1px solid var(--color-border-default);
638 | }
639 | .markdown-body table tr {
640 | background-color: var(--color-canvas-default);
641 | border-top: 1px solid var(--color-border-muted);
642 | }
643 | .markdown-body table tr:nth-child(2n) {
644 | background-color: var(--color-canvas-subtle);
645 | }
646 | .markdown-body .emoji,
647 | .markdown-body table img {
648 | background-color: transparent;
649 | }
650 | .markdown-body img[align="right"] {
651 | padding-left: 20px;
652 | }
653 | .markdown-body img[align="left"] {
654 | padding-right: 20px;
655 | }
656 | .markdown-body .emoji {
657 | max-width: none;
658 | vertical-align: text-top;
659 | }
660 | .markdown-body span.frame {
661 | display: block;
662 | overflow: hidden;
663 | }
664 | .markdown-body span.frame > span {
665 | display: block;
666 | float: left;
667 | width: auto;
668 | padding: 7px;
669 | margin: 13px 0 0;
670 | overflow: hidden;
671 | border: 1px solid var(--color-border-default);
672 | }
673 | .markdown-body span.frame span img {
674 | display: block;
675 | float: left;
676 | }
677 | .markdown-body span.frame span span {
678 | display: block;
679 | padding: 5px 0 0;
680 | clear: both;
681 | color: var(--color-fg-default);
682 | }
683 | .markdown-body span.align-center,
684 | .markdown-body span.align-right {
685 | display: block;
686 | overflow: hidden;
687 | clear: both;
688 | }
689 | .markdown-body span.align-center > span {
690 | display: block;
691 | margin: 13px auto 0;
692 | overflow: hidden;
693 | text-align: center;
694 | }
695 | .markdown-body span.align-center span img {
696 | margin: 0 auto;
697 | text-align: center;
698 | }
699 | .markdown-body span.align-right > span {
700 | display: block;
701 | margin: 13px 0 0;
702 | overflow: hidden;
703 | text-align: right;
704 | }
705 | .markdown-body span.align-right span img {
706 | margin: 0;
707 | text-align: right;
708 | }
709 | .markdown-body span.float-left {
710 | display: block;
711 | float: left;
712 | margin-right: 13px;
713 | overflow: hidden;
714 | }
715 | .markdown-body span.float-left span {
716 | margin: 13px 0 0;
717 | }
718 | .markdown-body span.float-right {
719 | display: block;
720 | float: right;
721 | margin-left: 13px;
722 | overflow: hidden;
723 | }
724 | .markdown-body span.float-right > span {
725 | display: block;
726 | margin: 13px auto 0;
727 | overflow: hidden;
728 | text-align: right;
729 | }
730 | .markdown-body code,
731 | .markdown-body tt {
732 | padding: 0.2em 0.4em;
733 | margin: 0;
734 | font-size: 85%;
735 | background-color: var(--color-neutral-muted);
736 | border-radius: 6px;
737 | }
738 | .markdown-body code br,
739 | .markdown-body tt br {
740 | display: none;
741 | }
742 | .markdown-body del code {
743 | text-decoration: inherit;
744 | }
745 | .markdown-body pre code {
746 | font-size: 100%;
747 | }
748 | .markdown-body pre > code {
749 | padding: 0;
750 | margin: 0;
751 | word-break: normal;
752 | white-space: pre;
753 | background: 0 0;
754 | border: 0;
755 | }
756 | .markdown-body .highlight {
757 | margin-bottom: 16px;
758 | }
759 | .markdown-body .highlight pre {
760 | margin-bottom: 0;
761 | word-break: normal;
762 | }
763 | .markdown-body .highlight pre,
764 | .markdown-body pre {
765 | padding: 16px;
766 | overflow: auto;
767 | font-size: 85%;
768 | line-height: 1.45;
769 | background-color: var(--color-canvas-subtle);
770 | border-radius: 6px;
771 | }
772 | .markdown-body pre code,
773 | .markdown-body pre tt {
774 | display: inline;
775 | max-width: auto;
776 | padding: 0;
777 | margin: 0;
778 | overflow: visible;
779 | line-height: inherit;
780 | word-wrap: normal;
781 | background-color: transparent;
782 | border: 0;
783 | }
784 | .markdown-body .csv-data td,
785 | .markdown-body .csv-data th {
786 | padding: 5px;
787 | overflow: hidden;
788 | font-size: 12px;
789 | line-height: 1;
790 | text-align: left;
791 | white-space: nowrap;
792 | }
793 | .markdown-body .csv-data .blob-num {
794 | padding: 10px 8px 9px;
795 | text-align: right;
796 | background: var(--color-canvas-default);
797 | border: 0;
798 | }
799 | .markdown-body .csv-data tr {
800 | border-top: 0;
801 | }
802 | .markdown-body .csv-data th {
803 | font-weight: 600;
804 | background: var(--color-canvas-subtle);
805 | border-top: 0;
806 | }
807 | .markdown-body .footnotes {
808 | font-size: 12px;
809 | color: var(--color-fg-muted);
810 | border-top: 1px solid var(--color-border-default);
811 | }
812 | .markdown-body .footnotes ol {
813 | padding-left: 16px;
814 | }
815 | .markdown-body .footnotes li {
816 | position: relative;
817 | }
818 | .markdown-body .footnotes li:target::before {
819 | position: absolute;
820 | top: -8px;
821 | right: -8px;
822 | bottom: -8px;
823 | left: -24px;
824 | pointer-events: none;
825 | content: "";
826 | border: 2px solid var(--color-accent-emphasis);
827 | border-radius: 6px;
828 | }
829 | .markdown-body .footnotes li:target {
830 | color: var(--color-fg-default);
831 | }
832 | .markdown-body .footnotes .data-footnote-backref g-emoji {
833 | font-family: monospace;
834 | }
835 | .markdown-body .task-list-item {
836 | list-style-type: none;
837 | }
838 | .markdown-body .task-list-item label {
839 | font-weight: 400;
840 | }
841 | .markdown-body .task-list-item + .task-list-item {
842 | margin-top: 3px;
843 | }
844 | .markdown-body .task-list-item .handle {
845 | display: none;
846 | }
847 | .markdown-body .task-list-item-checkbox {
848 | margin: 0 0.2em 0.25em -1.6em;
849 | vertical-align: middle;
850 | }
851 | .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox {
852 | margin: 0-1.6em 0.25em 0.2em;
853 | }
854 | .markdown-body ::-webkit-calendar-picker-indicator {
855 | filter: invert(50%);
856 | }
857 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/input.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 键盘与输入法
12 |
13 |
14 | 快捷键冲突
15 |
16 | 一些内置应用程序会占用全局快捷键造成冲突,如 AMD 控制面板会占用
17 | Ctrl + Shift + L
快捷键、NVDIA
18 | 显卡程序等。你需要禁用这些程序快捷键。
19 |
20 | 例如:调整微软拼音输入法
21 | # 解除 Ctrl + Shift + F 简繁切换键的占用
22 | reg add HKCU\Software\Microsoft\InputMethod\Settings\CHS /v EnableSimplifiedTraditionalOutputSwitch /t REG_DWORD /d 0 /f
23 |
24 | # 解除 Ctrl+Space 中英切换键的占用
25 | reg add HKCU\Software\Microsoft\InputMethod\Settings\CHS /v "English Switch Key" /t REG_DWORD /d 4 /f
26 |
27 | # 解除 Ctrl+. 标点切换键的占用
28 | reg add HKCU\Software\Microsoft\InputMethod\Settings\CHS /v EnableChineseEnglishPunctuationSwitch /t REG_DWORD /d 0 /f
29 |
30 |
35 |
36 | 使用小鹤双拼方案 ……
37 | reg add "HKCU\SOFTWARE\Microsoft\InputMethod\Settings\CHS" /v "EnableExtraDomainType" /t REG_DWORD /f /d 1
38 | reg add "HKCU\SOFTWARE\Microsoft\InputMethod\Settings\CHS" /v "Enable Double Pinyin" /t REG_DWORD /f /d 1
39 | reg add "HKCU\SOFTWARE\Microsoft\InputMethod\Settings\CHS" /v "DoublePinyinScheme" /t REG_DWORD /f /d 10
40 | reg add "HKCU\SOFTWARE\Microsoft\InputMethod\Settings\CHS" /v "UserDefinedDoublePinyinScheme0" /t REG_SZ /f /d "小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"
41 |
42 |
43 | 重映射键盘
44 |
45 | 改用 Mac 风格 ……
46 |
47 |
48 | 使用大拇指来触发 Ctrl 键
49 | 这样的键位重映射,有利于提高打字和触发快捷键效率、减少肌肉劳损。
50 |
51 |
52 |
53 | 顺序为 Win
Alt
54 | Ctrl
55 |
56 | 交换 CapsLock
与 Esc
57 |
58 | 激活(管理员权限运行):
59 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000600000001003A003A0001001D0038005BE01D0038005BE000000000 /f
60 | 禁用(管理员权限运行):
61 | reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
62 | 注销并重新登录后生效。
63 | 更多定制需求,请使用软件 sharpkeys
64 |
65 |
66 | 访问键
67 | 访问键添加下划线: 按 Alt 键与字母触发按钮或菜单项,节省鼠标操作
68 | 粘滞键
69 | 连按 5 次 shift
激活。
70 |
71 | 优化:按 1 次激活修饰键,按 2 次锁定修饰键,按 3 次代替原来的单次按修饰键
72 |
73 | reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 190 /f
74 |
75 |
76 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/multiuser.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 多用户隔离机制
12 |
13 |
14 |
15 | 结合 Windows 多用户机制,隔离应用程序对系统资源的使用权限,保护个人数据。
16 |
17 | 创建新用户
18 | 从开始菜单中找到 New Isolated User
19 |
20 | 该用户是否用于某个特定应用
21 | 输入应用 ID (小写) 或用户名 (不能出现空格和引号)
22 |
23 | 设置文件权限
24 |
25 | C:\Users 默认对普通用户而言,默认是互相隔离的 ……
26 |
27 | 仅支持 NTFS 分区:限制不同用户对文件的访问
28 |
29 | 找到需要被保护的文件、文件夹、驱动器、特殊设备和对象
30 | 右键 “属性” > “安全” > “编辑”
31 | 添加白名单用户(组),给予 “完全控制” 权限
32 | 删除 Authenticated Users 和 Users 权限
33 | 确定
34 |
35 |
36 | 安装软件
37 |
38 | 设置安装器的文件权限
39 |
40 | 启动安装器,替换 ProgramFiles 为
41 | %HOMEPATH%\appbin 的绝对路径
42 |
43 |
44 | 复制应用程序的绝对路径。调整桌面上的
45 | EDITME as <username>
46 |
47 | 填入 “目标” 内容
48 | 更改图标选程序路径
49 |
50 |
51 |
52 | 备份与恢复
53 |
54 | 如何备份?...
55 |
56 | 打开压缩软件,压缩 C:\Users 目录下的整个用户文件夹
57 | 重建用户文件夹:
58 | $username = Read-Host username
59 |
60 | reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$((Get-LocalUser $username).SID.Value)" /f
61 | reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$((Get-LocalUser $username).SID.Value).bak" /f
62 |
63 | runas /profile /user:$username "cmd /c exit"
64 | icacls "C:\Users\$username" /grant "${env:USERNAME}:(OI)(CI)(F)" >$null
65 |
66 | 恢复方法:解压压缩备份,覆盖确认全是
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/options.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 选项
12 |
13 |
14 | 添加 Windows 双系统到启动菜单
15 | 假设第二系统分区挂载到 B:
16 |
17 |
mountvol a: /s
18 | bcdboot b:\windows /addlast /d /s a:
19 |
20 |
21 | 避免二次启动,请使用经典启动菜单、标记当前系统为 main:
22 |
23 |
bcdedit /set "{current}" bootmenupolicy legacy
24 | bcdedit /set "{current}" description Main
25 |
26 |
27 | 重置恢复分区
28 |
29 | 方法
30 |
31 |
32 | 运行 diskpart
, 选中恢复分区
33 |
34 | 运行:
35 |
36 |
format quick fs=ntfs label=Recovery
37 | set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
38 | gpt attributes=0x8000000000000001
39 | assign letter r
40 |
41 |
42 |
43 |
44 | 使用 7zip 提取系统安装镜像中 \sources\install.wim
45 | 1\windows\system32\Recovery
到 R:\
46 |
47 |
48 | 运行:
49 |
50 |
reagentc /setreimage /path r:\recovery
51 | reagentc /enable
52 | mountvol r: /d
53 |
54 |
55 |
56 |
57 |
58 | 色彩反转
59 |
60 | 适用于尚未适配深色模式的应用,按下
61 | Win + Ctrl + C
反转色彩为黑白色
62 |
63 | reg add HKCU\Software\Microsoft\ColorFiltering /v HotkeyEnabled /t REG_DWORD /f /d 1
64 | reg add HKCU\Software\Microsoft\ColorFiltering /v FilterType /t REG_DWORD /d 2 /f
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/readme.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 自述文件
12 |
13 |
14 | OOBE 结束后,推荐的注意事项:
15 | 更改计算机名
16 |
17 | 设置
18 |
19 | 可选
20 |
26 | 创建还原点
27 | 调整高级系统设置。
28 |
29 | 点击系统分区
30 | 点击 “配置...” ( Alt + O
)
31 | 选择 “启动系统保护”
32 | 调整最大使用量
33 | 确定
34 | 点击 "创建..."
35 | 起名并确认
36 |
37 | 笔记本电脑
38 |
39 | 系统设置:
40 |
41 | 节省电能
42 |
43 |
44 | 触摸板
45 |
46 |
47 | 加密硬盘数据
48 | 数据防盗
49 |
50 |
51 | BitLocker 错误:系统找不到制定的文件
52 |
53 |
54 | mv C:\Windows\System32\Recovery\ReAgent.xml C:\Windows\System32\Recovery\ReAgent.xml.old
55 |
56 | 安全
57 |
58 |
59 | 登录选项
60 |
61 |
62 | 指纹验证
63 |
64 |
65 |
66 |
67 | 自动登录:
68 |
71 | Autologon
72 |
73 |
74 |
75 | 微软官方提供的小工具:可以设置解锁后免输入登录密码
76 | sudo choco install autologon
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/store.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 商店应用推荐
12 |
13 |
14 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/features/addDocuments/docs/zh-CN/wsl2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | WSL2
12 |
13 |
14 | 安装
15 | 以管理员身份运行 PowerShell 脚本:
16 |
17 |
18 | 安装 HyperV 组件
19 | dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
20 | dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
21 |
22 |
23 |
24 | 可选:添加系统启动选项
25 |
26 |
# 降低选择等待时间
27 | bcdedit /timeout 2
28 | # 推荐使用传统菜单( 不会二次启动 )
29 | bcdedit /set "{current}" bootmenupolicy legacy
30 |
31 | bcdedit /set "{current}" hypervisorlaunchtype off
32 | bcdedit /copy "{current}" /d "HyperV off"
33 | bcdedit /set "{current}" hypervisorlaunchtype auto
34 | bcdedit /copy "{current}" /d "HyperV on"
35 |
36 |
37 |
38 | 重启
39 |
40 | 安装或更新 WSL 内核
43 |
44 |
45 | 可选:设置自动更新 ,
46 | 启动“接收其它 Microsoft 产品的更新”。
47 |
48 |
49 | 使用方法
50 | 导入 Linux 子系统:
51 |
52 |
$vmname = 'alpine'
53 |
54 | $fromGzip = Read-Host '下载路径' | Get-Item
55 | $toDir = Read-Host '子系统存储路径' | Get-Item
56 |
57 | wsl --import $vmname $toDir $fromGzip
58 | wsl -s $vmname # 设为默认
59 | wsl -d $vmname
60 |
61 |
62 | 导出备份:
63 |
64 |
wsl --export $vmname "$vmname.tar"
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/features/addNewIsolatedUserScript/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addNewIsolatedUserScript/apply.ps1
--------------------------------------------------------------------------------
/features/addNewIsolatedUserScript/script.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addNewIsolatedUserScript/script.ps1
--------------------------------------------------------------------------------
/features/addQuickSettings/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addQuickSettings/apply.ps1
--------------------------------------------------------------------------------
/features/addUserFirstRun/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addUserFirstRun/apply.ps1
--------------------------------------------------------------------------------
/features/addUserFirstRun/script.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/addUserFirstRun/script.ps1
--------------------------------------------------------------------------------
/features/applyBetterTouchpadGestures/README.md:
--------------------------------------------------------------------------------
1 | # Prefer Touchpad Gesture
2 |
3 | ## English Instruction
4 |
5 | - Three finger swipe left and right:
6 | lower/raise volume
7 | - Three fingers swipe up and down:
8 | maximize/minimize the window
9 | - Four-finger swipe down:
10 | close the window
11 | - Four-finger swipe up:
12 | task view
13 | - Four fingers swipe left and right:
14 | switch desktop
15 |
16 | ## 中文说明
17 |
18 | - 三指左右滑动:降低/提高音量
19 | - 三指上下滑动:最大/最小化窗口
20 | - 四指向下滑动:关闭窗口
21 | - 四指向上滑动:任务视图
22 | - 四指左右滑动:切换桌面
23 |
--------------------------------------------------------------------------------
/features/applyBetterTouchpadGestures/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyBetterTouchpadGestures/apply.ps1
--------------------------------------------------------------------------------
/features/applyBetterTouchpadGestures/apply.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyBetterTouchpadGestures/apply.reg
--------------------------------------------------------------------------------
/features/applyClassicPhotoViewer/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyClassicPhotoViewer/apply.ps1
--------------------------------------------------------------------------------
/features/applyClassicPhotoViewer/apply.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyClassicPhotoViewer/apply.reg
--------------------------------------------------------------------------------
/features/applyOptimization/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyOptimization/apply.ps1
--------------------------------------------------------------------------------
/features/applyPrivacyProctection/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyPrivacyProctection/apply.ps1
--------------------------------------------------------------------------------
/features/applyPrivacyProctection/apply.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyPrivacyProctection/apply.reg
--------------------------------------------------------------------------------
/features/applyRemapIcon/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/applyRemapIcon/apply.ps1
--------------------------------------------------------------------------------
/features/customGitBash/.bashrc:
--------------------------------------------------------------------------------
1 | export LESS='-iMSR -j 4'
2 |
3 | if ! [ -x "$(command -v man)" ]; then
4 | man() {
5 | $1 --help 2>&1 | less
6 | }
7 | fi
8 |
--------------------------------------------------------------------------------
/features/customGitBash/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customGitBash/apply.ps1
--------------------------------------------------------------------------------
/features/customGitTig/.tigrc:
--------------------------------------------------------------------------------
1 | bind main C ?git checkout -f %(commit)
2 |
--------------------------------------------------------------------------------
/features/customGitTig/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customGitTig/apply.ps1
--------------------------------------------------------------------------------
/features/customMintty/.minttyrc:
--------------------------------------------------------------------------------
1 | CtrlShiftShortcuts=yes
2 |
3 | CursorType=block
4 | CursorBlinks=yes
5 | ForegroundColour=255,255,255
6 | ThemeFile=windows10
7 | Transparency=medium
8 |
9 | FontHeight=14
10 |
--------------------------------------------------------------------------------
/features/customMintty/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customMintty/apply.ps1
--------------------------------------------------------------------------------
/features/customPwshProfile/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customPwshProfile/apply.ps1
--------------------------------------------------------------------------------
/features/customPwshProfile/git-aliases.txt:
--------------------------------------------------------------------------------
1 | # [
2 | # arch
3 | awk
4 | b2sum
5 | base32
6 | base64
7 | basename
8 | basenc
9 | # bash
10 | # bunzip2
11 | bzcat
12 | bzip2
13 | # bzip2recover
14 | # captoinfo
15 | # cat
16 | # chattr
17 | # chcon
18 | # chgrp
19 | # chmod
20 | # chown
21 | # chroot
22 | cksum
23 | # clear
24 | cmp
25 | column
26 | comm
27 | # cp
28 | csplit
29 | # cut
30 | cygcheck
31 | cygpath
32 | # cygwin-console-helper
33 | d2u
34 | # dash
35 | # date
36 | dd
37 | df
38 | # diff
39 | diff3
40 | # dir
41 | dircolors
42 | # dirmngr-client
43 | # dirmngr
44 | dirname
45 | dos2unix
46 | # du
47 | # dumpsexp
48 | # echo
49 | env
50 | envsubst
51 | ex
52 | # expand
53 | expr
54 | factor
55 | # false
56 | # fido2-assert
57 | # fido2-cred
58 | # fido2-token
59 | file
60 | # find
61 | fmt
62 | fold
63 | # funzip
64 | # gawk-5.0.0
65 | gawk
66 | # gencat
67 | # getconf
68 | # getfacl
69 | # getopt
70 | # gettext
71 | # gkill
72 | # gmondump
73 | # gpg-agent
74 | # gpg-connect-agent
75 | # gpg-error
76 | # gpg-wks-server
77 | # gpg
78 | # gpgconf
79 | # gpgparsemail
80 | # gpgscm
81 | # gpgsm
82 | # gpgsplit
83 | # gpgtar
84 | # gpgv
85 | grep
86 | # groups
87 | gzip
88 | head
89 | # hmac256
90 | # hostid
91 | # hostname
92 | iconv
93 | # id
94 | # infocmp
95 | # infotocap
96 | # install
97 | join
98 | # kbxutil
99 | # kill
100 | # ldd
101 | # ldh
102 | less
103 | # lessecho
104 | # lesskey
105 | # link
106 | ln
107 | locale
108 | # locate
109 | # logname
110 | # ls
111 | lsattr
112 | mac2unix
113 | md5sum
114 | # minidumper
115 | mintty
116 | # mkdir
117 | # mkfifo
118 | mkgroup
119 | mknod
120 | mkpasswd
121 | mktemp
122 | # mount
123 | # mpicalc
124 | # msgattrib
125 | # msgcat
126 | # msgcmp
127 | # msgcomm
128 | # msgconv
129 | # msgen
130 | # msgexec
131 | # msgfilter
132 | # msgfmt
133 | # msggrep
134 | # msginit
135 | # msgmerge
136 | # msgunfmt
137 | # msguniq
138 | # mv
139 | nano
140 | # nettle-hash
141 | # nettle-lfib-stream
142 | # nettle-pbkdf2
143 | # ngettext
144 | # nice
145 | # nl
146 | # nohup
147 | nproc
148 | numfmt
149 | od
150 | openssl
151 | p11-kit
152 | passwd
153 | paste
154 | patch
155 | pathchk
156 | perl
157 | # perl5.36.0
158 | # pinentry-w32
159 | pinentry
160 | pinky
161 | # pkcs1-conv
162 | pldd
163 | pluginviewer
164 | pr
165 | printenv
166 | printf
167 | profiler
168 | # ps
169 | psl
170 | ptx
171 | # pwd
172 | readlink
173 | realpath
174 | rebase
175 | recode-sr-latin
176 | regtool
177 | # reset
178 | # rm
179 | # rmdir
180 | rnano
181 | # runcon
182 | rview
183 | rvim
184 | # scp
185 | sdiff
186 | sed
187 | seq
188 | # setfacl
189 | # setmetamode
190 | # sexp-conv
191 | # sftp
192 | # sh
193 | sha1sum
194 | sha224sum
195 | sha256sum
196 | sha384sum
197 | sha512sum
198 | shred
199 | shuf
200 | # sleep
201 | # sort
202 | split
203 | # ssh-add
204 | # ssh-agent
205 | # ssh-keygen
206 | # ssh-keyscan
207 | # ssh-pageant
208 | # ssh
209 | sshd
210 | ssp
211 | stat
212 | # stdbuf
213 | # strace
214 | # stty
215 | sum
216 | # sync
217 | # tabs
218 | tac
219 | tail
220 | # tar
221 | # tee
222 | test
223 | # tic
224 | tig
225 | # timeout
226 | # toe
227 | touch
228 | # tput
229 | tr
230 | # true
231 | truncate
232 | # trust
233 | # tset
234 | # tsort
235 | # tty
236 | # tzset
237 | u2d
238 | # umount
239 | # uname
240 | # unexpand
241 | uniq
242 | unix2dos
243 | unix2mac
244 | # unlink
245 | unzip
246 | unzipsfx
247 | # users
248 | vdir
249 | view
250 | # vim
251 | vimdiff
252 | # watchgnupg
253 | wc
254 | # which
255 | # who
256 | # whoami
257 | # winpty-agent
258 | # winpty-debugserver
259 | # winpty
260 | xargs
261 | # xgettext
262 | # xxd
263 | # yat2m
264 | yes
265 | zipinfo
266 |
--------------------------------------------------------------------------------
/features/customPwshProfile/profile.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customPwshProfile/profile.ps1
--------------------------------------------------------------------------------
/features/customPwshProfile/update-git-aliases.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customPwshProfile/update-git-aliases.ps1
--------------------------------------------------------------------------------
/features/customSshKnownHosts/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customSshKnownHosts/apply.ps1
--------------------------------------------------------------------------------
/features/customSshKnownHosts/known_hosts:
--------------------------------------------------------------------------------
1 | github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
2 | github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
3 | github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
4 |
5 | bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
6 |
7 | gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY=
8 | gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf
9 | gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIYDEGk9KxsGh3mySTRgMtXL583qmBpzeQ+jqCMRgBqB98u3z++J1sKlXHWfM9dyhSevkMwSbhoR8XIq/U0tCNyokEi/ueaBMCvbcTHhO7FcwzY92WK4Yt0aGROY5qX2UKSeOvuP4D6TPqKF1onrSzH9bx9XUf2lEdWT/ia1NEKjunUqu1xOB/StKDHMoX4/OKyIzuS0q/T1zOATthvasJFoPrAjkohTyaDUz2LN5JoH839hViyEG82yB+MjcFV5MU3N1l1QL3cVUCh93xSaua1N85qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9
10 |
11 | ssh.dev.azure.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H
12 | vs-ssh.visualstudio.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H
13 |
--------------------------------------------------------------------------------
/features/customVim/.vimrc:
--------------------------------------------------------------------------------
1 | " integrate system clipboard
2 | set clipboard=unnamed
3 |
4 | " show line number
5 | set number
6 | " show position
7 | set ruler
8 |
9 | " highlight searched
10 | set hlsearch
11 |
12 | set ignorecase
13 | set smartcase
14 |
15 | " the default position of new splitted window
16 | set splitbelow
17 | set splitright
18 |
19 | " recommended keymap
20 | nnoremap :vsplit
21 | inoremap :vsplit
22 | vnoremap :vsplit
23 |
--------------------------------------------------------------------------------
/features/customVim/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/customVim/apply.ps1
--------------------------------------------------------------------------------
/features/customVim/g.vimrc:
--------------------------------------------------------------------------------
1 | " Support ctrl shortcut and clipboard
2 | source $VIMRUNTIME/mswin.vim
3 |
4 | " backup and restoring directory
5 | set backupdir=~/.vim/backups
6 | set backup
7 | set undodir=~/.vim/undo
8 | set undofile
9 |
10 | " Show tabs style
11 | set showtabline=1
12 | " Highlight current light
13 | set cursorline
14 |
15 | " Hide menubar
16 | set guioptions-=T
17 |
18 | " Eliminate alt menukey conflict:
19 | " set winaltkeys=no
20 |
21 | " fonts
22 | " set gfn=Cascadia_Code:h12:W500:cANSI:qDRAFT
23 | " set gfw=黑体:h13
24 |
--------------------------------------------------------------------------------
/features/debloatCloudapps/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatCloudapps/apply.ps1
--------------------------------------------------------------------------------
/features/debloatNewEmailAndCalendar/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatNewEmailAndCalendar/apply.ps1
--------------------------------------------------------------------------------
/features/debloatNewMediaPlayer/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatNewMediaPlayer/apply.ps1
--------------------------------------------------------------------------------
/features/debloatNewPhotoViewer/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatNewPhotoViewer/apply.ps1
--------------------------------------------------------------------------------
/features/debloatOneDrive/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatOneDrive/apply.ps1
--------------------------------------------------------------------------------
/features/debloatXbox/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/debloatXbox/apply.ps1
--------------------------------------------------------------------------------
/features/disableAd/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/disableAd/apply.ps1
--------------------------------------------------------------------------------
/features/enableClipboardHistory/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/enableClipboardHistory/apply.ps1
--------------------------------------------------------------------------------
/features/enableSshAgent/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/enableSshAgent/apply.ps1
--------------------------------------------------------------------------------
/features/fixAppxNetIsolation/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/fixAppxNetIsolation/apply.ps1
--------------------------------------------------------------------------------
/features/fixHidpiBlur/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/fixHidpiBlur/apply.ps1
--------------------------------------------------------------------------------
/features/tweakContextmenu/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakContextmenu/apply.ps1
--------------------------------------------------------------------------------
/features/tweakExplorer/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakExplorer/apply.ps1
--------------------------------------------------------------------------------
/features/tweakExplorer/showDevicesOnlyInThisPc.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakExplorer/showDevicesOnlyInThisPc.reg
--------------------------------------------------------------------------------
/features/tweakIme/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakIme/apply.ps1
--------------------------------------------------------------------------------
/features/tweakNewFileTypes/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakNewFileTypes/apply.ps1
--------------------------------------------------------------------------------
/features/tweakSendTo/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakSendTo/apply.ps1
--------------------------------------------------------------------------------
/features/tweakStartmenu/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakStartmenu/apply.ps1
--------------------------------------------------------------------------------
/features/tweakTaskbar/apply.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/features/tweakTaskbar/apply.ps1
--------------------------------------------------------------------------------
/lib/applyFeatures.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/applyFeatures.ps1
--------------------------------------------------------------------------------
/lib/assets/TaskbarLayoutModification.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/lib/doMakeActionsFolder.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/doMakeActionsFolder.ps1
--------------------------------------------------------------------------------
/lib/doPowershellUpdate.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/doPowershellUpdate.ps1
--------------------------------------------------------------------------------
/lib/loadModules.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/loadModules.ps1
--------------------------------------------------------------------------------
/lib/main.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/main.ps1
--------------------------------------------------------------------------------
/lib/modules/Api.Appx/Api.Appx.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Appx/Api.Appx.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Common/Api.Common.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Common/Api.Common.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Environment/Api.Environment.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Environment/Api.Environment.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Filesystem/Api.Filesystem.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Filesystem/Api.Filesystem.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Installer/Api.Installer.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Installer/Api.Installer.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Registry/Api.Registry.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Registry/Api.Registry.psm1
--------------------------------------------------------------------------------
/lib/modules/Api.Shortcut/Api.Shortcut.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Api.Shortcut/Api.Shortcut.psm1
--------------------------------------------------------------------------------
/lib/modules/ConfigLoader/ConfigLoader.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/ConfigLoader/ConfigLoader.psm1
--------------------------------------------------------------------------------
/lib/modules/ConsoleHelper/ConsoleHelper.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/ConsoleHelper/ConsoleHelper.psm1
--------------------------------------------------------------------------------
/lib/modules/Environment.Common/Environment.Common.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Environment.Common/Environment.Common.psm1
--------------------------------------------------------------------------------
/lib/modules/Environment.OSVersion/Environment.OSVersion.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/Environment.OSVersion/Environment.OSVersion.psm1
--------------------------------------------------------------------------------
/lib/modules/GUI/GUI.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/GUI/GUI.psm1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob.Extension/PoshRSJob.Extension.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob.Extension/PoshRSJob.Extension.psm1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/PoshRSJob.psd1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/PoshRSJob.psd1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/PoshRSJob.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/PoshRSJob.psm1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/ConvertScript.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/ConvertScript.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/ConvertScriptBlockV2.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/ConvertScriptBlockV2.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/FindFunction.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/FindFunction.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/GetFunctionByFile.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/GetFunctionByFile.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/GetFunctionDefinitionByFunction.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/GetFunctionDefinitionByFunction.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/GetParamVariable.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/GetParamVariable.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/GetUsingVariables.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/GetUsingVariables.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/GetUsingVariablesV2.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/GetUsingVariablesV2.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/Increment.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/Increment.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/RegisterScriptScopeFunction.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/RegisterScriptScopeFunction.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/SetIsReceived.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/SetIsReceived.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Private/WriteStream.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Private/WriteStream.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Get-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Get-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Receive-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Receive-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Remove-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Remove-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Start-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Start-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Stop-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Stop-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Public/Wait-RSJob.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Public/Wait-RSJob.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/Scripts/TabExpansion.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/PoshRSJob/Scripts/TabExpansion.ps1
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/TypeData/PoshRSJob.Format.ps1xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ComputerTarget
5 |
6 | RSJob
7 |
8 |
9 |
10 |
11 | Id
12 | 8
13 | Left
14 |
15 |
16 | Name
17 | 20
18 | Left
19 |
20 |
21 | State
22 | 15
23 | Left
24 |
25 |
26 | HasMoreData
27 | 12
28 | Left
29 |
30 |
31 | HasErrors
32 | 12
33 | Left
34 |
35 |
36 | Command
37 | 40
38 | Left
39 |
40 |
41 |
42 |
43 |
44 |
45 | Id
46 |
47 |
48 | Name
49 |
50 |
51 | State
52 |
53 |
54 | HasMoreData
55 |
56 |
57 | HasErrors
58 |
59 |
60 | Command
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | Update
69 |
70 | RSJob
71 |
72 |
73 |
74 |
75 |
76 |
77 | Id
78 |
79 |
80 | Name
81 |
82 |
83 | State
84 |
85 |
86 | HasMoreData
87 |
88 |
89 | HasErrors
90 |
91 |
92 | Error
93 |
94 |
95 | Command
96 |
97 |
98 | Handle
99 |
100 |
101 | InnerJob
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/TypeData/PoshRSJob.Types.ps1xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | RSJob
4 |
5 |
6 | HasMoreData
7 |
8 | $Flags = 'nonpublic','instance','static'
9 | $_Worker = $This.innerjob.GetType().GetField('worker',$Flags)
10 | if ($_Worker -eq $null) { $_Worker = $This.innerjob.GetType().GetField('_worker',$Flags) }
11 | $Worker = $_Worker.GetValue($This.innerjob)
12 |
13 | $_CRP = $worker.GetType().GetProperty('CurrentlyRunningPipeline',$Flags)
14 | $CRP = $_CRP.GetValue($Worker, $Null)
15 | $State = If (-NOT $This.handle.IsCompleted -AND -NOT [bool]$CRP) {
16 | [System.Management.Automation.PSInvocationState]::NotStarted
17 | }
18 | Else {
19 | $This.InnerJob.InvocationStateInfo.State
20 | }
21 | If ($PSVersionTable['PSEdition'] -and $PSVersionTable.PSEdition -eq 'Core') {
22 | $IsReceived =$This.IsReceived
23 | }
24 | Else {
25 | $Field = $This.gettype().GetField('IsReceived',$Flags)
26 | $IsReceived = $Field.GetValue($This)
27 | }
28 | If ($IsReceived) {
29 | $False
30 | }
31 | Else {
32 | If ($State -eq 'Completed' -AND $This.Handle.IsCompleted -AND (-Not $This.Completed)) {
33 | $Output = $This.Innerjob.GetType().GetProperty('OutputBuffer',$Flags)
34 | $Results = $Output.GetValue($This.Innerjob)
35 | If ($Results.count -gt 0 -AND (-NOT [string]::IsNullOrEmpty($Results))) {
36 | $True
37 | }
38 | Else {
39 | $False
40 | }
41 | }
42 | Else {
43 | If ($This.Output -AND (-NOT [string]::IsNullOrEmpty($This.Output))) {
44 | $True
45 | }
46 | Else {
47 | $False
48 | }
49 | }
50 | }
51 |
52 |
53 |
54 |
55 |
56 | RSJob
57 |
58 |
59 | State
60 |
61 | $Flags = 'nonpublic','instance','static'
62 | $_Worker = $This.innerjob.GetType().GetField('worker',$Flags)
63 | if ($_Worker -eq $null) { $_Worker = $This.innerjob.GetType().GetField('_worker',$Flags) }
64 | $Worker = $_Worker.GetValue($This.innerjob)
65 |
66 | $_CRP = $worker.GetType().GetProperty('CurrentlyRunningPipeline',$Flags)
67 | $CRP = $_CRP.GetValue($Worker, $Null)
68 | If (-NOT $This.handle.IsCompleted -AND -NOT [bool]$CRP) {
69 | [System.Management.Automation.PSInvocationState]::NotStarted
70 | }
71 | Else {
72 | $This.InnerJob.InvocationStateInfo.State
73 | }
74 |
75 |
76 |
77 |
78 |
79 | RSJob
80 |
81 |
82 | HasErrors
83 |
84 | If ($psversiontable.psversion.major -ge 3){
85 | $this.innerjob.HadErrors
86 | }
87 | Else {
88 | ($this.innerjob.Streams.Error.Count -ne 0)
89 | }
90 |
91 |
92 |
93 |
94 |
95 | RSJob
96 |
97 |
98 | Verbose
99 |
100 | $this.InnerJob.Streams.Verbose
101 |
102 |
103 |
104 |
105 |
106 | RSJob
107 |
108 |
109 | Debug
110 |
111 | $this.InnerJob.Streams.Debug
112 |
113 |
114 |
115 |
116 |
117 | RSJob
118 |
119 |
120 | Warning
121 |
122 | $this.InnerJob.Streams.Warning
123 |
124 |
125 |
126 |
127 |
128 | RSJob
129 |
130 |
131 | Progress
132 |
133 | $this.InnerJob.Streams.Progress
134 |
135 |
136 |
137 |
138 |
139 | RSRunspacePool
140 |
141 |
142 | AvailableJobs
143 |
144 | $this.Runspacepool.GetAvailableRunspaces()
145 |
146 |
147 |
148 |
149 |
150 | RSRunspacePool
151 |
152 |
153 | State
154 |
155 | $this.RunspacePool.RunspacePoolStateInfo.State
156 |
157 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/lib/modules/PoshRSJob/en-US/about_PoshRSJob.help.txt:
--------------------------------------------------------------------------------
1 | TOPIC
2 | PoshRSJob
3 |
4 | SYNOPSIS
5 | PoshRSJob is a PowerShell jobs based framework using runspaces and runspacepools
6 |
7 | DESCRIPTION
8 | PoshRSJob uses runspaces and runspacepools to provide a PSJobs based framework without
9 | the overhead of PSJobs. This allows for the throttling of RSJobs as they are being process. Variables
10 | can be shared between runspaces using a synchronized collection and the locking of collections is recommnended.
11 |
12 | It is important that you do not use "ForEach" when handling data going into Start-RSJob as doing so
13 | will create a new runspacepool for each item and impact its ability to throttle the RSJobs.
14 |
15 | Support for all versions of PowerShell with the exception of V1 is supported in PoshRSJob.
16 |
17 | All elements of PSJobs are supported to include $Using: and legacy parameters such as ArgumentList.
18 |
19 | EXAMPLES
20 | A simple demonstration of how you send data via the pipeline to Start-RSJob to create RSJobs that
21 | run a command using the pipelined data.
22 |
23 | SEE ALSO
24 | Start-RSjob
25 | Stop-RSJob
26 | Get-RSJob
27 | Remove-RSJob
28 | Receive-RSJob
--------------------------------------------------------------------------------
/lib/modules/UnattendGenerator/UnattendGenerator.psm1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/modules/UnattendGenerator/UnattendGenerator.psm1
--------------------------------------------------------------------------------
/lib/modules/UnattendGenerator/unattend.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | false
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/submit.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/submit.ps1
--------------------------------------------------------------------------------
/lib/submitNewTaskbarLayout.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/submitNewTaskbarLayout.ps1
--------------------------------------------------------------------------------
/lib/submitNewUnattendFile.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/submitNewUnattendFile.ps1
--------------------------------------------------------------------------------
/lib/submitNewUserRegistry.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/submitNewUserRegistry.ps1
--------------------------------------------------------------------------------
/lib/tryToManuallyAddPkgs.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/lib/tryToManuallyAddPkgs.ps1
--------------------------------------------------------------------------------
/packages/.gitignore:
--------------------------------------------------------------------------------
1 | /logs/
2 | /manual/
3 | /*.ps1
4 | /*.exe
5 | /*.msi
6 | /*.msixbundle
7 | /*.zip
8 | /*.nupkg
9 | /*.ttf
10 | /*.ttc
11 | /*.otf
12 | /*.msu
13 |
--------------------------------------------------------------------------------
/packages/README.md:
--------------------------------------------------------------------------------
1 | # Packages
2 |
3 | Translate: [中文](./README_ZH.md)
4 |
5 | ## Get Your Required
6 |
7 | Download all content into `.\packages`
8 |
9 | - To support old Windows 7 ...
10 |
11 | Requirements
12 |
13 | - [.NET Framework 4.5.2](https://www.microsoft.com/en-us/download/confirmation.aspx?id=42642) or higher version, Verify by PowerShell:
14 |
15 | (Get-FileHash -Algorithm SHA256 'NDP452-KB2901907-x86-x64-AllOS-ENU.exe').Hash -eq '6C2C589132E830A185C5F40F82042BEE3022E721A216680BD9B3995BA86F3781'
16 |
17 | - [Windows Management Framework 5.1](https://www.microsoft.com/en-us/download/details.aspx?id=54616)
18 |
19 | 1. Select `Win7AndW2K8R2-KB3191566-x64.zip` to download
20 | 2. Verify by PowerShell:
21 |
22 | (Get-FileHash -Algorithm SHA256 'Win7AndW2K8R2-KB3191566-x64.zip').Hash -eq 'F383C34AA65332662A17D95409A2DDEDADCEDA74427E35D05024CD0A6A2FA647'
23 |
24 | 3. Extract the archive
25 |
26 |
27 |
28 | - Firefox: privacy-first browser
29 |
30 | [Download Installer directly](https://download.mozilla.org/?product=firefox-latest-ssl&os=win64)
31 |
32 | - Thunderbird: Mozilla free email client
33 |
34 | [Official Download Page](https://www.thunderbird.net/)
35 |
36 | - Everything: file searcher, experience far beyond the system built-in search engine
37 |
38 | Find `Download Lite Installer 64-bit` at [Official Download Page](https://www.voidtools.com)
39 |
40 | - mcmilk's improved 7zip: compressor
41 |
42 | Find `.exe` at [Official GitHub Release](https://github.com/mcmilk/7-Zip-zstd/releases/latest)
43 |
44 | ### Helper
45 |
46 | - VeraCrypt: free hard disk data encryptor
47 |
48 | Find `MSI Installer` at [Official Download Page](https://www.veracrypt.fr/en/Downloads.html)
49 |
50 | - Workrave: rest reminder
51 |
52 | [Official GitHub Release](https://github.com/rcaelers/workrave/releases/latest)
53 |
54 | - KDE Connect: with your phone
55 |
56 | Find `Offline installers` at [Official Download Page](https://kdeconnect.kde.org/download.html)
57 |
58 | - OBS: free live recorder
59 |
60 | [Official Download Page](https://obsproject.com/)
61 |
62 | - qBittorrent: free BitTorrent client
63 |
64 | Find `x64` at [FOSSHUB Release](https://www.fosshub.com/qBittorrent.html)
65 |
66 | - Cyberduck: cloud storage explorer
67 |
68 | [Official Download Page](https://cyberduck.io/download/)
69 |
70 | ### For Developers
71 |
72 | - VSCode
73 |
74 | Download Installer directly:
75 | [x64](https://code.visualstudio.com/sha/download?build=stable&os=win32-x64)
76 | |
77 | [Arm64](https://code.visualstudio.com/sha/download?build=stable&os=win32-arm64)
78 | |
79 | [x86](https://code.visualstudio.com/sha/download?build=stable&os=win32)
80 |
81 | Support Latest Windows 7 Version: 1.70.3
82 |
83 | Download Installer directly:
84 | [x64](https://update.code.visualstudio.com/1.70.2/win32-x64/stable)
85 | |
86 | [Arm64](https://update.code.visualstudio.com/1.70.2/win32-arm64-user/stable)
87 |
88 |
89 |
90 | - PowerShell Core: better than classic PowerShell
91 |
92 | Find `win-x64.msi` at [Official GitHub Release](https://aka.ms/powershell-release?tag=stable)
93 |
94 | - [Tabby](https://tabby.sh/): most popular social terminal emulator
95 |
96 | [Official GitHub Page](https://github.com/Eugeny/tabby/releases/latest)
97 |
98 | - Sysinternals: advanced system utilities and technical information
99 |
100 | [Download Content directly](https://download.sysinternals.com/files/SysinternalsSuite.zip)
101 |
102 | - Git for Windows
103 |
104 | [Official Download Page](https://gitforwindows.org/)
105 |
106 | - gVim: text editor Vim with GUI
107 |
108 | Click "Last modified" and find the latest `.exe` at [Official Download Page](https://ftp.nluug.nl/pub/vim/pc/)
109 |
110 | - Chocolatey: Packages Manager
111 |
112 | [Download Installer directly](https://community.chocolatey.org/api/v2/package/chocolatey)
113 |
114 | - gsudo: acquire administration privilege
115 |
116 | [Official GitHub Page](https://github.com/gerardog/gsudo/releases/latest/download/gsudoSetup.msi)
117 |
118 | - ImDisk Toolkit: ramdisk for Windows and mounting of image files
119 |
120 | [Official Download Page](https://sourceforge.net/projects/imdisk-toolkit/files/latest/download)
121 |
122 | - ADB: Android SDK Platform-Tools
123 |
124 | [Download Content directly](https://dl.google.com/android/repository/platform-tools-latest-windows.zip)
125 |
126 | - VirtualBox: free open source virtualization platform by Oracle
127 |
128 | Find `Windows hosts` at [Official Download Page](https://www.virtualbox.org/wiki/Downloads#VirtualBoxbinaries)
129 |
130 | Optional ...
131 |
132 | - OpenSSH: fix the bug of internal version of SSH
133 |
134 | chan_shutdown_read: shutdown() failed for fd 7 [i0 o0]: Not a socket
135 |
136 | find `OpenSSH-Win64-v` at [Official GitHub Page](https://github.com/PowerShell/Win32-OpenSSH/releases/latest)
137 |
138 |
139 |
140 | ### Portable Applications
141 |
142 | You can get [Firefox ESR](https://portableapps.com/apps/internet/firefox-portable-esr),
143 | unpack it into current repository
144 |
145 | ### Miscellaneous
146 |
147 | Manuall Installers, put them into `.\manual`
148 |
149 | - Brave: Free Chromium Distribution
150 |
151 | [Get Online Installer](https://laptop-updates.brave.com/latest/winx64)
152 |
153 | - Microsoft Office
154 |
155 | [Get Online Installer](https://setup.office.com/)
156 |
157 | Hardware Drivers ...
158 |
159 | - Logi Options+
160 |
161 | [Get Online Installer](https://www.logitech.com/software/logi-options-plus.html)
162 |
163 |
164 |
165 | ## Signature Verification
166 |
167 | Excecute `_verify.cmd`
168 |
--------------------------------------------------------------------------------
/packages/README_ZH.md:
--------------------------------------------------------------------------------
1 | # 部署
2 |
3 | ## 下载安装包
4 |
5 | 如果部分链接下载速度慢,推荐[安装迅雷](https://dl.xunlei.com/)加速下载。
6 |
7 | 请将安装包放置在本目录下,安装框架将会自动部署。
8 |
9 | ### 常用必备
10 |
11 | - 为了支持 Windows 7 系列的老系统 ……
12 |
13 | 升级与补丁
14 |
15 | - 安装 [.NET Framework 4.5.2](https://www.microsoft.com/en-us/download/confirmation.aspx?id=42642) 或更高版本,使用 PowerShell 校验安装包:
16 |
17 | (Get-FileHash -Algorithm SHA256 'NDP452-KB2901907-x86-x64-AllOS-ENU.exe').Hash -eq '6C2C589132E830A185C5F40F82042BEE3022E721A216680BD9B3995BA86F3781'
18 |
19 | - 安装 [Windows Management Framework 5.1](https://www.microsoft.com/en-us/download/details.aspx?id=54616)
20 |
21 | 1. 选择 `Win7AndW2K8R2-KB3191566-x64.zip` 以下载
22 | 2. 使用 PowerShell 校验安装包:
23 |
24 | (Get-FileHash -Algorithm SHA256 'Win7AndW2K8R2-KB3191566-x64.zip').Hash -eq 'F383C34AA65332662A17D95409A2DDEDADCEDA74427E35D05024CD0A6A2FA647'
25 |
26 | 3. 解压内容
27 |
28 |
29 |
30 | - Firefox: 有效保护隐私的浏览器
31 |
32 | [点击直接下载](https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=zh-CN)
33 |
34 | - Everything:文件搜索器,体验远超系统内置搜索引擎
35 |
36 | 找到 `精简版安装版本 64 位` 下载,见[官方下载页](https://www.voidtools.com/zh-cn/)
37 |
38 | ### 开发者工具
39 |
40 | - PowerShell Core: PowerShell 最新稳定版
41 |
42 | 找到 `win-x64.msi` 下载,见[高校镜像站](https://mirrorz.org/list/PowerShell)
43 |
44 | - Git for Windows: 开发必备
45 |
46 | 找到 `64-bit, exe` 下载,见[高校镜像站](https://mirrorz.org/app/Git)
47 |
48 | - gVim: 文本编辑器
49 |
50 | 按修改时间倒排,找到最新版 `.exe` 下载,见[高校镜像站](https://mirrorz.org/list/vim)
51 |
52 | - ADB: 安卓手机/虚拟机调试工具
53 |
54 | [Download Content directly](https://dl.google.com/android/repository/platform-tools-latest-windows.zip)
55 |
56 | - VirtualBox: Oracle 公司维护的免费开源虚拟化平台
57 |
58 | 从[高校镜像站](https://mirrorz.org/app/VirtualBox)下载
59 |
60 | ### 更多
61 |
62 | - qBittorrent-Enhanced-Edition: 改良版 BT 下载器
63 |
64 | 找到 `_x64_setup.exe` 下载,见 [GitHub 下载页](https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/latest)
65 |
66 | - OBS: 自由的直播录屏器
67 |
68 | 找到 `-Full-Installer-x64 (exe)` 下载,见[高校镜像站](https://mirrorz.org/app/OBS)
69 |
70 | 这些软件下载地址[见前文](./README.md):
71 |
72 | - Everything 文件搜索器,体验远超系统内置搜索引擎
73 | - Thunderbird 广受欢迎的 Mozilla 邮件客户端
74 | - 7zip 压缩软件
75 | - VeraCrypt 自由的硬盘数据加密器
76 |
77 | - Workrave 长时间工作休息提醒
78 | - Cyberduck 云端存储浏览器
79 | - KDE Connect 手机互联
80 |
81 | - VSCode 开发神器
82 | - gsudo 获取管理员权限
83 | - Tabby 终端模拟器
84 | - Sysinternals 系统实用程序
85 | - ImDisk Toolkit 挂载内存盘、镜像文件
86 | - OpenSSH 组件升级包( 可选 )
87 |
88 | ### 手动安装
89 |
90 | 请下载到 `.\manual` 目录内,需要手动安装
91 |
92 | - 思源字体:可自由出版商用的字体,由谷歌联手 Adobe 共同设计
93 |
94 | - Noto Sans CJK: 思源黑体
95 |
96 | - [从官方 GitHub 下载](https://github.com/googlefonts/noto-cjk/releases/latest/download/03_NotoSansCJK-OTC.zip)
97 | - 找到 `OTC` 下载,见[高校镜像站](https://mirrorz.org/font/GoogleFonts)
98 |
99 | - Noto Sans Mono: 等宽版本
100 |
101 | - [从官方 GitHub 下载](https://github.com/googlefonts/noto-cjk/releases/latest/download/13_NotoSansMonoCJKsc.zip)
102 | - 找到 `MonoCJKsc` 下载,见[高校镜像站](https://mirrorz.org/font/GoogleFonts)
103 |
104 | - Source Han Serif: 思源宋体
105 |
106 | - [从官方 GitHub 下载](https://github.com/adobe-fonts/source-han-serif/releases/latest/download/01_SourceHanSerif.ttc.zip)
107 | - 找到 `Serif-VF.ttf` 下载,见[高校镜像站](https://mirrorz.org/font/AdobeSourceHan)
108 |
109 | - Brave: 免费的 Chromium 发行版
110 |
111 | [获取在线安装器](https://laptop-updates.brave.com/latest/winx64)
112 |
113 | - 微软 Office
114 |
115 | [获取在线安装器](https://setup.office.com/)
116 |
117 | 硬件驱动:
118 |
119 | - Logi Options+
120 |
121 | [获取在线安装器](https://www.logitech.com.cn/zh-cn/software/logi-options-plus.html)
122 |
123 | ## 数字签名验证
124 |
125 | 执行 `_verify.cmd`
126 |
--------------------------------------------------------------------------------
/packages/__deploy__.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | net session >nul 2>&1
3 | if not %errorLevel% == 0 if not "%1"=="elevated" (
4 | powershell start -verb runas '%0' elevated & exit /b
5 | )
6 | cd /d %~dp0
7 | powershell -exec bypass -file lib\main.ps1
8 | pause
9 |
--------------------------------------------------------------------------------
/packages/__info__.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd /d %~dp0
3 | powershell -exec bypass -file lib\get-valid-subjects.ps1
4 | pause
5 |
--------------------------------------------------------------------------------
/packages/__verify__.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd /d %~dp0
3 | powershell -exec bypass -file lib\verify.ps1
4 | pause
5 |
--------------------------------------------------------------------------------
/packages/config/7zip-zstd.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/7zip-zstd.reg
--------------------------------------------------------------------------------
/packages/config/Everything.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/Everything.ini
--------------------------------------------------------------------------------
/packages/config/altsnap.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/altsnap.ini
--------------------------------------------------------------------------------
/packages/config/git.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/git.ini
--------------------------------------------------------------------------------
/packages/config/setupAltsnap.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/setupAltsnap.ps1
--------------------------------------------------------------------------------
/packages/config/workrave.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/config/workrave.reg
--------------------------------------------------------------------------------
/packages/lib/get-valid-subjects.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/lib/get-valid-subjects.ps1
--------------------------------------------------------------------------------
/packages/lib/main.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/lib/main.ps1
--------------------------------------------------------------------------------
/packages/lib/signatures.csv:
--------------------------------------------------------------------------------
1 | Type,Pattern,Subject
2 |
3 | Everything,Everything-*.x64.Lite-Setup.exe,"CN=voidtools, O=voidtools, L=Wilmington, S=South Australia, C=AU"
4 | Veracrypt,VeraCrypt_Setup_x64_*.msi,"CN=IDRIX SARL, O=IDRIX SARL, STREET=5 AVENUE INGRES, L=Paris, S=Île-de-France, C=FR, OID.1.3.6.1.4.1.311.60.2.1.3=FR, SERIALNUMBER=490 000 619, OID.2.5.4.15=Private Organization"
5 | Firefox,Firefox Setup *.exe,"CN=Mozilla Corporation, OU=Firefox Engineering Operations, O=Mozilla Corporation, L=Mountain View, S=California, C=US"
6 | Thunderbird,Thunderbird Setup *.exe,"CN=Mozilla Corporation, OU=Firefox Engineering Operations, O=Mozilla Corporation, L=Mountain View, S=California, C=US"
7 | VLC,vlc-*-win64.exe,"CN=VideoLAN, O=VideoLAN, L=Paris, C=FR"
8 | Cyberduck,Cyberduck-Installer-*.exe,"CN=iterate GmbH, O=iterate GmbH, STREET=Junkerngasse 12, L=Bern, S=Bern, PostalCode=3011, C=CH"
9 | OBS,OBS-Studio-*-Full-Installer-x64.exe,"CN=Hugh Bailey, O=Hugh Bailey, L=Temecula, S=California, C=US"
10 | KDE Connect,kdeconnect-kde-*-windows-*.exe,"CN=K Desktop Environment e.V., O=K Desktop Environment e.V., STREET=Prinzenstr 85 F, L=Berlin, S=Berlin, PostalCode=10969, C=DE"
11 |
12 | PowerShell,PowerShell-*-win-x64.msi,"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
13 | VSCode,VSCodeSetup-*.exe,"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
14 | OpenSSH,OpenSSH-Win64-v*.msi,"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
15 | Git,Git-*-64-bit.exe,"CN=Johannes Schindelin, O=Johannes Schindelin, S=Nordrhein-Westfalen, C=DE"
16 | VBox6,VirtualBox-6.*-Win.exe,"CN=Oracle Corporation, OU=Virtualbox, O=Oracle Corporation, L=Redwood Shores, S=CA, C=US"
17 | VBox7,VirtualBox-7.*-Win.exe,"CN=Oracle Corporation, OU=VirtualBox, O=Oracle Corporation, L=Redwood City, S=California, C=US"
18 | gsudo,gsudoSetup.msi,"CN=Gerardo Grignoli, O=Gerardo Grignoli, S=Buenos Aires, C=AR"
19 | Tabby,tabby-*-setup-*.exe,"CN=syslink GmbH, O=syslink GmbH, L=Düsseldorf, S=Nordrhein-Westfalen, C=DE"
20 |
21 | dotnet452,NDP452-KB2901907-x86-x64-AllOS-ENU.exe,"CN=Microsoft Corporation, OU=MOPR, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
22 | PowerShell5,Win7AndW2K8R2-KB3191566-x64.msu,"CN=Microsoft Corporation, OU=MOPR, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
23 | PowerShell5 Update Script,Install-WMF5.1.ps1,"CN=Microsoft Corporation, OU=MOPR, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
24 |
25 | gVim,gvim*.exe
26 | qBittorrent,qbittorrent_*_setup.exe
27 | 7zip-zstd,7z*-zstd-*.exe
28 | Workrave,workrave-win32-v*.exe
29 | Chocolatey,chocolatey.*.nupkg
30 | imdisk,ImDiskTk-x64.zip
31 | Sysinternals,SysinternalsSuite.zip
32 | AltSnap,AltSnap*-x64-inst.exe
33 | Twinkle Tray,Twinkle.Tray.v*.exe
34 | ADB,platform-tools_r*-windows.zip
35 |
--------------------------------------------------------------------------------
/packages/lib/verify.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/lib/verify.ps1
--------------------------------------------------------------------------------
/packages/scripts/7zip-zstd.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/7zip-zstd.ps1
--------------------------------------------------------------------------------
/packages/scripts/adb.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/adb.ps1
--------------------------------------------------------------------------------
/packages/scripts/altsnap.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/altsnap.ps1
--------------------------------------------------------------------------------
/packages/scripts/chocolatey.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/chocolatey.ps1
--------------------------------------------------------------------------------
/packages/scripts/cyberduck.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/cyberduck.ps1
--------------------------------------------------------------------------------
/packages/scripts/everything.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/everything.ps1
--------------------------------------------------------------------------------
/packages/scripts/firefox.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/firefox.ps1
--------------------------------------------------------------------------------
/packages/scripts/git.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/git.ps1
--------------------------------------------------------------------------------
/packages/scripts/gsudo.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/gsudo.ps1
--------------------------------------------------------------------------------
/packages/scripts/gvim.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/gvim.ps1
--------------------------------------------------------------------------------
/packages/scripts/imdisk.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/imdisk.ps1
--------------------------------------------------------------------------------
/packages/scripts/kde-connect.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/kde-connect.ps1
--------------------------------------------------------------------------------
/packages/scripts/obs.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/obs.ps1
--------------------------------------------------------------------------------
/packages/scripts/openssh.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/openssh.ps1
--------------------------------------------------------------------------------
/packages/scripts/powershell-core.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/powershell-core.ps1
--------------------------------------------------------------------------------
/packages/scripts/qbittorent.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/qbittorent.ps1
--------------------------------------------------------------------------------
/packages/scripts/sysinternals.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/sysinternals.ps1
--------------------------------------------------------------------------------
/packages/scripts/tabby.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/tabby.ps1
--------------------------------------------------------------------------------
/packages/scripts/thunderbird.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/thunderbird.ps1
--------------------------------------------------------------------------------
/packages/scripts/twinkle-tray.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/twinkle-tray.ps1
--------------------------------------------------------------------------------
/packages/scripts/vbox.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/vbox.ps1
--------------------------------------------------------------------------------
/packages/scripts/veracrypt.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/veracrypt.ps1
--------------------------------------------------------------------------------
/packages/scripts/vlc.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/vlc.ps1
--------------------------------------------------------------------------------
/packages/scripts/vscode.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/vscode.ps1
--------------------------------------------------------------------------------
/packages/scripts/workrave.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/packages/scripts/workrave.ps1
--------------------------------------------------------------------------------
/samples/README_ZH.md:
--------------------------------------------------------------------------------
1 | | 样例 | 作用 |
2 | | ---------------------------------- | -------------------- |
3 | | sample-for-developer | 应用开发者 |
4 | | sample-for-ime | 中文输入法 |
5 | | sample-for-laptop | 笔记本电脑 |
6 | | sample-for-unattend_file | OOBE 设置 |
7 | | sample-to-add_document | 添加说明文档 |
8 | | sample-to-add_isolation_userscript | 添加新隔离态用户向导 |
9 | | sample-to-add_quicksettings | 添加快捷方式 |
10 | | sample-to-debloat | 卸载捆绑软件 |
11 | | sample-to-debloat_cloudapps | |
12 | | sample-to-debloat_xbox | |
13 | | sample-to-disable_ad | 屏蔽广告 |
14 | | sample-to-keep_privacy | 保留你的隐私数据 |
15 | | sample-to-optimize | 优化 |
16 | | sample-to-tweak_explorer | 调整文件资源管理器 |
17 | | sample-to-tweak_taskbar | 调整任务栏配置 |
18 |
--------------------------------------------------------------------------------
/samples/copyout.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd /d %~dp0\..
3 | powershell -exec bypass -file samples\copyout.ps1
4 |
--------------------------------------------------------------------------------
/samples/copyout.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/copyout.ps1
--------------------------------------------------------------------------------
/samples/sample-for-developer.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-for-developer.ps1
--------------------------------------------------------------------------------
/samples/sample-for-ime.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-for-ime.ps1
--------------------------------------------------------------------------------
/samples/sample-for-laptop.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-for-laptop.ps1
--------------------------------------------------------------------------------
/samples/sample-for-unattend_file.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-for-unattend_file.ps1
--------------------------------------------------------------------------------
/samples/sample-to-add_document.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-add_document.ps1
--------------------------------------------------------------------------------
/samples/sample-to-add_isolation_userscript.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-add_isolation_userscript.ps1
--------------------------------------------------------------------------------
/samples/sample-to-add_quicksettings.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-add_quicksettings.ps1
--------------------------------------------------------------------------------
/samples/sample-to-debloat.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-debloat.ps1
--------------------------------------------------------------------------------
/samples/sample-to-debloat_cloudapps.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-debloat_cloudapps.ps1
--------------------------------------------------------------------------------
/samples/sample-to-debloat_xbox.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-debloat_xbox.ps1
--------------------------------------------------------------------------------
/samples/sample-to-disable_ad.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-disable_ad.ps1
--------------------------------------------------------------------------------
/samples/sample-to-keep_privacy.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-keep_privacy.ps1
--------------------------------------------------------------------------------
/samples/sample-to-optimize.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-optimize.ps1
--------------------------------------------------------------------------------
/samples/sample-to-tweak_explorer.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-tweak_explorer.ps1
--------------------------------------------------------------------------------
/samples/sample-to-tweak_taskbar.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/samples/sample-to-tweak_taskbar.ps1
--------------------------------------------------------------------------------
/setup.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | net session >nul 2>&1
3 | if not %errorLevel% == 0 if not "%1"=="elevated" (
4 | powershell start -verb runas '%0' elevated & exit /b
5 | )
6 | cd /d %~dp0
7 | title win-sf
8 | powershell -exec bypass -file lib/main.ps1
9 |
--------------------------------------------------------------------------------
/tools/Apply Your Features.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | net session >nul 2>&1
3 | if not %errorLevel% == 0 if not "%1"=="elevated" (
4 | powershell start -verb runas '%0' elevated & exit /b
5 | )
6 | cd /d %~dp0
7 | powershell -exec bypass -file lib\applyall-features.ps1
8 | echo.
9 | pause
10 |
--------------------------------------------------------------------------------
/tools/README_ZH.md:
--------------------------------------------------------------------------------
1 | ## 应用特性
2 |
3 | 包括所需:
4 |
5 | ./tools/Apply All Features.cmd
6 |
7 | 限定范围:
8 |
9 | ./tools/apply-feature.ps1 ./features/custom\*,./features
10 |
11 | ## 安装应用
12 |
13 | ./tools/setup-package.ps1 ./packages/*
14 |
15 | ## 开发调试
16 |
17 | 导入模块
18 |
19 | ./tools/load-modules.ps1
20 |
--------------------------------------------------------------------------------
/tools/apply-feature.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/tools/apply-feature.ps1
--------------------------------------------------------------------------------
/tools/lib/applyall-features.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/tools/lib/applyall-features.ps1
--------------------------------------------------------------------------------
/tools/lib/print-config.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/tools/lib/print-config.ps1
--------------------------------------------------------------------------------
/tools/load-modules.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/tools/load-modules.ps1
--------------------------------------------------------------------------------
/tools/setup-package.ps1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/neo-sam/mysysprep/e5c3f33f33012ed096be2ec733525b1ee1086b65/tools/setup-package.ps1
--------------------------------------------------------------------------------