How to comment out code in Powershell, we have to comment the text inside the script to descript the code so that others understand the function of the code, here is the simple symbol we use in Powershell to comment out. If you are a beginner to Powershell scripting and looking for how to comment out the code? in most shell scripting languages the … [Read more...] about How to comment out code in Powershell
Powershell
Powershell Get CPU and Memory Utilization Script
We monitor our computer performance daily like capturing CPU and Memory Utilization on Remote Computers, there is a performance issue on multiple remote computers the script in this article is really useful to troubleshoot the issue. Windows administrators often run into performance issues on desktops and servers machines, sometimes it is very … [Read more...] about Powershell Get CPU and Memory Utilization Script
Powershell Add-Content
Powershell Add-Content command adds the data to a file, this article explains how you can use it in your scripting code and add content to the file. The PowerShell cmdlet add-content adds the content to the specified file, you can get the output of another file and add to it as input to another file, please below examples. Syntax add-content … [Read more...] about Powershell Add-Content
Powershell Restart Multiple Computers
When there is a need to restart a remote computer then there are several ways one can restart, however, this article explains an easy method using a single PowerShell command to restart multiple remote computers, let's get started. Restart-Computer This PowerShell command reboots the local computer or remote computers gracefully, it has got some … [Read more...] about Powershell Restart Multiple Computers
How to Zip a file in Powershell
How to Zip files in Powershell, this article explains how one can zip the Powershell output, files, or logs and make them as archive somewhere for future use. When there are large files to zip or an application is generating log files every day or you want to archive Powershell reports that are not needed, in another case you want to compress the … [Read more...] about How to Zip a file in Powershell
Powershell get SSL certificate | Windows 10 | Server 2016 | 2012
This article explains how we can get an SSL certificate on remote windows computers or a server operating system using Powershell script, here are the simple steps one can follow and achieve the same. Windows administrators deal with many servers and desktop machines every day as part of their work and they work on SSL certificates, they query, … [Read more...] about Powershell get SSL certificate | Windows 10 | Server 2016 | 2012