2019年2月1日 星期五

check disk space automation

1. Netwrix Disk Space Monitor Freeware Edition (Version 1.2)

2. https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65

Disk Space Report - Reports only disks that are below a threshold - HTML output
Download CheckDiskSpace_post.ps1

Run in Powershell
https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system

i  had a similar issue and noted that the default cmd on Windows Server 2012, was running the x64 one.

For Windows 7, Windows 8, Windows Server 2008 R2 or Windows Server 2012, run the following commands as Administrator:


x64 (64 bit)
Open C:\Windows\system32\cmd.exe
Run the command powershell Set-ExecutionPolicy RemoteSigned

You can check mode using

In CMD: echo %PROCESSOR_ARCHITECTURE%
In Powershell: [Environment]::Is64BitProcess
References:
MSDN - Windows PowerShell execution policies
Windows - 32bit vs 64bit directory explanation

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。