Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Tuesday, November 29, 2016

Configuring an Executable to Run as a Service on Windows Server?


Windows NT Resource Kit provides below two utilities that allow you to run an executable as a service

Instrsrv.exe
Srvany.exe
 

More details regarding the same can be found at the below links.


Sunday, August 14, 2011

HOWTO: Print to a USB Printer from DOS in Windows XP

HOWTO: Print to a USB Printer from DOS in Windows XP

In order to print from DOS in an offline environment like the stores, you will need to do a couple
of things.

1) Install the Microsoft Loopback Adapter
         a) In Control Panel, double click on Add Hardware.
         b) Click Next
         c) When the scan finishes, select "Yes, I have already connected the hardware"
         d) Click Next
         e) Scroll to the bottom of the list and select "Add a new hardware device"
             Click Next
         f) Select "Install the hardware that I manually select from a list (Advanced)"
         g) Click Next
         h) Select "Network Adapters"
         i) Click Next
         j) Select "Microsoft" under the Manufacturer list.
         k) Select "Microsoft Loopback Adapter" in the Network Adapter list.
         l) Click Next
         m) Click Next
         n) Click Finish

2) Configure the Adapter
         a) The loopback adapter is a virtual network adapter and can be configured the same as a
              regular network card.
         b) Set the adapter to have a static IP address such as 192.168.1.1/ 255.255.255.0
         (if this ip already assigned to some other device in your network,then assign a diffrent one) 

3) Share the printer.
         a) I recommend you use a share name that you will remember. I used “Printer” in the new
             machines that are already deployed.

4) Capture the printer port.
         a) NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES





Monday, March 8, 2010

How to generate self-signed Secure Sockets Layer (SSL) certificate for Internet Information Services (IIS) 6.0?

SelfSSL version 1.0 is a command-line executable tool that you can use to generate and install a self-signed Secure Sockets Layer (SSL) certificate for Internet Information Services (IIS) 6.0. Because SelfSSL generates a self-signed certificate that does not originate from a commonly trusted source, the tool's usefulness is limited to two specific scenarios:

Download IIS 6.0 Resource Kit Tools from link

http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en

And use

SelfSSL version 1.0

SelfSSL (SelfSSL.exe) can help you generate and install a self-signed SSL certificate. Because the SelfSSL tool generates a self-signed certificate that does not originate from a trusted source, use the SelfSSL tool only in the following scenarios:
• When you have to create a security-enhanced private channel between your server and a limited, known group of users
• When you have to troubleshoot third-party certificate problem

You can find this exe in start->All Programs -> IIS Resources-> SelfSSL-> SelfSSL.exe

More information regarding "IIS 6.0 Resource Kit Tools " can be found at the below link
http://support.microsoft.com/kb/840671

Friday, February 19, 2010

How to delete a custom event log source?

Go to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog]
and delete your custom log folder