Category Archives: SystemIT

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 http://www.python.org/download/ 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 http://notepad-plus-plus.org/download
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\idle.py (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\idle.py “$(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 ‘example.py’
  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” »

Enable Remote Desktop remotely by using remote registry

Hi SysAdmins

I bet the following scenario happened to you:

You install a server, configure it, install the required programs, set its IP address etc..

After half a day of work (since you didn’t create an image) you send the server to its remote location.

When the server arrives to its site and the local technician plugs it in,

you discover that you forgot a small but very important V: Allow remote connection to this computer.

Continue reading “Enable Remote Desktop remotely by using remote registry” »

Workstation Upgrade Consideration Guide

Hi SysAdmin

This guide will help you decide if adding more RAM, or upgrade the CPU will solve slow performance problems.

You can find out if memory or CPU upgrade is needed by configuring Performance Monitor to track memory and CPU usage.

You can then interpret the results and decide whether upgrade will improve the performance.

Use this guide before adding more RAM or upgrading CPU to a system with slow performance.

Continue reading “Workstation Upgrade Consideration Guide” »

SCCM 2012 SP1 Installation Preparation

Hi SysAdmins

In this post I would like to go through the prerequisites and actions you need to do before you go on and install SCCM 2012 SP1.

If you want, you can jump to the installation procedure of SCCM 2012 SP1, on my earlier post: How to Install SCCM 2012 sp1.

The following are needed before starting the SCCM 2012 installation:

Continue reading “SCCM 2012 SP1 Installation Preparation” »

Create a Shortcut to Windows Explorer Objects Using CLSID

Hi SysAdmins

CLSID stands for Windows Class Identifiers, which are  long number that represents a unique id for an application component.

CLSIDs can be used to target application component without knowing their name.

If we want to create a shortcut to a location in a computer without stating its name, we can use CLSIDs.

Lets say that you want to set the windows explorer start-up folder in windows 7 to open up My Computer.

Continue reading “Create a Shortcut to Windows Explorer Objects Using CLSID” »

How to find the system uptime in Windows XP/2003/Vista/2008

Hi SysAdmins

It is very useful to know how many days are your system up and online. Especialy in windows OS.

There are several ways to find the system uptime in Windows XP and above:

Using Systeminfo command:

This command-line utility shows the time that the system was booted and its running time.

Continue reading “How to find the system uptime in Windows XP/2003/Vista/2008” »

Display computer name under My computer icon

Hi

A very useful trick that I always use in my servers is displaying the computer name under ‘My Computer’ or ‘Computer’ in Windows 7/2008R2

To do this you need to change a certain registry key.

In xp/2003 operation systems the process is simple as described below.

In 2008/Win7 though, you will first have to logon as administrator and take ownership on the hive where the registry settings needs to be modified.

So how do we do this?

Continue reading “Display computer name under My computer icon” »