All posts by T@mir.H

How to Ping a List of Computers

Many times It happens that we need to check if a list of computers is active, so how do you ping multiple computers at once?

Use this Powershell script to test connectivity to your list of computers. it will produce two lists of Bad (unresponsive) and Good(Responsive) computers.

You need to change “D:\scripts\list.txt” to the path where your saved your computers list file(.txt).

Also, you can un-comment  #Write-Host $name… to view the list of computers with different colors

$Mylist = Get-Content D:\scripts\list.txt #this is where you put your list of computers
[System.Collections.ArrayList]$GoodArrayList = @()
[System.Collections.ArrayList]$BadArrayList = @()

foreach ($name in $Mylist){
  if (Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue){
    #Write-Host $name -ForegroundColor Cyan
    #Write-Host $name "down" -ForegroundColor Red
Write-Host -ForegroundColor Cyan "Good Computers :)"
Write-Host -ForegroundColor Red "Bad Computers :("

How to run python script on notepad++

How to  Configure Notepad++ to run a python script via python IDLE

If you are learning python and want to use notepad++ as a free as well as simple and easy to use editor, follow these simple steps:

Install python (2.7.x)

First thing: Download the python 2.7.x (current is 2.7.13) windows installer from using the default settings. It should install python in the folder: C:\Python27. You can use a different version of python, just substitute out the version number wherever you see 27. Continue reading How to run python script on notepad++

0x8007052e error in task scheduler

0x8007052e error in task scheduler

Symptom: You get 0x8007052e error when trying to run scheduled task from task scheduler.

There can be several causes for this including authentication problem like bad password.

But I did not easily find documented online records for this error being caused by a group policy, so I think this post might help you – system admins.

Continue reading 0x8007052e error in task scheduler

Installing SCOM 2012 agent on a workgroup or DMZ machine using Certificate

How to Install SCOM Agent on an Un-trusted machine

In order for SCOM to communicate with an un-trusted machine like in a WorkGroup / DMZ / different forest, you will have to import a certificate so that SCOM will trust the foreign machine and will be able to communicate with it. The most common example is a SCOM Gateway.
This topic is a bit complicated but if you use a guide like this you should be OK.

I added the files that you will need as well so you dont have to copy-paste it. Additional files: REQconfig.inf certreq

First thing you will need is an inf file that contains the request.

Continue reading Installing SCOM 2012 agent on a workgroup or DMZ machine using Certificate

Memory leak

Memory leak – when the Available MegaBytes (memory\% available Mbytes) for the system has exceeded the threshold, system performance may be significantly diminish, this results in low OS and applications performance. End users will usually complain about slow computer performance and you probably get a help-desk call like: ‘My computer is running slow’, or server is running slow.

Memory leaks can be caused by:

  • Too many applications running simultaneously on the computer.
  • An application may be leaking memory over time.

To view the history for the memory\% available Mbytes, start memory available Mbytes in performance monitor or event task manager\performance.

Continue reading Memory leak

Public Desktop Icons are Deleted After Logon in Windows 7

I think I that a suitable name for  this post might be ‘The case of the missing desktop shortcuts’.  I spent nearly an hour or more resolving the so it will be the right thing to share it with you.

The Problem

In Windows 7,  Users can’t view objects and icons published on “C:\Users\Public\Desktop” .

Users cannot read data from “C:\Users\Public\Desktop”.

You suspect that a GPO – Group policy object, prohibit users from viewing icons on “C:\Users\Public\Desktop” folder.

Continue reading Public Desktop Icons are Deleted After Logon in Windows 7

Windows update fails with Error 0x80072efd

Windows update is one of the more important features of SCCM. Keeping all servers and workstations in your environment up to date is most important.

I met the following error while SCCM 2012 was trying to update one of my servers.

The problem

You try to push Windows security updates to a remote machine, but Windows update fails.

Continue reading Windows update fails with Error 0x80072efd