wmicdiskdrivegetName,Manufacturer,Model,InterfaceType,MediaType,SerialNumberThefulllistofpropertiesthatyoucanuseforthequeryaboveisasfollows:•Availability•BytesPerSector•Capabilities•CapabilityDescript
原创
2019-04-16 09:41:29
697阅读
# 如何在Python中获取磁盘剩余空间
作为一名经验丰富的开发者,你可能经常需要获取系统的磁盘剩余空间。在Python中,可以通过一些库和方法来实现这个功能。现在有一位刚入行的小白不知道怎么做,让我们来帮助他。
## 整体流程
首先,让我们来看一下整个获取磁盘剩余空间的流程。我们可以将其分为几个步骤,并用表格展示出来。
| 步骤 | 操作 |
| ---- | -----
原创
2024-04-23 03:48:36
38阅读
https://stackoverflow.com/questions/571429/powershell-web-requests-and-proxies
转载
2018-09-26 10:54:00
103阅读
2评论
private void treeView1_BeforeExpand(object sender, System.Windows.Forms.TreeViewCancelEventArgs e)
{
//获取发出信息的节点
TreeNode node=e.Node;
//设置它为treeView的当前节点
this.treeView1.SelectedNode=node;
string path=node.FullPath;
string[] dirs=null;
try
{
//获得当前节点所有的子节点
dirs=Directory.GetDirectories(path);
}
catch(Exception error)
{
//错误处理为空,即忽略
推荐
原创
2007-06-08 16:27:06
5476阅读
1评论
背景 项目中有个需求,要通过PowerShell获取Server上某个服务的描述 Get-Service方法居然不返回该属性,夭寿 Get-CIMInstance Vs Get-WMIObject 那获取系统更详细的信息,自然也有对应的命令 Get-WmiObject win32_service | ...
转载
2021-09-27 13:51:00
781阅读
2评论
windows powershell df
原创
2024-08-26 11:29:47
68阅读
前提是安装RSAT tool for win10,这样才有相应的powershell module 来管理DHCP 另外要有权限来查询DHCP服务器加入下面代码到$profile 中function get-dhcplease{
$dhcpservers=Get-DhcpServerInDC
$dhcpscopes=$dhcpservers|%{$computername=$_
原创
2016-02-16 11:32:21
800阅读
powershell网页请求
原创
精选
2022-09-22 10:47:29
1417阅读
点赞
示例脚本通过哈希表对输出的结果进行格式化注意:为了测试能输出结果,本地计算机必须打开winrm quickconfigGet-Process powershell -ComputerName localhost, Server01, Server02 | Format-Table -Property Handles, @{Label="NPM(K)";Expression={[int]($_.NP
原创
2019-04-23 14:20:38
905阅读
Today, I'm trying to get the thumbprint data by using powerhsell command, after a long search found it's the useful command to get it.command should be:Get-ChildItem -path Cert:\LocalMachine\myPS C:\s
原创
2017-09-13 11:08:16
1279阅读
Powershell有236个核心命令,Exchange根据版本不同有535到610个命令,SharePoint有500个以及一些罕见的命令,活动目录有100个,以及一些罕见命令,Server2012有上千个命令。这么多的命令你都了解有什么功能么?都怎么使用么?在什么时候使用?啊啊啊头要大了。 当当当当不用怕有ge
推荐
原创
2014-02-11 22:35:46
2949阅读
点赞
How to know which Wmi class is my need?For example as belowGet-Wmiobject -list *boss*; Get-WmiObject -List *processor*OK, to read the whole article click the following link pls,http://blogs.techn
转载
精选
2016-01-15 13:19:50
626阅读
如何用powershell 获取 windows 公网IP
转载
2021-11-21 23:42:41
508阅读
环境配置说明Windows21H1PSVersion5.1.19041.1320 示例powershellPSC:\Users\admingetverbVerbGroupAddCommonClearCommonCloseCommonCopyCommonEnterCommonExitCommonFindCommonFormatCommonGetCommonHideCommonJoinCom
原创
2021-12-08 21:20:33
319阅读
Get-Member是一条很实用的命令,它用来发现Powershell对象的属性信息。在命令行中,我们不能右键点击对象然后再检查它的属性;但是你可以输入:get-objectXYZXYZ | get-member 来查看属性。
Powershell 有些时候被认为是种可以自我解释(self-describing)的语言。确实,由于get-member,我们能够查看到任何给定对象的属性(Property)和方法(Method)。
翻译
精选
2009-07-31 23:09:57
6982阅读
4评论
下面介绍了Exchange 2013里Get-MessageTrackingLog常用的各种Powershell, Get-MessageTrackingLog -resultsize unlimited -Start "06/01/2014 4:30:00 PM" -End "06/04/2014 5:17:00 PM" |where-object {$_.Recipients -li
原创
2015-12-15 15:29:20
3666阅读
powershell 网页get、post 中文请求与返回
原创
2022-10-03 02:31:02
662阅读
今天遇到一副Google的图罗列了常见操作的时间损耗,见高清大图..
转载
2012-04-28 00:04:00
209阅读
2评论
Ghost的Disk菜单下的子菜单项可以实现硬盘到硬盘的直接对拷(Disk-To Disk)、硬盘到镜像文件(Disk-To Image)、从镜像文件还原硬盘内容(Disk-From Image)。
在多台电脑的配置完全相同的情况下,我们可以先在一台电脑上安装好操作系统及软件,然后用ghost的硬盘对拷功能将系统完整地“复制”一份到其它电脑,这样装操作系统可比传统方法快多了哦:)。
Ghost
转载
2009-02-10 15:32:00
699阅读
2评论
使用you-get以及PowerShell进行B站视频的批量下载。
原创
2022-08-26 08:45:39
627阅读