How to increase the number of workstations a user can join to a domain

expert b

The number of workstations a user can join to a domain is configured by the ms-DS-MachineAccountQuota attribute. Using the Active Directory Service Interfaces Editors (ADSI Edit) you can manage Active Directory objects and attributes.

To run ADSI Edit on Windows Server 2003 or Windows XP machines, you’ll need to install Windows Server 2003 Support Tools, which you’ll find on the Windows Server 2003 CD or theMicrosoft Download Center. If you’re running Windows Server 2008, ADSI Edit is installed as part of the Active Directory Domain Services (AD DS) role, which makes the server a domain controller.

Once you have ADSI Edit installed, you can change the ms-DS-MachineAccountQuota attribute with the following steps:

Click Start | Run | and enter adsiedit.msc.

  1. Expand the Domain node and locate the object that begins with “DC=” and contains the domain name of the domain your interested in.
  2. Right on the “DC=” object and click Properties.
  3. Locate the ms-DS-MachineAccountQuota attribute on the Attribute Editor tab and click Edit.
  4. On the Integer Attribute Editor dialog, enter the number of workstations you want users to be able to add. You can enter 0 to prevent users from joining any workstations to the domain or clear the value to remove the limit.
  5. Once you’ve entered the appropriate value, click OK to close the Integer Attribute Editor dialog box and OK again to close the Properties box.
  6. Close ADSI Edit.

Enable the Administrator Account on Windows 7 or Vista

How to enable the Administrator Account on Windows 7 or Vista from User login if you know Administrator Password

Enable Built-in Administrator Account

First you’ll need to open a command prompt in administrator mode by right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box)

image

Now type the following command:

net user administrator /active:yes

You should see a message that the command completed successfully. Log out, and you’ll now see the Administrator account as a choice.

Log off the system and login again

Done.

How to map USB port to LPT1 Port

expertbox

Some of the Application Software use  LPT1 port for printing the output like Receipts or reports.

But the Latest PCs not coming with the LPT1 / Parallel Port inbuilt.

So how to solve this?

We can use the USB Printer as LPT 1 Printer

Step1: open command prompt by typing CMD on Run

Step 2: Type the command 

Net Use LPT1: \\YourComputerName\USBPrinterShareName /PERSISTENT:YES

Dont forget to type PERSISTENT:yes , otherwise the setting will change on next boot.

Another method is

Assign the LPT1 port to your USB port
1)
 Close all programs
2) Click on the “Windows” – “Start” button
3) Choose “Run”
4) Type in “CMD” and press enter
Note: You should now be at what’s called the “DOS” prompt,
which is a black and white screen.
Note: You will need to know the name of your USB port. Follow steps 1 through 7 above “In Windows” to get the USB port name. Your USB port name will be similiar to USB01PORT.  Step 5 below uses the example USB01PORT name. You will need to substitute your actual USB port name.
5) Type in: NET USE USB01PORT LPT1
6) Press the enter key.
7) Close the “CMD” window.
8) Try printing again.

php configuration error – Call to undefined function curl_init()

How to avoid Curl error in IIS Webserver

Some times the php configuration errors  lead us to a confusion.

What is Curl?

A command line tool for getting or sending files using URL syntax. The Curl is using in php as a extension . Without enabling this extension we cannot send file like xml over URL. Thats get or send data over URL address.

The php.ini file holds all the information about the php extension, by default the curl extension will be in a disabled state  in php.ini file like this

;extension=php_curl.dll

to enable the curl extension the semi column must be removed

like this  extension=php_curl.dll

How to avoid Curl configuration errors

before that, we have to look , how to identify the curl is enabled on your IIS or not.

Step1: create a new text file with the following content

<?php 

phpinfo();

?>

Step 2:Save it as test.php

Step 3: Copy this file to your IIS Virtual Directory folder

Step 4: Right click from IIS and Browse

Now you can see the php configuration details on your browser window like this

curl_phpinfo

step 5: Search for “Curl” by pressing Ctrl+F in the browser

If the “Curl_support  enabled”  line obtained , then you can confirm that curl is enabled on your IIS.

What is the exact reasons for curl errors like Call to undefined function curl_init() and How to solve?

Reason 1 :The exact reason behind this is Operating system loads invalid php.ini  file.

To avoid that you must copy the php.ini file only to Windows , php Folder ( WINNT in 2000 server)

Reason 2: The Dll file that supports curl extension

To avoid this error you must copy the  libeay32dll , ssleay32.dll which supports the curl extension , to System32, php  folder only

Remove all other php.ini , libeay32dll , ssleay32.dll from the computer .

you done.