该专栏会持续记录各类技术难题的解决过程,包括但不限于网络排错、部署服务、工具小妙招等内容
Tips
powershell相关: 历史记录 code %USERPROFILE%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt Windows 双系统 主板时差 reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f Hyper-V开启嵌套虚拟化 Get-Vm Set-VMProcessor -ExposeVirtualizationExtensions $true -VMName name hyper-v相关: vm管理工具 winget install –id=VMPlex.VMPlex -e -s winget 查看vm虚拟机 get-netadapter | Where-Object {$_.InterfaceDescription -match "Hyper-V"} | Select-Object Name, InterfaceAlias 查询被占用的文件进程 winget install Microsoft.Sysinternals.Handle handle "C:\path\to\your\file.txt" # 完整路径 handle test.txt # 仅文件名(会搜索所有位置) handle D:\docs # 搜索整个目录下的文件占用 Process Explorer 安装 : Winget:winget install Microsoft.Sysinternals.ProcessExplorer
