Ping multiple hostnames in single PowerShell script.

Guys, In a day-to-day activity, we have to perform repetitive tasks like check the availability of the server by using ping utility and send the report to management. while doing this activity manually, this is an irritative task, while using automation, it's pretty easy.

Let's create a new PowerShell script and insert the below code. once you save the ps1 file.

create another file with extension .txt and put destination servers which do you want to ping and save that text file with the name "inputcomputers.txt" at the location where you save the ps1 file.

You can run the PowerShell with Task Scheduler or Simply run PS1 to get the ping report in "outputcomputers.log" ๐Ÿ˜€๐Ÿ‘

Add domain user in Local Administrator Group

Today we are going to create a simple script that will help us to add domain users, into the local administrator's group via batch script.
Create a new notepad file and insert the below code into it. Once done save the notepad file with .bat or .cmd extension and place this file on the shared location and execute with psexec or PowerShell PSSession

Finally, your script will be looks like as shown in the above image✌

While running the script remotely we have to remove pause from the script and then execute the script.

TaskBand customization during TS execution PowerShell Solution

Friends, Hope you are doing well. Today we are going to automate the taskband during the imaging process. We will create the taskband package using Powershell and deploy the package via a task sequence. alternatively, you can use the batch file instead of PowerShell.

What first?

First, we have to log in on the reference machine from where we are capturing the taskband files and settings.

Pin the taskbar items whatever you want๐Ÿ˜Š as per your org requirement, not blindly๐Ÿ˜




go to location "%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\"