windows部分技巧

桌面

1
2
3
ctrl + win + d : 新建 桌面
win + Tab : 切换桌面
win + d : 显示到当前桌面

网络

1
netsh winsock reset  : 重置网络

用户

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
net user
net user share share /add
net user share
wmic useraccount where "Name='share'" set PasswordExpires=false
net localgroup "Users" share /add
net user share /logonpasswordchg:no # 禁止登录
net user share /delete

net user imwl /active:yes # 账户锁定后解锁


net user imwl password /add
net user imwl
wmic useraccount where "Name='imwl'" set PasswordExpires=false
net localgroup "Remote Desktop Users" imwl /add
net localgroup administrators imwl /add


win+r GPEDIT.MSC 本地计算机策略→计算机配置→Windows设置→安全设置→本地策略→用户权限分配

拒绝里添加用户登录

# 使用微软账户远程登录需要执行一下,否则密码对也登录不上
runas /u:MicrosoftAccount\[email protected] winver

添加网络位置

测试 mount -t smbfs //admin:[email protected]/D /Users/imwl/mysmb 没问题,但 windows 添加网络位置,输入的文件夹似乎无效

访问网络位置的时候,使用的用户及密码不对。由于登录了微软账户,默认使用微软用户进行访问的,所以导致无法访问

1、改为添加“映射网络驱动器”;

2、勾选“使用其他凭据连接”,即可输入用户名及密码进行访问;

3、一旦连接成功之后,再次添加“添加一个网络位置”时,就可以正常访问了

clash for windows

setting

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parsers:
- reg: 'slbable$'
yaml:
append-proxy-groups:
- name: ⚖️ 负载均衡-散列
type: load-balance
url: 'http://www.google.com/generate_204'
interval: 300
strategy: consistent-hashing
- name: ⚖️ 负载均衡-轮询
type: load-balance
url: 'http://www.google.com/generate_204'
interval: 300
strategy: round-robin
commands:
- proxy-groups.⚖️ 负载均衡-散列.proxies=[]proxyNames
- proxy-groups.0.proxies.0+⚖️ 负载均衡-散列
- proxy-groups.⚖️ 负载均衡-轮询.proxies=[]proxyNames
- proxy-groups.0.proxies.0+⚖️ 负载均衡-轮询

使用策略

1
http://xxx.xxx.xxx/xxx.yaml#slbable