随笔分类 - hyper-v
摘要:喜欢用linux的grep命令查找文件内容,用起来很方便,windos是否也有grep命令呢? 在powershell中,提供了Select String命令搜索文件内容 通常用法 忽略大小写 多个关键词 递归查找 此生必看的科学实验 https://v.qq.com/x/page/d01080hy
阅读全文
摘要:喜欢用linux的grep命令查找文件内容,用起来很方便,windos是否也有grep命令呢?在powershell中,提供了Select-String命令搜索文件内容通常用法select-string -Pattern "Keyword" -Path *.logs...
阅读全文
摘要:想要通过wmi接口修改windows盘符,该如何实现呢?wmi提供了Win32_Volume类,通过该类可以修改盘符。 python脚本 powershell脚本
阅读全文
摘要:想要通过wmi接口修改windows盘符,该如何实现呢?wmi提供了Win32_Volume类,通过该类可以修改盘符。python脚本import wmi_root_conn = wmi.WMI(privileges=["Shutdown"])query_str = ...
阅读全文
摘要:在powershell中运行Get-VolumePS C:\Users\Administrator> Get-VolumeDriveLetter FileSystemLabel FileSystem DriveType HealthStatus Operational...
阅读全文
摘要:PS C:\> get-vm 虚拟机名称 |get-vmbiosVMName StartupOrder NumLockEnabled------ ------------...
阅读全文
摘要:PS C:\Users\xxx> Test-NetConnection 192.168.1.13ComputerName : 192.168.1.13RemoteAddress : 192.168.1.13InterfaceAli...
阅读全文

浙公网安备 33010602011771号