PowerShell: Alert me when Disk Space is running low on my Windows Servers (E-Mail Notification)

With this PowerShell script you can get an email notification when your disk space is running low on your Windows Servers. PowerShell Script: function getDiskFreeSpace { Get-WmiObject Win32_Volume -computername $args -filter “drivetype = 3” | Select-Object _SERVER, Name, @{Name=”Size(GB)”;Expression={“{0:N1}” -f($.Capacity/1gb)}},@{Name=”FreeSpace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}},@{Name=”FreeSpacePerCent”;Expression={“{0:P0}” -f($_.freespace/$_.capacity)}} | Where-Object -FilterScript {$_.FreeSpacePerCent -lt 95} | Sort-Object -property “FreeSpacePerCent” | Format-Table } ForEach($s in Get-Content c:\Temp\serverlist.txt) { […]

Read more

How to Import a Group Policy Object’s Settings into Another Group Policy Object

You may sometimes find it necessary to copy Group Policy Objects (GPOs) from one Active Directory domain to another. This can be useful when you want to apply the same policy settings to groups of users or computers in different domains within a multi-domain forest, or when you are performing a migration from one domain to another. GPOs can be backed […]

Read more

How to Disable JAVA Update on Windows Server

Disabling the Java update notifications is actually pretty easy. There’s a registry setting in HKEY_LOCAL_MACHINE that will allow you to completely disable both update notifications and the update functionality. The full path of the key is HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy. The registry entry is named EnableJavaUpdate and is a DWORD value that defaults to 1 for the update functionality to be enabled. Setting the value to 0 disables updates.   Here’s […]

Read more

Automating WSUS with PowerShell

The scripts explained in this post allow you to automate several Windows Server Update Services (WSUS) tasks such as synchronization, approvals, cleanups, and scheduled update installations. Syncing WSUS with PowerShell and Task Scheduler ^ In this article, I assume you are familiar with WSUS administration. Right after installing WSUS, you have to configure periodic synchronization. Unfortunately, as you can see in […]

Read more

Configuring Password Replication Policy for Read Only Domain Controllers

What is Password Replication Policy? Password Replication Policy (PRP) determines which users’ credentials can be cached on a specific RODC. If PRP allows an RODC to cache a user’s credentials, authentication and service ticket activities of that user can be processed by the RODC. If a user’s credentials cannot be cached on an RODC, authentication and service ticket activities are […]

Read more

Junction – Free up disk space using Symbolic links

I came across a brilliant solution that will blow your mind away and save all you System Admins out there having similar issue. The solution that I am referring to is an application called Junction. Directory symbolic links are known as NTFS junctions in Windows. Many of you must be aware that Microsoft introduced a concept of directory symbolic links […]

Read more

Cleaning Up WinSXS Folder on Windows Server 2008 R2

I finally found some good information for cleaning up the WinSXS folder on new instances of Windows. I found the following site extremely helpful: http://blogs.technet.com/b/askpfeplat/archive/2014/05/13/how-to-clean-up-the-winsxs-directory-and-free-up-disk-space-on-windows-server-2008-r2-with-new-update.aspx. Consequently, I was able to get 7GB of data cleaned up from the WinSXS folder on the first Server 2008R2 machine I followed this process on. Here are the basic steps: 1. Make sure the server […]

Read more
1 2 3 8