Generally, windows administrators work on many Active Directory (AD) task, like adding new users to a group or multiple AD groups or removing the user from AD groups as part of their support work one can automate the adding user accounts to AD group then it eases the process, here are the simple steps this article explains how to add a single or … [Read more...] about Powershell add multiple users to AD group in Windows Server 2016
Scripts
Powershell check port is open or not in Windows 10 Server 2016 and 2012
This article explains how Powershell script to check a port is open or not on any windows computers or server operating system to make sure the port network traffic is flowing or application to work as expected. If you are working as a system admin for a large IT enterprise you may come across to test a port is open or not on a server or … [Read more...] about Powershell check port is open or not in Windows 10 Server 2016 and 2012
Powershell remove empty spaces from a text file
Powershell remove empty spaces from a text file to make it more clear, it avoids unwanted results with Powershell execution, here are the simple steps this article explains. Windows administrators as part of their routine daily tasks they deal with many servers and also perform the import and export operations with text files, when we are using a … [Read more...] about Powershell remove empty spaces from a text file
Powershell remove empty lines from text file
Powershell removes empty lines from a text file if there are empty lines in a file that can cause unwanted results when you execute a script, here is the simple Powershell code to clear the empty lines in PowerShell. Windows administrators deal with many servers every day and also perform the import and export operations with text files, when you … [Read more...] about Powershell remove empty lines from text file
PowerShell Delete Files Older than 15 days or more
PowerShell Delete Files Older than 15 days or more, when there is a need to delete file older than 7 days or 15 days on the multiple remote computers here are the scripts that do the same thing.In my example, I want to delete files under C:\apps\logs $oldfiles = Get-childitem -path "C:\apps\logs" -directory | where-object {$_.LastwriteTime -lt … [Read more...] about PowerShell Delete Files Older than 15 days or more
Powershell C drive Space | Multiple Computer
Checking C drive space is really important for windows computers, this article explains to you how to Check C Drive Space on multiple remote computers, here is the simple code that one can use find the C drive space. When you want to check the C drive system drive utilization on the local computer then one can simply open my computer and can find … [Read more...] about Powershell C drive Space | Multiple Computer