Windows server 2003 and Windows XP – How to delete files that are blocked by system or processes

Posted by aidas | Posted in Tools, Windows 2003, Windows XP | Posted on 17-06-2009

0

This quick post will show you how to delete files that are being used by system or running processes.

When you try to delete that kind of files on your Windows machine  you get error:

“Access denied”

or

“File/Folder is being used by applications. Please close the application and then try again”

To delete these “corrupted” files you can use  tool named “Unlocker”. It removes lock from file or folder and you can delete it afterwards.

You can download this tool from here .

Cheers!

Windows server 2003 and Windows XP – How to add printer via script

Posted by aidas | Posted in Scripting, Windows 2003, Windows XP | Posted on 16-06-2009

0

In this post i`ll show one of many ways how to connect your users to shared printer. For that open notepad in Windows server 2003 or Windows XP and type:

REM Add Printers
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\sever\printername1
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\sever\printername2

REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\server\printername2
EXIT

For example i have two shared printers on server named “Fileserver” and these printers are shared as “HPLJ1″ and “HPLJ2″. Also i want “HPLJ1″ as default printer for all users. I will type :

REM Add Printers
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Fileserver\HPLJ1
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Fileserver\HPLH2

REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\Fileserver\HPLJ1
EXIT

Save this file as Addprinter.bat and place it as login script via group policy or you can deploy it to your users in any other way you prefer.

Windows XP – How to redirect all printer ports to terminal server

Posted by Erica | Posted in Terminal services, Windows 2003, Windows XP | Posted on 15-06-2009

0

Sometimes you can encounter situation when you try to connect to Terminal server using RDP with Printer redirection enabled but printer doesn`t show in Terminal session. This problem occurs with printer port names that do not begin with COM, USB or LPT.  How to deal with that? In that case you must add registry setting to redirect all printer ports. To do that open registry on your Windows XP machine and navigate to:

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR

On the Edit menu select New and then DWORD value. Type FilterQueueType and press Enter. On new value right click and select modify. Type FFFFFFFF and click OK. This will enable all ports to be redirected.

That all!

Windows tips – How to hide file in Alternate Data Streams (ADS)

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 14-06-2009

0

This post will show you how to hide file in Alternate Data Streams.

ADS (Alternate Data Streams) is a “feature” of the NTFS that permit files to be completely hidden from the system.

Lets say we have  secret.txt file that contains confidential info and it is placed in C:\Test folder . We want to hide secret.txt file from unwanted eyes and hidden file attribute is too simple solution for us.

secret

In this case we can use ADS feature to completely hide it from system. Lets fork secret.txt file to C:\Windows\Zapotec.bmp file which is one of desktop backgrounds installed by default on Windows XP.

To fork it press “Start” > “Run”, type cmd and press “OK”.

In command line window type:

type c:\test\secret.txt > c:\Windows\Zapotec.bmp:secret.txt

ads-hide

Press “Enter”.

Ok, you forked secret.txt file to zapotec.bmp.

Now go to c:\Test folder and delete secret.txt file. Yep, you got it right, delete it.

After that you can start windows Search and try to locate secret.txt file. No traces… it is gone…

And now the Magic moment!

Open command line and type:

notepad c:\Windows\Zapotec.bmp:secret.txt

and press “Enter”

ads-show

Secret info file is there and it is hidden pretty well this time.

Well done!

Windows RUN commands – How to start Administrative Tools

Posted by aidas | Posted in Windows 2003, Windows Vista, Windows XP | Posted on 28-05-2009

0

This post will show you how to start “Administrative Tools” via Run on your Windows computer. To start Administrative Tools press “Start” > “Run” and type:

control admintools

administrative-tools

Press “OK” and you are Done!


Windows XP and Windows server 2003 – How to remove invalid boot path

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 28-05-2009

0

This post will show you how to remove invalid boot paths from boot.ini file on your Windows machine.

To do it press “Start” > “Run” and type:

msconfig

Press “OK”.

In “System Configuration Utility” window press “Check All Boot Paths” button.

boot_paths

Computer will check all boot paths and will remove invalid ones.

After check restart your computers and you are Done!

Windows RUN commands – How to start Certificate Manager

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 27-05-2009

0

This post will show you how to start “Certificate Manager” via Run on your Windows computer. To start Certificate Manager press “Start” > “Run” and type:

certmgr.msc

certificate_manager

Press “OK” and you are Done!

Windows XP and Windows server 2003 – How to reinstall Internet Explorer

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 26-05-2009

0

This post will show you how to reinstall Internet Explorer on your Windows computer.  Note that you will need Windows install CD or Windows install files on your disk to reinstall internet explorer.

To perform reinstal press “Start” > “Run” and type:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\ie.inf

explorer_reinstall

Press “OK” and browse to Windows install CD or files on your disk to start reinstall.

Windows RUN commands – How to start Event Viewer

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 26-05-2009

0

This post will show you how to start “Event Viewer” via Run on your Windows computer. To start Event Viewer press “Start” > “Run” and type:

eventvwr.msc

windows event viewer

Press “OK” and you are Done!

Windows XP – How to block unwanted web sites on your Windows computer

Posted by aidas | Posted in Windows 2003, Windows XP | Posted on 25-05-2009

0

This post will show you how to block unwanted web sites by editing hosts file on your Windows computer. Lets say you want that all computer users were unable to browse web site named www.badsite.com .

To block web site click “Start” > “Run” and type:

notepad c:\windows\system32\drivers\etc\hosts

Note that there is space between notepad and c:\windows…

In “hosts” file select empty row and type:

127.0.0.1 www.badsite.com

windows server hosts

On “hosts” file menu click “File” and and select “Save” to save changes you just made.

After saving changes you can close file and you are done!

Windows XP and Windows server 2003 – How to disable Windows auto restart on system failure

Posted by aidas | Posted in Windows 2003, Windows Vista, Windows XP | Posted on 25-05-2009

0

This post will show you how to disable automatic restart when system error occurs on your Windows computer. If this option is enabled you are unable to view Blue Screen of Death (BSOD) output and to check system error code for further investigation.

To disable auto restart right click mouse on “My Computer” icon and choose “Properties”. In “System properties” window select “Advanced” tab.

windows system

In “Advanced” tab click “Settings” under “Startup and Recovery” section. In “Startup and Recovery” window uncheck “Automatically restart” option.

windows system 2

Press “OK” and You are done!

Windows server 2003 and Windows XP – How to reset winsock catalog

Posted by aidas | Posted in Command line, Networking, Windows 2003, Windows XP | Posted on 19-05-2009

0

This post will show you how to clear up Winsock Catalog on your Windows server 2003 or Windows XP machine. To do it open command line and type:

netsh winsock reset

Restart your computer after this.

Note that you might need to run IP reset afterwards to completely rebuild your IP stack.

? Winsock catalog – is the interface between your applications and internet. Many spyware reside there when they infect your OS.