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.

Install Notepad++

Download and install the Notepad++ installer from
Run the installer using the default settings for everything.
Open Notepad++

Configure Notepad++ to run a python script

  1. Open notepad ++
  2. Click run > run or press F5
  3. In the “program to run” dialog box press the three dots (…) and navigate to C:\Python27\Lib\idlelib\ (or change C: to your python installation drive)
  4. Than add “$(FULL_CURRENT_PATH)” after the py so that the line will look like this:

    C:\Python27\Lib\idlelib\ “$(FULL_CURRENT_PATH)”

  5. Click ‘save and give the shortcut a name like ‘python IDLE’
  6. You can also select a shortcut, for example”: Alt+shift+p
    notepad ++ python
  7. Click OK
  8. Click run
  9. A new notepad window will open. (you can minimize the black command line window)
  10. hit F5 and the python shell will now open
  11. In the notepad window, write your code Save as ‘’
  12. hit F5
  13. Now, every time you test your modified code, you will be prompted to save the file. When hit F5 the code will run on the python command line shell, it is a very convenient way to code and simultaneously see your code run.

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” »

Create SCCM Distribution Point with Powershell

Hi Sysadmins

You need to create multiple SCCM 2012 Distribution points fast and accurate!

Maybe you decided on upgrading your  environment to SCCM 2012 or your company purchased another organisation. In any case,

The reasonable way will be to use a script, and not use the GUI to do the task over and over.

The preferred scripting environment is Powershell, since it already has many Configuration Manager commandlets that can be helpful.

You do have to work with at least SCCM 2012 sp1 version for the following script to work.

The below Powershell script will read the names of the Distribution points servers from a file. See example for the file Here 

Continue reading “Create SCCM Distribution Point with Powershell” »

SCCM 2012 clients’ log files not created

Hi SysAdmins

In this post I am writing about a minor problem that occurs while installing a SCCM 2012 client, and how to solve it.

The Problem

You install a SCCM client on a machine.

After the installation finishes, you notice that not all logs are populated in the clients’ machine C:\windows\CCM\Logs directory.

If you check ClientIDManagerStartup.log  file, you notice the following error message:

RegTask: Failed to get certificate. Error: 0x80004005

Continue reading “SCCM 2012 clients’ log files not created” »

How to install IIS features on SCCM 2012 Distribution Point with command line

Hi SysAdmins

Did you ever wonder how SCCM 2012 install a DP remotely from the CM console?

DISM.exe (Deployment Image Servicing and Management tool) is a command line tool that you can use to enable or disable Windows features.

In this case we use it to install all the necessary IIS features for a SCCM 2012 DP.

Command line to install IIS on DPs:

Continue reading “How to install IIS features on SCCM 2012 Distribution Point with command line” »

The case of the nonresponsive SCCM 2012 Management Point

Hi SysAdmins

In this post I am writing about a strange case that happened in my SCCM 2012 sp1 environment. I’m not sure if its related, but it all happened after installing CU3.

The case was resolved after an intervention of Microsoft Senior Support Engineer. Maybe this will help someone since there is no solution for this on the web.

It all began when my SCCM environment just stopped working…

The Problem:

1. All Packages deployment tasks are grayed out, and stuck on Unknown status.

2. You cannot distribute Microsoft security updates to clients.

3. Might be this as well – in smsts.log you see this error: Task Sequence fails with error: There is no task sequences available to this computer.

4. Check your Management Point server under <install Drive>\Program files\SMS_CCM\Logs\MP_Policy.log for the following lines:

Continue reading “The case of the nonresponsive SCCM 2012 Management Point” »

A Place For IT System Administrators