随笔分类 -  hyper-v

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