Command to Disable network card on Windows systems


We can disable network card through netsh command

Make a note of the name of network interface which you need to disable

C:\>netsh interface set interface "Local Area Connection" DISABLED

to enable use below command

C:\>netsh interface set interface "Local Area Connection" ENABLED

"Local Area Connection" is the interface name


***Share your comments about this post***

Enabling Particular Attribute to Replicate in Global Catalog

How to Enable a particular attribute of user object to replicate through Global Catalog to improve the performance 

We have custom application which uses PostalCode attribute of user accounts stored in Active Directory.

Click Start > Administrative Tools > Active Directory Schema.
Expand Active Directory Schema.
Click on Attributes and scroll down to find the PostalCode attribute.
Right click on the PostalCode attribute and select Properties.
Tick the checkbox to "Replicate this attribute to the Global Catalog" then click Apply and OK.



***Share your comments about this post***

Application pool stopping unexpectedly on Windows server 2008 R2

We have IIS role running on Windows server 2008 R2. Installed dotnet1.1 on this server as per application requirement and we have configured a website and made dotnet1.1 as application pool.

When we try to access website, it used to prompt for username and password, when we typein it was not authenticating. After 3 times it is used to say 'no rights to access the website'. After we try it shows 'Service unavailable' message.

When we check in IIS console, application pool will be stopped.

In eventviewer we used to get below errors:
Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          6/12/2013 2:05:25 PM
Event ID:      5011
User:          N/A
Description:
A process serving application pool 'ASP.NET 1.1' suffered a fatal communication error with the Windows Process Activation Service. The process id was '2776'. The data field contains the error number.

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          6/12/2013 2:05:45 PM
Event ID:      5009
User:          N/A
Description:
A process serving application pool 'ASP.NET 1.1' terminated unexpectedly. The process id was '5060'. The process exit code was '0xc0000005'.

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          6/12/2013 2:05:53 PM
Event ID:      5009
User:          N/A
Description:
A process serving application pool 'ASP.NET 1.1' terminated unexpectedly. The process id was '1076'. The process exit code was '0xc0000005'.

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          6/12/2013 2:26:54 PM
Event ID:      5186
User:          N/A
Description:
A worker process with process id of '2024' serving application pool 'ASP.NET 1.1' was shutdown due to inactivity.  Application Pool timeout configuration was set to 20 minutes.  A new worker process will be started when needed.


Application log:

Log Name:      Application
Source:        Active Server Pages
Date:          9/12/2013 4:50:37 PM
Event ID:      5
User:          N/A
Description:
Error: The Template Persistent Cache initialization failed for Application Pool 'acs.mis.anz' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

Log Name:      Application
Source:        Active Server Pages
Date:          9/12/2013 5:57:52 PM
Event ID:      5
User:          N/A
Description:
Error: The Template Persistent Cache initialization failed for Application Pool 'home.com' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool.
Log Name:      Application
Source:        Application Error
Date:          19/12/2013 8:59:54 PM
Event ID:      1000
User:          N/A
Description:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x00ee2c88
Faulting process id: 0x818
Faulting application start time: 0x01cefca110983f35
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: unknown
Report Id: 4ebc00d6-6894-11e3-ae42


We used debugging tool and tried to find out no luck.

Lastly we uninstalled dotnet1.1 and installed dotnet1.1,,the issue went away..

Websites is accessible to the users, no errors or issues related to application pool.



***Share your comments about this post***

How to disable HyperThreading on HP BL660c servers?

You can disable HyperThreading in BIOS

We have HP BL660c server running windows server 2008 R2 and we are supposed to disable Hyperthreading.

In task manager we used to see 64 cores under performance tab.
we required only 32 cores.

- Goto BIOS, select System Options and press Enter
- Select processor options and press enter
- Select Intel(R) Hyperthreading Options and press enter
- Select Disabled and press enter
- Come out of BIOS, once the system boots check in task manger you will see the processor count will be reduced by 2.



***Share your comments about this post***