{"id":804773,"date":"2026-05-05T12:38:59","date_gmt":"2026-05-05T12:38:59","guid":{"rendered":"https:\/\/www.ninjaone.com\/?post_type=script_hub&#038;p=804773"},"modified":"2026-05-05T12:38:59","modified_gmt":"2026-05-05T12:38:59","slug":"como-verificar-o-monitoramento-do-espaco-em-disco-script-powershell","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/pt-br\/script-hub\/como-verificar-o-monitoramento-do-espaco-em-disco-script-powershell\/","title":{"rendered":"Como verificar o espa\u00e7o em disco do monitor &#038; remotamente com o script do PowerShell"},"content":{"rendered":"<p><strong>O monitoramento do espa\u00e7o em disco<\/strong> \u00e9 um componente b\u00e1sico, mas fundamental, do suporte proativo de TI, essencial para reduzir o volume de t\u00edquetes e manter a integridade e a estabilidade do sistema. A falta ou o esgotamento do espa\u00e7o em disco pode, obviamente, ser respons\u00e1vel por uma s\u00e9rie de problemas e reclama\u00e7\u00f5es dos usu\u00e1rios, desde falhas nos aplicativos at\u00e9 o travamento total do sistema, portanto, a cria\u00e7\u00e3o de alertas para quando as unidades ficarem abaixo de um limite especificado \u00e9 uma \u00f3tima maneira de evitar esses problemas.<\/p>\n<p>Esta publica\u00e7\u00e3o o orientar\u00e1 sobre como verificar a capacidade do disco e alertar sobre pouco espa\u00e7o em disco remotamente, em toda a sua base de usu\u00e1rios.<\/p>\n<p>Como posso verificar o espa\u00e7o no disco r\u00edgido remotamente e enviar um alerta quando o espa\u00e7o em disco estiver baixo?<\/p>\n<ol>\n<li>Identifique quais unidades voc\u00ea deseja monitorar e quais (se houver) deseja excluir.<\/li>\n<li>Determine os limites de espa\u00e7o em disco que voc\u00ea gostaria de definir para cada tipo de unidade.<\/li>\n<li>Personalize o script abaixo, de acordo.<\/li>\n<\/ol>\n<p>Esse script do PowerShell foi projetado para alertar sobre unidades que est\u00e3o abaixo de uma porcentagem ou tamanho especificado. Ele faz distin\u00e7\u00e3o entre unidades do sistema (aquelas usadas para inicializar o sistema operacional) e unidades de dados, fornecendo uma vis\u00e3o geral abrangente do uso do espa\u00e7o em disco.<\/p>\n<p>O script \u00e9 vers\u00e1til e personaliz\u00e1vel, permitindo que voc\u00ea defina par\u00e2metros para unidades de sistema e de dados separadamente. Voc\u00ea pode especificar o espa\u00e7o livre m\u00ednimo em porcentagem e em bytes, e at\u00e9 mesmo excluir determinadas unidades da verifica\u00e7\u00e3o. Essa flexibilidade \u00e9 ideal para qualquer <a href=\"https:\/\/www.ninjaone.com\/pt-br\/blog\/melhores-praticas-de-help-desk-de-ti\/\">profissional de TI<\/a> ou <a href=\"https:\/\/www.ninjaone.com\/what-is-an-msp\/\">MSP<\/a>.<\/p>\n<h2>O script do monitor de espa\u00e7o em disco:<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-group=\"require-terms\">#Requires -Version 2.0\r\n\r\n&lt;#\r\n.SYNOPSIS\r\n    Alert on drive(s) that fall below a specified % or size. Distinguishes between System and Data drives.\r\n.DESCRIPTION\r\n    Alert on drive(s) that fall below a specified % or size. Distinguishes between System and Data drives.\r\n    The system drive is the drive(s) that are used to boot the OS.\r\n.EXAMPLE\r\n     -SystemDriveMinFreePercent 10 -SystemDriveMinFreeBytes 10GB -DataDriveMinFreePercent 20 -DataDriveMinFreeBytes 20GB\r\n    This checks all Drives\r\n.EXAMPLE\r\n     -ExcludeDrivesCustomField \"C,Z\" -SystemDriveMinFreePercentCustomField \"SystemDriveMinFreePercent\" -SystemDriveMinFreeBytes \"SystemDriveMinFreeBytes\" -DataDriveMinFreePercent \"DataDriveMinFreePercent\" -DataDriveMinFreeBytes \"DataDriveMinFreeBytes\"\r\n    This checks all Drives, except for C: and Z:.\r\n    Use this if you wish to to custom fields to specify the values from roles or globally.\r\n    This will pull the values from custom fields that would have otherwise been used from parameters.\r\n.EXAMPLE\r\n     -ExcludeDrivesByNameCustomField \"NoMonitor\" -SystemDriveMinFreePercentCustomField \"SystemDriveMinFreePercent\" -SystemDriveMinFreeBytes \"SystemDriveMinFreeBytes\" -DataDriveMinFreePercent \"DataDriveMinFreePercent\" -DataDriveMinFreeBytes \"DataDriveMinFreeBytes\"\r\n    This checks all Drives, except where a drive name\/label contains the text \"NoMonitor\".\r\n    Use this if you wish to to custom fields to specify the values from roles or globally.\r\n    This will pull the values from custom fields that would have otherwise been used from parameters.\r\n.EXAMPLE\r\n     No Parameters Specified\r\n    This checks all Drives with the defaults:\r\n        SystemDriveMinFreePercent   10%\r\n        SystemDriveMinFreeBytes     10GB\r\n        DataDriveMinFreePercent 20%\r\n        DataDriveMinFreeBytes   20GB\r\n.OUTPUTS\r\n    None\r\n.NOTES\r\n    Minimum OS Architecture Supported: Windows 7, Windows Server 2012 R2\r\n    Release Notes:\r\n    Initial Release\r\n    (c) 2023 NinjaOne\r\n    By using this script, you indicate your acceptance of the following legal terms as well as our Terms of Use at https:\/\/www.ninjaone.com\/terms-of-use.\r\n    Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms. \r\n    Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party. \r\n    Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library or website belonging to or under the control of any other software provider. \r\n    Warranty Disclaimer: The script is provided \u201cas is\u201d and \u201cas available\u201d, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations. \r\n    Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks. \r\n    Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script. \r\n    EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).\r\n#&gt;\r\n\r\n[CmdletBinding()]\r\nparam (\r\n    [Parameter()]\r\n    [String]\r\n    $ExcludeDrives,\r\n    $ExcludeDrivesCustomField, # If set, get value from a custom field with this name.\r\n    [String]\r\n    $ExcludeDrivesByName,\r\n    $ExcludeDrivesByNameCustomField, # If set, get value from a custom field with this name.\r\n    $SystemDriveMinFreePercent = 10,\r\n    $SystemDriveMinFreePercentCustomField, # If set, get value from a custom field with this name.\r\n    $SystemDriveMinFreeBytes = 10GB,\r\n    $SystemDriveMinFreeBytesCustomField, # If set, get value from a custom field with this name.\r\n    $DataDriveMinFreePercent = 20,\r\n    $DataDriveMinFreePercentCustomField, # If set, get value from a custom field with this name.\r\n    $DataDriveMinFreeBytes = 20GB,\r\n    $DataDriveMinFreeBytesCustomField # If set, get value from a custom field with this name.\r\n)\r\n\r\nbegin {\r\n    function Get-Size {\r\n        param (\r\n            [string]$String\r\n        )\r\n        switch -wildcard ($String) {\r\n            '*PB' { [int64]$($String -replace '[^d+]+') * 1PB; break }\r\n            '*TB' { [int64]$($String -replace '[^d+]+') * 1TB; break }\r\n            '*GB' { [int64]$($String -replace '[^d+]+') * 1GB; break }\r\n            '*MB' { [int64]$($String -replace '[^d+]+') * 1MB; break }\r\n            '*KB' { [int64]$($String -replace '[^d+]+') * 1KB; break }\r\n            '*B' { [int64]$($String -replace '[^d+]+') * 1; break }\r\n            '*Bytes' { [int64]$($String -replace '[^d+]+') * 1; break }\r\n            Default { [int64]$($String -replace '[^d+]+') * 1 }\r\n        }\r\n    }\r\n    function Get-FriendlySize {\r\n        param($Bytes)\r\n        # Converts Bytes to the highest matching unit\r\n        $Sizes = 'Bytes,KB,MB,GB,TB,PB,EB,ZB' -split ','\r\n        for ($i = 0; ($Bytes -ge 1kb) -and ($i -lt $Sizes.Count); $i++) { $Bytes \/= 1kb }\r\n        $N = 2\r\n        if ($i -eq 0) { $N = 0 }\r\n        if ($Bytes) { \"$([System.Math]::Round($Bytes,$N)) $($Sizes[$i])\" }else { \"0 B\" }\r\n    }\r\n    function Invoke-DiskAlert {\r\n        param (\r\n            [PSObject[]]$Drives\r\n        )\r\n        $Drives | ForEach-Object {\r\n            $Type = if ($_.IsSystemDrive) { \"SystemDrive\" }else { \"DataDrive\" }\r\n            $Drive = $_\r\n            if ($Drive.totalSpace -and $Drive.freeSpace \/ $Drive.totalSpace * 100 -lt $Settings.\"$Type\".MinFreePercent) {\r\n                Write-Output \"$Type ($($Drive.driveName)) free space is under $($Settings.\"$Type\".MinFreePercent)% at $(Get-FriendlySize -Bytes $Drive.freeSpace)\"\r\n            }\r\n            elseif ($Drive.freeSpace -lt $Settings.$Type.MinFreeBytes) {\r\n                Write-Output \"$Type ($($Drive.driveName)) free space is under $(Get-FriendlySize -Bytes $Settings.\"$Type\".MinFreeBytes) at $(Get-FriendlySize -Bytes $Drive.freeSpace)\"\r\n            }\r\n        }\r\n    }\r\n    function Get-Drive {\r\n        param([string]$DriveName)\r\n        if ($(Get-Command -Name \"Get-CimInstance\")) {\r\n            Get-CimInstance -Query \"select * from Win32_DiskDrive\" | Where-Object { $_.Size } | ForEach-Object {\r\n                $d = $_\r\n                $d | ForEach-Object {\r\n                    $Disk = $_\r\n                    $p = Get-CimInstance -Query \"ASSOCIATORS OF {Win32_DiskDrive.DeviceID='$($Disk.DeviceID)'}  WHERE AssocClass = Win32_DiskDriveToDiskPartition\"\r\n                    $p | ForEach-Object {\r\n                        $Partition = $_\r\n                        Get-CimInstance -Query \"ASSOCIATORS OF {Win32_DiskPartition.DeviceID='$($Partition.DeviceID)'} WHERE AssocClass = Win32_LogicalDiskToPartition\" | ForEach-Object {\r\n                            $ld = $_\r\n                            [PSCustomObject]@{\r\n                                driveName     = $ld.DeviceId # C:\r\n                                IsSystemDrive = if ($p | Where-Object { $_.BootPartition }) { $true }else { $false }\r\n                                freeSpace     = $ld.FreeSpace # in bytes\r\n                                totalSpace    = $ld.Size # in bytes\r\n                                fileSystem    = $ld.FileSystem # NTFS\r\n                                physicalName  = $d.Name # .PHYSICALDRIVE2\r\n                                diskName      = $d.Caption # WDC WD5001AALS-xxxxxx\r\n                                diskModel     = $d.Model # WDC WD5001AALS-xxxxxx\r\n                                diskInterface = $d.InterfaceType # IDE\r\n                                mediaStatus   = $d.Status # OK\r\n                                volumeName    = $ld.VolumeName # System\r\n                                volumeSerial  = $ld.VolumeSerialNumber # 12345678\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            Get-WmiObject -Query \"select * from Win32_DiskDrive\" | Where-Object { $_.Size } | ForEach-Object {\r\n                $d = $_\r\n                $d | ForEach-Object {\r\n                    $Disk = $_\r\n                    $p = Get-WmiObject -Query \"ASSOCIATORS OF {Win32_DiskDrive.DeviceID='$($Disk.DeviceID)'}  WHERE AssocClass = Win32_DiskDriveToDiskPartition\"\r\n                    $p | ForEach-Object {\r\n                        $Partition = $_\r\n                        Get-WmiObject -Query \"ASSOCIATORS OF {Win32_DiskPartition.DeviceID='$($Partition.DeviceID)'} WHERE AssocClass = Win32_LogicalDiskToPartition\" | ForEach-Object {\r\n                            $ld = $_\r\n                            [PSCustomObject]@{\r\n                                driveName     = $ld.DeviceId # C:\r\n                                IsSystemDrive = if ($p | Where-Object { $_.BootPartition }) { $true }else { $false }\r\n                                freeSpace     = $ld.FreeSpace # in bytes\r\n                                totalSpace    = $ld.Size # in bytes\r\n                                fileSystem    = $ld.FileSystem # NTFS\r\n                                physicalName  = $d.Name # .PHYSICALDRIVE2\r\n                                diskName      = $d.Caption # WDC WD5001AALS-xxxxxx\r\n                                diskModel     = $d.Model # WDC WD5001AALS-xxxxxx\r\n                                diskInterface = $d.InterfaceType # IDE\r\n                                mediaStatus   = $d.Status # OK\r\n                                volumeName    = $ld.VolumeName # System\r\n                                volumeSerial  = $ld.VolumeSerialNumber # 12345678\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\nprocess {\r\n    # Get values from parameters\r\n    $Settings = [PSCustomObject]@{\r\n        SystemDrive = [PSCustomObject]@{\r\n            MinFreePercent = if ($env:SystemDriveMinFreePercent) { $env:SystemDriveMinFreePercent -replace '%' }else { $SystemDriveMinFreePercent }\r\n            MinFreeBytes   = if ($env:SystemDriveMinFreeBytes) { Get-Size -Size $env:SystemDriveMinFreeBytes }else { $SystemDriveMinFreeBytes }\r\n        }\r\n        DataDrive   = [PSCustomObject]@{\r\n            MinFreePercent = if ($env:DataDriveMinFreePercent) { $env:DataDriveMinFreePercent -replace '%' }else { $DataDriveMinFreePercent }\r\n            MinFreeBytes   = if ($env:DataDriveMinFreeBytes) { Get-Size -Size $env:DataDriveMinFreeBytes }else { $DataDriveMinFreeBytes }\r\n        }\r\n    }\r\n    # Get values from custom field\r\n    if ($SystemDriveMinFreePercentCustomField) {\r\n        $Settings.SystemDrive.MinFreePercent = Ninja-Property-Get -Name $SystemDriveMinFreePercentCustomField\r\n    }\r\n    if ($SystemDriveMinFreeBytesCustomField) {\r\n        $Settings.SystemDrive.MinFreeBytes = Ninja-Property-Get -Name $SystemDriveMinFreeBytesCustomField\r\n    }\r\n    if ($DataDriveMinFreePercentCustomField) {\r\n        $Settings.DataDrive.MinFreePercent = Ninja-Property-Get -Name $DataDriveMinFreePercentCustomField\r\n    }\r\n    if ($DataDriveMinFreeBytesCustomField) {\r\n        $Settings.DataDrive.MinFreeBytes = Ninja-Property-Get -Name $DataDriveMinFreeBytesCustomField\r\n    }\r\n    if ($env:ExcludeDrives) {\r\n        $ExcludeDrives = $env:ExcludeDrives\r\n    }\r\n    if ($ExcludeDrivesCustomField) {\r\n        $ExcludeDrives = Ninja-Property-Get -Name $ExcludeDrivesCustomField\r\n    }\r\n    if ($env:ExcludeDrivesByName) {\r\n        $ExcludeDrivesByName = $env:ExcludeDrivesByName\r\n    }\r\n    if ($env:ExcludeDrivesByNameCustomField) {\r\n        $ExcludeDrivesByNameCustomField = $env:ExcludeDrivesByNameCustomField\r\n    }\r\n\r\n    # System.IO.DriveInfo is usable as far back as .NET 2.0 for Windows 7 compatibility.\r\n    # Reference: https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.io.driveinfo?view=netstandard-2.0\r\n\r\n    # Get drives that are in the ready state\r\n    $Drives = Get-Drive\r\n\r\n    $Results = if ($Drives) {\r\n        $DrivesFiltered = if ($ExcludeDrivesByName) {\r\n            $Drives | Where-Object { $_.volumeName -notlike \"*$ExcludeDrivesByName*\" }\r\n        }\r\n        else { $Drive }\r\n\r\n        if ($ExcludeDrives) {\r\n            $DriveAlerts = Invoke-DiskAlert -Drives $DrivesFiltered\r\n            $DriveList = if ($ExcludeDrives -like \"*,*\") {\r\n                $ExcludeDrives -split ',' | Sort-Object -Unique\r\n            }\r\n            else {\r\n                $ExcludeDrives -split '' | Sort-Object -Unique | Select-Object -Skip 1\r\n            }\r\n            $DriveList | ForEach-Object {\r\n                $Drive = $_\r\n                $DriveAlerts | Where-Object { $_ -notlike \"*$($Drive):*\" }\r\n            }\r\n            \r\n        }\r\n        else {\r\n            Invoke-DiskAlert -Drives $Drives $DrivesFiltered\r\n        }\r\n    }\r\n    else {\r\n        # Should never get here, how was the script executed?!\r\n        \"No drives found?!\" | Out-String | Write-Host\r\n        exit 2\r\n    }\r\n\r\n    if ($Results) {\r\n        $Results | Out-String | Write-Host\r\n        exit 1\r\n    }\r\n    else {\r\n        Write-Host \"No drives found with low free space.\"\r\n        exit 0\r\n    }\r\n}\r\nend {\r\n    $ScriptVariables = @(\r\n        [PSCustomObject]@{\r\n            name           = \"Exclude Drives\"\r\n            calculatedName = \"excludedrives\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"List if mounted drives to exclude from low drive check. Example: CFZ or C,F,Z\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Exclude Drives Custom Field\"\r\n            calculatedName = \"excludedrivescustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. List if mounted drives to exclude from low drive check. Example: CFZ or C,F,Z\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Exclude Drives By Name\"\r\n            calculatedName = \"excludedrivesbyname\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"Exclude drives with with the specified text in it's name\/label.\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Exclude Drives By Name Custom Field\"\r\n            calculatedName = \"excludedrivesbynamecustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. Exclude drives with with the specified text in it's name\/label.\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"System Drive Minimum Size in Percent\"\r\n            calculatedName = \"systemdriveminfreepercent\"\r\n            required       = $false\r\n            defaultValue   = [PSCustomObject]@{\r\n                type  = \"TEXT\"\r\n                value = \"10%\"\r\n            }\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"The percentage of free space to alert on when the OS drive is below this percentage. Example: 50 or 50%\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"System Drive Minimum Size in Bytes\"\r\n            calculatedName = \"systemdriveminfreebytes\"\r\n            required       = $false\r\n            defaultValue   = [PSCustomObject]@{\r\n                type  = \"TEXT\"\r\n                value = \"10GB\"\r\n            }\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"The minimum free space to alert on when the OS drive is below this amount. Example: 50GB, 50000MB, or 53687091200\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Data Drive Minimum Size in Percent\"\r\n            calculatedName = \"datadriveminfreepercent\"\r\n            required       = $false\r\n            defaultValue   = [PSCustomObject]@{\r\n                type  = \"TEXT\"\r\n                value = \"20%\"\r\n            }\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"The percentage of free space to alert on when a Data drive is below this percentage. Example: 50 or 50%\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Data Drive Minimum Size in Bytes\"\r\n            calculatedName = \"datadriveminfreebytes\"\r\n            required       = $false\r\n            defaultValue   = [PSCustomObject]@{\r\n                type  = \"TEXT\"\r\n                value = \"20GB\"\r\n            }\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"The minimum free space to alert on when the Data drive is below this amount. Example: 50GB, 50000MB, or 53687091200\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"System Drive Minimum Size in Percent Custom Field\"\r\n            calculatedName = \"systemdriveminfreepercentcustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. The percentage of free space to alert on when the OS drive is below this percentage. Example: 50 or 50%\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"System Drive Minimum Size in Bytes Custom Field\"\r\n            calculatedName = \"systemdriveminfreebytescustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. The minimum free space to alert on when the OS drive is below this amount. Example: 50GB, 50000MB, or 53687091200\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Data Drive Minimum Size in Percent Custom Field\"\r\n            calculatedName = \"datadriveminfreepercentscustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. The percentage of free space to alert on when a Data drive is below this percentage. Example: 50 or 50%\"\r\n        }\r\n        [PSCustomObject]@{\r\n            name           = \"Data Drive Minimum Size in Bytes Custom Field\"\r\n            calculatedName = \"datadriveminfreebytescustomfield\"\r\n            required       = $false\r\n            defaultValue   = $null\r\n            valueType      = \"TEXT\"\r\n            valueList      = $null\r\n            description    = \"A custom field to get the value from. The minimum free space to alert on when the Data drive is below this amount. Example: 50GB, 50000MB, or 53687091200\"\r\n        }\r\n    )\r\n    $ScriptName = \"Condition Low Disk Space Alert\"\r\n}<\/pre>\n\n<div class=\"in-context-cta\"><p>Acesse mais de 700 scripts no NinjaOne Dojo<\/p>\n<p><a href=\"https:\/\/www.ninjaone.com\/freetrialform\/\">Obter acesso<\/a><\/p>\n<\/div>\n<h2>Como funciona o script do monitor de espa\u00e7o em disco<\/h2>\n<p>O script funciona primeiro coletando informa\u00e7\u00f5es sobre todas as unidades do sistema. Em seguida, ele filtra as unidades que voc\u00ea optou por excluir e verifica as unidades restantes em rela\u00e7\u00e3o aos par\u00e2metros que voc\u00ea definiu. Se alguma unidade ficar abaixo do espa\u00e7o livre m\u00ednimo especificado, o script o alertar\u00e1, permitindo que voc\u00ea tome medidas antes que isso se torne um problema.<\/p>\n<p>Um dos recursos de destaque desse script \u00e9 sua capacidade de extrair valores de campos personalizados. Isso significa que voc\u00ea pode especificar valores globalmente ou a partir de fun\u00e7\u00f5es, acrescentando outra camada de personaliza\u00e7\u00e3o ao script.<\/p>\n<h2>Transformando o gerenciamento de TI com o NinjaOne<\/h2>\n<p>Embora seja poss\u00edvel monitorar estritamente o espa\u00e7o em disco usando o PowerShell em um computador local, h\u00e1 uma maneira ainda melhor de gerenciar seus recursos de TI, remotamente e em escala: o NinjaOne.<\/p>\n<p>O NinjaOne \u00e9 uma <a href=\"https:\/\/www.ninjaone.com\/pt-br\/unified-it-operations\/\">plataforma unificada de gerenciamento de TI<\/a> que incorpora etapas de corre\u00e7\u00e3o, usando scripts, se necess\u00e1rio, em pol\u00edticas de dispositivos altamente flex\u00edveis que determinam quando os limites de alerta s\u00e3o atingidos e as etapas subsequentes que devem ser tomadas. O NinjaOne fornece acesso a centenas de scripts que podem ser \u00fateis e a capacidade de criar seus pr\u00f3prios scripts em praticamente qualquer linguagem de script.<\/p>\n<p>O NinjaOne pode ajud\u00e1-lo a <a href=\"https:\/\/www.ninjaone.com\/pt-br\/endpoint-management\/\">monitorar e gerenciar todos os seus endpoints de TI<\/a> em escala a partir de um \u00fanico painel. Com pol\u00edticas e scripts, voc\u00ea pode automatizar praticamente qualquer tarefa de rotina, desde a instala\u00e7\u00e3o de patches de software at\u00e9 a gera\u00e7\u00e3o de relat\u00f3rios, economizando tempo e gerenciando proativamente os problemas antes que eles se tornem problemas.<\/p>\n","protected":false},"author":35,"featured_media":140359,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_lmt_disableupdate":"no","_lmt_disable":""},"operating_system":[4212],"use_cases":[12456],"class_list":["post-804773","script_hub","type-script_hub","status-publish","has-post-thumbnail","hentry","script_hub_category-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/script_hub\/804773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/comments?post=804773"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/media\/140359"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/media?parent=804773"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/operating_system?post=804773"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/pt-br\/wp-json\/wp\/v2\/use_cases?post=804773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}