windows设置笔记

1. 使用Sudo提升权限

http://www.alexblair.org/user-alexblair-post-1046.html

新建 sudo.js 放到 C:\windows\下面,内容如下:

var command = WScript.Arguments.Item(0);
var argument = "";
for (var i = 0; i < WScript.Arguments.Count(); ++i) {
    argument += WScript.Arguments.Item(i) + " ";
}
try {
    var shellapp = new ActiveXObject("Shell.Application");
    shellapp.ShellExecute(command, argument, null, "runas", 1);
} catch(e) {
    WScript.Echo("Something wrong: " + e.description + " By http://www.alexblair.org");
}

 

2. sublime text

官网:http://www.sublimetext.com/

扩展:https://packagecontrol.io/installation

3.添加使用Vs2013打开

使用注册表实现,参考:http://jingyan.baidu.com/article/1e5468f9c84326484961b72d.html

 

4. gpt安装 windows2012R2

GPT知识:http://yuedu.biz/gpt-partition-on-a-gpt-partition-basics-and-how-to-install-win7/

先使用 BIOS 启动,做Raid10,完成之后,再修改BIOS,使用 UEFI 启动,安装 windows 2012R2

在选择分区时,把分区转换为 GPT,使用 Shift+F10打开DOS,执行以下命令:

DiskPart

List Disk

Select Disk 0

clean

convert gpt

create partition efi size=200

create partition msr size=200

create partition primary size=200000

 

5.服务器设置

关闭禁用以下服务:

Remote Registry

Print Spooler

Themes

 

6. 命令打开端口

rem Open TCP Port 80 inbound and outbound
netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=out action=allow protocol=TCP localport=80

 

posted @ 2015-08-26 07:18  NewSea  阅读(389)  评论(0编辑  收藏  举报