Archive for the ‘OS’ Category

The following text is not allowed in this context:

This exception occurs when there is an extra string / character outside the element of the schema,

example:

schema_error

,

No Comments


How to edit Hosts file in Windows 7

To edit the hosts file under Windows 7.

  1. Go to All Programs->accessories,
  2. Right click notepad.exe and select run as administrator
  3. Open the hosts file

,

No Comments


No internet connection after a connected to VPN

Try the following.

  1. Right click on the My Network Places -> Properties
  2. Select the VPN Connection (ex. VPNConnection) from the list, then click Properties
  3. Make sure the Dial another connection first: is unchecked.
  4. Then try your Internet connection.

If the above procedures are still not working, try this

  1. Repeat the above procedures
  2. VNP Properties

    Select Networking Tab

  3. Select Internet Protocol (TCP/IP) from the list view, then click Properties button
  4. Another window will appears, click Advanced button
  5. Uncheck the Use default gateway on remote network

No Comments


The service did not start due to a logon failure

The “Appname” service failed to start due to the following error: The service did not start due to a logon failure

This error appears when starting a windows service, i also got this error when i was developing a windows service application using VB.net 2008.
If you try to look at the event logs under System Tools->Event Viewer->System, See the following is true;

  1. if you can see another error like “The <strong>’Appname’ </strong>service was unable to log on as <strong>’useracount’ </strong>with the currently configured password due to the following error: The trust relationship between this workstation and the primary domain failed. To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC).”
  2. The machine is a member of a domain.

What you need to do is rejoin the computer from the domain.

No Comments


How to hide disk drive using registry in windows

In windows operating system, hiding a disk drive is possible, this can be achieve by adding or editing the value into the registry. Below are the steps,

  1. Open registry, window+R or goto start->run
  2. Type regedit
  3. Drill down the registry tree up to HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer
  4. Right click on the right pane, new->DWORD(32-BIT) value and type the NoDrives, then click ok
  5. Double click the NoDrives to enter its value,  enter 8 if you want to hide the Drive D, and if you have multiple drives and want to hide them, lets say Drive D and E you just need to add the corresponding number and you will get the result of 24 ( 8 + 16).

Below are the expected values you can use;

Values:

A = 1
B = 2
C = 4
D = 8
E = 16
F = 32
G = 64
H = 128
I = 256
J = 512
K = 1024
L = 2048
M = 4096
N = 8192
O = 16384
P = 32768
Q = 65536
R = 131072
S = 262144
T = 524288
U = 1048576
V = 2097152
W = 4194304
X = 8388608
Y =16777216
Z = 33554432
All drives = 67108863

, , ,

No Comments


How to disable USB

How can I prevent users from connecting to a USB storage device?

No Comments


How to set USB in readonly mode using Registry
  1. Goto run->regedit
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect to 1

That’s all.

,

No Comments


How to Access Network Windows Service through MMC

1. On local machine, goto run->type mmc
2. In MMC Console, Goto File-> Add/Remove Snap-in
3. The Add/Remove Snap-in window pops up, click Add button
4. Another window pops up, find the Services in the list, then click Add button
5. Another window will appear this time you are asked to choose either to connect on local machine or Another computer, select Another Computer then type the computer name in the Textbox.
6. Click Finish button.

That’s all. you can manage windows service from your local machine.

,

No Comments


Changing Dns Address in command prompt using Netsh

You can change by using netsh tool.
Syntax:

Netsh interface ip set dns “Name” static newdnsAddress

1. Open Command Prompt.
2. Type, netsh interface ip set dns “Local Area Connection” static 192.168.50.21

, , ,

No Comments


Changing IP Address using command prompt

To change ip address using command prompt with netsh.
The syntax would be, netsh interface ip set address “Name” static newipaddress subnet gateway metric

1. Open command prompt
2. Type, netsh interface ip set address “Local Area Connection” static 192.168.50.50 255.255.255.0 192.168.50.2 1

No Comments



SetPageWidth