ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

Windows Knowledge

2026/9/17 11:41:22 拓冰建站 浏览量
Windows Knowledge 1 GRUB简介1.1 MBR和PBRMBR分为GRUB.MBR和DOS.MBR。由于硬盘上扇区从偏移0到偏移62属于同一个磁道0虽然DOS.MBR仅占用一个扇区但是需要将DOS.MBR后面的偏移1到偏移62保留所以磁盘上第一个分区的第一个扇区是从偏移63开始的。fbinst软件会保留1-16064扇区等于硬盘1个柱面的大小255 x 63 x 512 8MB所以第一个分区是从扇区16065开始的。USB-ZIP和USB-FDD会将U盘的第一个扇区格式化成DOS.PBR而不是DOS.MBR。USB-FDD和USB-ZIP的来历软盘的容量小没有分区结构所以软盘是没有MBR的整个软盘只有一个分区第一个扇区就是PBRFDD和ZIP模式在DOS下启动后U盘的盘符是A。1.2 GRUB- GRUB又叫OS Loader在Android系统上kernelflinger是OS Loader的一个EFI应用- GRUB镜像组成GRUB.MBRboot.img, 硬盘扇区offset 1 到offset 62放置GRUB的core.img/boot分区的boot/grub/grub.cfg1.3 创建USB-FDD或者USB-ZIP格式U盘步骤1Android上dd if/dev/zero of/dev/block/sda bs512 count42Windows上快速格式化该U盘这个U盘就只有PBR扇区而没有MBR扇区2 Windows安装2.1 BIOS设置进入BIOS设置一般有Del、Enter、Esc等键。2.2 Windows ISO刻录方法Windows上的Universal USB Installer工具软件刻录操作系统ISO文件到U盘Linux下将操作系统ISO文件刻录到U盘dd ifxxx.iso of/dev/sda 注意使用的是整个磁盘所以用的是sda而不是sda12.3 Windows GHO镜像安装方法 - 比较常见1) 制作PE启动U盘2) 下载Windows ISO镜像后番茄花园解压出来里面包含GHO文件拷贝到PE启动U盘的GHO文件夹或者提前将文件.gho拷贝入待装系统的电脑D盘根目录。3) 插入PE启动U盘到电脑USB 2.0口选择从U盘启动启动到PE界面后选ghost方式安装ghost镜像的后缀名.gho。2.4 Win10临时关闭驱动签名This PC - Advanced system settings - Advanced - Environment Variables开始 - 设置 - 更新和安全 - 恢复 - 点击右边高级启动项下方的立即重启进入高级启动 - 选择疑难解答 - 高级选项 - 启动设置 - 重启 - 再按数字键7或F7禁止驱动签名期间可能要求输入Bitlocker Recovery Key提前从如下的网址中获取或者在别人电脑登录获取。https://myaccount.microsoft.com/device-list2.5 Printer2.5.1 Printer1HP LaserJet M1005 MFP2Nantian PR9 并口-OKI仿真驱动2.5.2 Canon TS308 Cartridge - 20221220CL-846S Color, PG-845S Black. CL stands for ChromaLife, PG stands for Pigment Based, 8 is for China market, S stands for small.FINE: Canon Full-photolithography Inkjet Nozzle EngineeringPIXMA: PIxel Maximum and PowerSELPHY: do it yourSELf PHotographYHow to print without a color cartridge- Canon Pixma?https://www.computerhope.com/forum/index.php?topic105910.0Having just experienced this same problem with another model (Pixma all in one) from Canon and talking with their tech support I can contribute the following. When ANY cartridge becomes either defective or empty you CANNOT use any of the other components of the device.2.5.3 G5080 - 202608222.5.4 HP LaserJet 10202.5.5 WLAN moduleCanonALPS ZE-5P3A, based on marvell 88W8782Canon MG7780Canon USB WLAN K30365, based on Marvell 88W8801Ricoh SP 150SUwUSB WLAN WN4616L, based on RTL8192EU3 Windows网络3.1 CMD方式配置IP地址:: netsh: Network Shellecho offif [%1] [] (PowerShell Get-NetAdapterecho Usage:echo WIN_IP.bat staticecho WIN_IP.bat dhcpecho WIN_IP.bat speedgoto :EOF)if %1 static (call :static_ip 192.168.0.100) else if %1 dhcp (call :dhcp_ip) else if %1 speed (call :nic_speed)goto :EOF:static_ipset nameEthernetset ip%~1set mask255.255.255.0:: gwmetric1echo setting static ip address...netsh interface ipv4 set address %name% static %ip% %mask% none 1:: netsh interface ipv4 set dns %name% static 114.114.114.114:: netsh interface ipv4 add dns %name% 8.8.8.8:: Device Manager - Network adapters - Properties - Advanced - VLAN IDPowerShell Set-NetAdapterAdvancedProperty -Name %name% -DisplayName \VLAN ID\ -DisplayValue 60PowerShell Get-NetAdapterAdvancedPropertyPowerShell Set-NetconnectionProfile -InterfaceIndex 4 -NetworkCategory PrivatePowerShell Get-NetconnectionProfilegoto :EOF:dhcp_ipset nameEthernetecho setting dhcp...netsh interface ipv4 set address %name% dhcpnetsh interface ipv4 set dns %name% dhcpPowerShell Reset-NetAdapterAdvancedProperty -Name %name% -DisplayName \VLAN ID\goto :EOF:nic_speedwmic NIC where NetEnabledtrue get Name, Speed3.2 DNS查询流程1) 现有的DNS缓存ipconfig /displaydns2) 查询hosts文件C:WindowsSystem32driversetchosts3) 请求发往DNS服务器ipconfig /all3.3 firewallappwiz.cplmsconfigwf.mscInbound Rules and Outbound RulesEnable 4 File and Printer Sharing (Echo Request - ICMPv4-Out)netsh advfirewall firewall add rule nameUDP ports protocolUDP dirin localport8080 actionallowhttps://github.com/DynamoRIO/drmemory/wiki/Downloads3.4 Multicast- Windows组播client需要使用setsockopt()设置IP_ADD_MEMBERSHIP加入指定的组播组才能接收组播server发送的数据。- 组播MAC地址是指第一个字节的最低位是1的MAC地址。- 组播MAC地址的前3个字节固定为01:00:5e后3个字节使用组播IP的后23位。例如239.192.255.251的MAC地址为01:00:5e:40:ff:fb。- Windows 10 Wireshark要抓取SOME/IP组播报文需要使用SocketTool工具监听239.192.255.251:30490然后Wireshark才会显示组播报文否则不显示Windows netmon不需要任何设置就可以抓到全部报文。netsh interface ip show joinsWin 10 PowerShell:Get-NetAdapter | Format-List -Property ifAlias,PromiscuousModeIn Linux, map IP addr to multicast MAC is function ip_eth_mc_map(), kernel eventually calls driver ndo_set_rx_mode() to set multicast MAC to NIC RX MAC filter table.3.5 NAT查看当前机器的NAT端口代理表netsh interface portproxy show all1) 第三方软件PortTunnel。2) ICSInternet Connection Sharing是NAT的简化版。3) showcase: USB Reverse Tethering3.6 route命令用法route [-f] [-p] [command [destination] [mask netmask] [gateway] [metric metric] [if interface]]route print::增加一条到192.168.0.10/24网络的路由网关是192.168.0.1最后一个if参数是数字可以使用route print查询类似于Android的NetId。route add 192.168.0.0 mask 255.255.255.0 192.168.0.1 metric 1 if 11::删除192.168.0.10这条路由route delete 192.168.0.03.7 WiFi AP1) get passwordnetsh wlan show profilesnetsh wlan show profiles nameFAST_ABCD keyclear2) enable Soft APnetsh wlan show drivers::netsh wlan set hostednetwork modeallownetsh wlan set hostednetwork modeallow ssidmyWIFI key12345678netsh wlan start hostednetwork::netsh wlan stop hostednetwork3.8 Malicious softwareTask ManagerFind process name, open file location, remove xxx.exe, rename empty xxx.txt to xxx.exe4 Office4.1 Excel4.1.1 插入符号InsertSymbolMore SymbolsWingdings 24.1.2 excel百分比的计算删除数字之间的空格fxSUBSTITUE(C2, , )选中一个单元格找到行的坐标譬如C2和B2则percent的公式是fx(C2-B2)/B2。然后选中D列右键选择Format Cells...Percentage - Decimal Places的值为2会将D列数据转成百分比了。4.2 Outlook4.2.1 邮箱清理File - Info - Tools - Mailbox Cleanup - AutoArchiveCalendar (Left Bottom) - View (Change View to Calendar) - Choose Menu Month4.2.2 TCAM filter ruleHome - ... - Rules - Create Rule (Manage Rules Alerts) - Title4.2.3 Automatic RepliesFile, Info, Automatic Replies4.2.4 邮件组Home - New Items - More Items - Contact Group - Add Members - From Outlook Contacts - Save Close4.3 Powerpoint画图插入 - 形状Insert - Shapes4.4 Word升级目录[References][Update Table]5 Sprax EA5.1 InstallWindows - Self Service Client - Find Enterprise Architect - Install5.2 Version Control SettingsWorking Copy Path: project path - The project folder includes many xml files.Subversion Exe Path: \path\to\TortoiseSVN\bin\svn.exe项目右键 - Package Control - Version Control Settings...EA opens .qea (64bit EA project) for Version Control Settings.How to edit specific page?Right-click the specific folder in GUI, choose Package Control - Check Out...How to find who locks the editor?Go to the project folder through Windows Explorer, right-click the specific folder, choose TortoiseSVN - Check for modifications - Check repository, find who has locked the folder.5.3 Package拷贝粘贴拷贝一个package右键选择Copy - Full Structure for Duplication然后找到要粘贴的上级package右键Paste - Package from Clipboard。5.4 DrawingDesign - ToolboxLifeline Message (Message/Argument/Return Value, Is Return)拷贝到Word文档中的命令Publish - Save - Save to Clipboard6 CodeSonarWindows Settings - Apps - Optional features - Add a feature - Find OpenSSH Client - InstallMicrosoft VS code left - Remote Explorer - SSH Targets - 7 USBWin7 CMD:wmic path Win32_PnPSignedDriver | find Androidwmic path Win32_PnPSignedDriver | find USB:: similar to Linux lsusbwmic path Win32_USBControllerDevice get Dependent8 AbbreviationsCAB: Capacity Approval BoardNPcap: Nmap Packet CaptureWinRAR: Roshal ARchivewmic: Windows Management Instrumentation Command-line