Windows日常操作

2015-12-21

windows curl

下载地址:https://curl.haxx.se/windows/

windows命令行工具 nircmd

下载地址:http://www.nirsoft.net/utils/nircmd.html

关闭监视器:

nircmd.exe monitor off

锁屏:

nircmd.exe lockws

截屏:

nircmd.exe savescreenshotfull "f:\tmp\shot.png"

设置鼠标在屏幕位置:

nircmd.exe setcursor 100 50

按鼠标键:

① sendmouse right click 右键鼠标
② sendmouse left click  左键鼠标
③ sendmouse left dblclick 双击鼠标左键
④ sendmouse left down  按下鼠标左键
⑤ sendmouse left up  松开鼠标左键
⑥ sendmouse middle click

win10激活

序列号

Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM
Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9
Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N: DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4

激活步骤:

slmgr /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
slmgr /skms kms8.msguides.com
slmgr /ato

脚本重连蓝牙耳机

首先去该网站下载:蓝牙命令行管理工具

然后打开命令行,输入

btdiscovery -s  # 扫描蓝牙设备,需要等待一会

获取到设备的 DEVICE_ADDRESS 和 SERVICE_UUID

DEVICE_ADDRESS 是蓝牙设备的mac地址

SERVICE_UUID 是设备的服务ID,比如耳麦是1108,免提网关111E

自动重新连接bat脚本

@echo off

rem   The following line is needed only if you haven't added Bluetooth Command Line Tools to system PATH
REM set PATH=C:\Program Files (x86)\Bluetooth Command Line Tools\bin;%PATH%

rem   Change the following 2 lines to match your device
set DEVICE_ADDRESS=1C:52:16:58:8F:95
set SERVICE_UUID=1108

rem   If your device requires PIN code other than '0000', uncomment and change the following line
set PIN=0000

rem   Remove the device. Ignoring possible error here 
btpair -u -b"%DEVICE_ADDRESS%"

rem   Pair the device
btpair -p%PIN% -b"%DEVICE_ADDRESS%"
if errorlevel 1 goto error

rem   Enable the service
REM btcom -c -b"%DEVICE_ADDRESS%" -s%SERVICE_UUID%
REM if errorlevel 1 goto error

goto success

rem   Allow user to read error message before window is closed
:error
pause
exit

:success
exit

查看AC电源状态

WMIC Path Win32_Battery Get BatteryStatus

操作系统中查看硬件制造商和BIOS版本

dxdiag

或者cmd里输入:

wmic bios get biosversion

wmic bios get SMBIOSBIOSVersion

查看磁盘硬件名称

wmic diskdrive get caption

查看内存硬件厂商

wmic memorychip get Manufacturer

利用Windows内置工具测试硬盘速度

测试默认磁盘

winsat disk

指定磁盘进行测速

winsat disk -drive d 

注:请使用管理员权限打开cmd,否则在win10下面最终测试结果会一闪而过

windows下查看wifi信息

进入cmd输入:

netsh wlan show interface

Win7下格式化成 FAT32

右键管理员身份打开cmd

如果你格式化的是E盘

输入format E: /fs:fat32

回车后会提示输入卷标,就是指该分区名称

win8远程连接win10

1.账户前面需跟计算机名,如:计算机名\用户名.

2.win10上,运行gpedit.msc-计算机配置-Windows设置-安全设置-本地策略-安全选项-网络访问:本地账户的共享安全模型

设置成:经典-对本地用户进行身份验证,不改变其本来身份

指定用户访问共享samba

清除用户记录:

net use \\192.168.1.1 /del

指定用户登录(需要输入密码)

net use \\192.168.1.1 /user:malu

携带密码登录:

net use \\192.168.1.1 "password" /user:malu /persistent:yes

查看状态:

net use

自动登录脚本:

@echo off
net use \\192.168.0.1 /delete
net use \\192.168.0.1 "password" /user:malu /persistent:yes
explorer \\192.168.0.1\