Check if Enough Free Space in Remote Computer with PowerShell

I’m currently writing lots of building blocks of code to deploy Infrastructure as Code (IaC).

The following code can check if there enough space (in this case, 10 GB of space) on the C drive of the computer kopidc01:

$computer = "kopidc01"
$RequiredSpaceGB = 10
$FreeSpaceGB = [int]((Get-CimInstance -ComputerName $computer…

--

--

--

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Attacking Network Device PART — 6

How agile workflow works at Homesite

Déja Déja Vu

Launch Your Next Project With NASA

Rocket launching into space.

Web Scraping with Python Part 1: Introduction

CSS Animation: Transition

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

Let’s Talk: Containers and Kubernetes In Google Cloud Platform — Part 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Guillermo Musumeci

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

More from Medium

#18 DOMAIN NAME SYSTEM (DNS): THE NETWORKING SERIES

Parameterised job in Jenkins

Install NixOS with BTRFS and IN-RAM root

HTTP POST from PowerShell