I would like to know how to obtain the disk size of the remote environment.

Asked 2 years ago, Updated 2 years ago, 139 views

Questions about Windows command prompts.
I'd like to know if anyone knows, but for example, is there a simple way to check the size of the C drive in the remote environment from the command prompt? (I think I should throw a query, but I don't know how...)

To explain the situation, I often work in a remote environment right now, but due to the large number of users logging in, disk size is often constrained and files need to be deleted regularly.At present, people regularly enter the environment and check it one by one, but if possible, I would like to stop doing so.Could you tell me how to know the disk size without connecting to a remote desktop?

Thank you for your cooperation.

windows command-line

2022-09-30 19:17

2 Answers

WMI-enabled environments

 wmic/node: "Server name you want to get" /user: Username with Administrator privileges /password:password logicaldiskwheredeviceid="C:"list brief

You should be able to get free space for C drive.


2022-09-30 19:17

After configuring the disk you want to check in advance as a shared folder, the client will be able to check the usage from the command line with the dir command.

Check the dir command in Windows for free space in the shared folder:Tech TIPS-@IT


2022-09-30 19:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.