All Entries in the "Windows" Category

To set Windows server passive port range you should use adsutil.vbs which is one of the administration scripts located usually at: ï»¿ï»¿ï»¿C:>\Inetpub\AdminScripts . I am saying usually as the Windows server installation could be on a different drive.

The issue with the Windows passive port range is that the default firewall (firewall.cpl) does not have option or field to open port range, and often when you setup FTP on your Windows server an try to connect with FTP client it may appear with error similar to this one bellow.

As you can see from the log, you can connect to the server using FTP, but when you try to do something like listing directory content or copying files it times our. The reason is because the FTP client is trying to connect trough any opened port above 1024 one. (The usual default range is a big one. For example between 40000 and 45000)

You can add several ports manually, but if you have many FTP users, their FTP clients may exceed the port range number and will face the same issue as above. Try using this for testing purposes only (to make sure the issue is because passive port range is not set).

To set passive FTP port range on a Windows server the command should be executed via the command line. So go to Start -> Run… type cmd and then:

This will be basic tutorial about how to set scheduled task in Windows 2008.

First go to the Administrative Tools – Task Schedule.

Once opened, you will see the Task Scheduler window. If it is not something special, you can just create basic task on your Windows 2008. Just click on the link located at right filed under actions.

The very first step will be to set scheduled task description :

The next one will be to choose scheduled task trigger :

Windows 2008 Task Scheduler has the following trigger options you can choose from: Daily, Weekly, Monthly, One time, When the computer starts, When I log on, When a specific event is logged. All of them are self-explainable so pick the one you need. In my case the scheduled task will be on daily basis.

Choose the time-frame you want the task to be executed, and then click Next for the scheduled task action:

I will start simple script which will restart IIS using “iisreset” command.Use the browse button to locate the application or the script you want to be scheduled.

The next will be to finish the task setup.

Here you will see the task summary, and will add the task to the Windows 2008 task schedule .

Windows is often quite slow in unloading DLLs. Even when programs using given DLLs quit, Windows can ‘carry’ around the DLLs for quite a while until it unloads them. Well we will show you how to force Windows 7 to unload them and to delete the cached ones.
Like so many ‘hacks’ this one is done by modifying the registry.

Open the Start menu, enter regedit in the Start menu search box and press Enter:

The Win+Key shortcut keys encompass a lot of functionality for those who prefer utilizing the keyboard as much as possible. If you are not sure what we are talking about let’s point out a few of the most used shortcut keys:

Win+D for showing the Desktop

Win+E to launch the Explorer

Win+X for Windows Mobility Center

Win+L for locking your workstation

Win+<number> for launching and switching between applications in your taskbar

Win+P for switching between presentation modes
and many, many more. However it gets extremely annoying when you press one of these by accident (especially until you realize you have pressed it). And, for those who don’t use the keyboard that much, these shortcuts don’t provide much functionality. Not to mention that if you want to use one of these shortcut combinations in another application, things get rather messy. So in this short tutorial we will show you a rather quick and simple way to disable the Win+Key combinations in Windows 7 using a little registry tweak.

Note: This trick will not disable the Win+Arrow shortcuts.

First we will open the Registry Editor. Open the Start menu, enter regedit in the Start menu search box, wait for the regedit.exe result and press Enter:

Windows 7 introduced a new taskbar and a really cool feature of the taskbar called Aero Peek. Showing live thumbnails for every window in the given group, it quickly became a favourite feature of many people. However, there is one little feature that people quickly began hating. When you hover over one of the buttons you get a preview of all the open windows:

Naturally, one would expect a click on a button to open the last active window of that group. Well’¦ nope. Clicking on a button opens the preview of all windows. And this is really annoying when you have 10 instances of an application and actively use only one.
One way to open the last active window is to hold down the Ctrl key while clicking on a button. However why not make this behaviour the default one? This is easily achieved with a simple registry tweak.

First we will open the Registry Editor. Open the Start menu, enter regedit in the Start menu search box, wait for the regedit.exe result and press Enter:

The registry editor will open:

Using the left pane, navigate to “HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced”:

Right-click on an empty space in the left pane and select New > DWORD (32-bit) Value. Name the new value LastActiveClick:

Double-click on the value and a new window will open. In the textbox Value data enter the value 1:

Press OK and close the Registry Editor. Log off and on, for the changes to take effect. To revert to the default behaviour, simply delete the LastActiveClick value or set it to 0.

This tutorial will help you to remove the Thumbs.db from Windows machine.
I am a Linux guy and usually do not have problems with this file, but Windows OS is well spread all over the world and often when I am giving my iPod to a friend to upload some music or video, as well as the media files often I have Thumbs.db file uploaded.
Sometimes this is causing error on my player or interrupts my play list, so if your case is the same and you want it removed – I will show you how.

What is the Thumbs.db purpose? – When you have pictures, images or movies, Windows tries to recognizes them and then creates so-called image thumbnails. After their creation Windows generates this file Thumbs.db, which contains information about photos and their little friends, so when you open the same media folder next time to load the previews faster.

However, if you do not like Thumbs.db, you can delete all these files without worrying about your operating system.

Often you may need some kind of redirection for your URL’s to a particular folder where you are going to use files and applications that differ from your main domain.
If fact this is often used in the search engine optimization for one or another purpose, or you can use it to cheat hosting companies if they are too expensive or with good quality, but small amount of present services.
No matter what are your intentions, in thit tutorial I will talk about redirecting domain alias to a particular folder under Windows.

Basically this is ASP script that checks what is the domain (Web server request) that the request is coming from and then using ‘if – then’ sequence it will be forwarded to a particular folder.

Let’s say you have ‘domain.com’ as your main domain and then you have ‘domainalias.com’ pointed to ‘domain.com’ as domain alias. (Referral tutorial is: Create domain alias in IIS on Windows server ).
Then you want this domain alias to open a different folder than the main domain and your visitors to remain with the filing that this is totally separated domain, as in the same time your are going to use the same hosing, the same server, and the same IP address.

Well, just check the next code (that I am using on one of my servers):

In this tutorial we will set folder permissions in Windows server. This will help FTP Virtual directory to be accessed.

Go inside the folder locate a blank spot and click properties. In our case this will be:
C:\\Inetpub\\wwwroot\\mywebsite.com as on the picture below which is the root folder for FTP account that we created in Setup FTP for Web site in IIS on Windows-server.

Windows user can be created in the local management console under System Tools section, where Local Users and Groups is located. Expand it and click on Users. Then right-click somewhere on the filed and choose New User.