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

Hypervisor is not Running

After the Hyper-V role is installed , When you try to create a new virtual machine, it fails to start with the following error:

The virtual machine could not be started because the hypervisor is not running.

Cause: Hardware virtualization or DEP was disabled in the BIOS.

Resolution: Enable Hardware virtualization or DEP in the BIOS. In some cases, the server needs to be physically shutdown in order for the new BIOS settings to take effect.

What is the DEP ?!!! Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help protect against malicious code exploits.

Hardware-enforced DEP marks all memory locations in a process as non-executable unless the location explicitly contains executable code. One kind of malicious code attacks tries to insert and run code from non-executable memory locations. DEP helps prevent these attacks by intercepting them and raising an exception.

Hardware-enforced DEP

Hardware-enforced DEP marks all memory locations in a process as non-executable unless the location explicitly contains executable code. A class of attacks exists that tries to insert and run code from non-executable memory locations. DEP helps prevent these attacks by intercepting them and raising an exception.

Hardware-enforced DEP relies on processor hardware to mark memory with an attribute that indicates that code should not be executed from that memory. DEP functions on a per-virtual memory page basis, and DEP typically changes a bit in the page table entry (PTE) to mark the memory page.

Processor architecture determines how DEP is implemented in hardware and how DEP marks the virtual memory page. However, processors that support hardware-enforced DEP can raise an exception when code is executed from a page that is marked with the appropriate attribute set.

Advanced Micro Devices (AMD) and Intel have defined and shipped Windows-compatible architectures that are compatible with DEP.

Beginning with Windows XP SP2, the 32-bit version of Windows uses one of the following:

· The no-execute page-protection (NX) processor feature as defined by AMD.

· The Execute Disable Bit (XD) feature as defined by Intel.

To use these processor features, the processor must be running in Physical Address Extension (PAE) mode. However, Windows will automatically enable PAE mode to support DEP. Users do not have to separately enable PAE by using the /PAE boot switch.

Note: Because 64-bit kernels are Address Windowing Extensions (AWE) aware, there is not a separate PAE kernel in 64-bit versions of Windows.
For more information about PAE and AWE in Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

283037 (http://support.microsoft.com/kb/283037/ ) Large memory support is available in Windows Server 2003 and in Windows 2000

Benefits

The primary benefit of DEP is that it helps prevent code execution from data pages, such as the default heap pages, various stack pages, and memory pool pages. Typically, code is not executed from the default heap and the stack. Hardware-enforced DEP detects code that is running from these locations and raises an exception when execution occurs. If the exception is unhandled, the process will be stopped. Execution of code from protected memory in kernel mode causes a Stop error.

DEP can help block a class of security intrusions. Specifically, DEP can help block a malicious program in which a virus or other type of attack has injected a process with additional code and then tries to run the injected code. On a system with DEP, execution of the injected code causes an exception. Software-enforced DEP can help block programs that take advantage of exception-handling mechanisms in Windows.

For more information Check Microsoft KBs

http://support.microsoft.com/kb/912923

http://support.microsoft.com/kb/875352/

http://blogs.technet.com/askcore/archive/2009/02/16/top-issues-for-microsoft-support-for-windows-server-2008-hyper-v-q2.aspx

Site


Recycle Bin Empty from Command

You can effectively "empty" the Recycle Bin from the command line by permanently deleting the Recycle Bin directory on the drive that contains the system files. (In most cases, this will be the C: drive, but you shouldn't hardcode that value because it won't always be true. Instead, use the %systemdrive% environment variable.)

The reason that this tactic works is because each drive has a hidden, protected folder with the name $Recycle.bin, which is where the Recycle Bin actually stores the deleted files and folders. When this directory is deleted, Windows automatically creates a new directory.

So, to remove the directory, use the rd command (r​emove d​irectory) with the /s parameter, which indicates that all of the files and directories within the specified directory should be removed as well:

  • For Windows 7 or Server 2008 enter this command:

rd /s /q "%systemdrive%\$Recycle.Bin"

  • For Windows XP, Vista, or Server 2003 enter this command:

rd /s /q "%systemdrive%\recycler"

Do note that this action will permanently delete all files and folders currently in the Recycle Bin from all user accounts. Additionally, you will (obviously) have to run the command from an elevated command prompt in order to have sufficient privileges to perform this action.

Site


Delete User Profile

1:55 PM by Yash Kalra 0 comments

We can delete the old profiles lying in the system c:\documents and settings\ you can use the below command
delprof /Q /I /D:60

this will delete the profiles not in use more than 60 days


From Command Line Block ports

1:52 PM by Yash Kalra 0 comments

For Windows Vista & Windows 7 above

This is easy using the 'netsh' command.

To block it we would call it like this:

netsh advfirewall firewall add rule name="BlockAIM" protocol=TCP
dir=out remoteport=4099 action=block

Let me explain each setting:

name = The name of the rule. (Pick something descriptive)
protocol = The protocol we are going to block (UDP or TCP for most cases)
dir = The direction of the block. Can be IN or OUT
remoteport = The port of the remote host that is going to be blocked
action = Could be block or allow. In our case we want to block the connection

Once you execute the above code, all outbound requests to any host on port 4099 will be blocked, and it adds an entry to the Windows firewall.

If you want to remove the rule from the command line, you can call netsh like this:

netsh advfirewall firewall delete rule name="BlockAIM"

That is all there is to it. One line to add a rule, and one line to remove.


Reduce your Windows 7 Boot time

1:50 PM by Yash Kalra 0 comments

We use msconfig, regedit, Services manage for start windows fast. But i found a new software who can analyze boot time & diagnose it.

It is called Soluto, and you can download from http://www.soluto.com

The install is simple. Download and run the setup file

Reboot your system, and it will analyze all of the processes that launch at boot time. The cool part is that it looks up each application in a database that is updated by users like yourself - it has a built in wiki editing tool to update information about apps it does not recognize.

When it is finished, you can see all of the programs that impact your boot time. It shows you an exact boot time, and how much time each application takes to launch.

The application is crisp, and almost fun to use. The amount of detail on each application is amazing. The color coding will keep you from making mistakes - something easy to do when you are plunking away while drinking your third egg nog.

When you want to keep an app from running, simply pause it. It will never run again unless you manually launch it.

With a few quick clicks you can pause the applications you don't need and dramatically reduce your boot time.

Site


Windows 7 – Shortcuts are NOT working

The file associations for .LNK files on a Windows 7 computer have changed from their default association to another application program, ie. Internet Explorer Picture Viewer, with the result that none of the program shortcut icons or desktop icons launch their respective programs - they all attempt to launch Explorer. Changing the file association on an individual shortcut results in all shortcuts being changed to the selected program. Is there a way to change the .LNK file associations back to the Windows default in order to relate the shortcuts to their respective application program?

Solution - Just download the Registry Fix and merged the .reg file with registry.

Site


Networking Commands

TRACERT COMMANDS IS A WINDOWS UTLITY WHICH HELPS TO TRACE THE ROUTE OF PACKETS ON A NETWORK.
ITS ONE OF A USEFULL TOOL USED IN FINDING THE IP ADRESS OF A PERSON OR SERVER.
WHEN WE ARE CONNECTED TO A COMPUTER. AS EACH PACKETS OF TINFORMATION TO OUR COMPUTER PASSES TO THE NET
THROUGH ROUTERS .THE TRACING OF PACKETS HELPS US WITH. FINDING THE DESTINATION.
TRACE NETWORK : tracert [-d][-h maximum_hops][-j host-list][-w
timeout]target_name
PACKET/SITE TO IP
-d : do not resolve addresses to hostnames
-h maximum_hops : maximum number of hops to search for target
-j host-list : loose source route along host-list
-w timeout : wait timeout milliseconds for each reply
EX : TRACERT 192.63.19.100
--------------------------------------------------------------------------------------------
THIS UTLITY WAS USED TO KNOW WHETHER A SYSTEM OR SERVER IS ALIVE OR NOT WE SEND IT WITH A FEW PACKETS OF DATA .AND IF WE DOSENT HAS ANY LOSS OF DATA WHILE THE TRAFIC THE SERVE IS ALIVE.
PING HOST/IP : ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]][-w timeout] destination-list

Options:
-t Pings the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.
EX:PING 192.62.99.100
--------------------------------------------------------------------------------------------
THIS WILL BE FAIRLY IMPORTANT WHILE WE NEED TO DISGUISE AS SOME BODY AS AN IP ADRESS IS ONE KIND OF AUTHENTICATION CHANGE IP ON A
NETWORK CARD : ARP -s inet_addr eth_adr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

-a :Displays current ARP entries by interrogating the current protocol data.
If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed.
-g : Same as -a
inet_addr : Specifies an internet address.
-N if addr : Displays the ARP entries for the network interface specified
by if_addr.
-d : Deletes the host specified by inet_addr.
-s : Adds the host and associates the Internet address inet_addr with the
Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes seperated by hyphens. The entry is permanent.
eth_addr : Specifies a physical address
if_addr : If present, this specifies the Internet address of the interface
whose address translation table should be modified. If not present, the first applicable interface will be used.
--------------------------------------------------------------------------------------------

DISPLAY OR CHANGE FILE ATTRIBUTES : ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H]
[[drive:][path]filename] [/S]

+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
/S Processes files in all directories in the specified path.
--------------------------------------------------------------------------------------------
VIEW A NETWORK Using NET.exe
/NETWORK SETTINGS : NET CONFIG Displays your current workgroup settings.
NET CONFIG [/YES]

/YES Carries out the NET CONFIG command without first prompting you to provide information or confirm actions.

NET DIAG Runs the Microsoft Network Diagnostics program to test the hardware
connection between two computers and to display information about a single computer.

NET DIAGNOSTICS [/NAMES | /STATUS]
/NAMES Specifies a diagnostic server name in order to avoid conflicts when
NET DIAG is used simultaneously by multiple
users. This option works only when the network uses a NetBIOS protocol.
/STATUS Enables you to specify a computer about which you want network
diagnostics information.


NET HELP Displays information about NET commands and error messages.
command /?
NET HELP [suffix]
NET HELP errornum

command /? -Specifies the Microsoft NET command that you want information
about.
suffix -Specifies the second word of the command you want information
about. For example, the suffix of NET VIEW is VIEW.
errornum -Specifies the number of the error message that you want
information about.


NET INIT Loads protocol and network-adapter drivers without binding them to
Protocol Manager. This command may be required if you are using a third-party network-adapter driver. You can then bind the drivers to Protocol Manager by typing
NET START NETBIND.
NET INITIALIZE [/DYNAMIC]


/DYNAMIC Loads the Protocol Manager dynamically. This is useful with some
third-party networks, such as Banyan® VINES®, to resolve memory problems.


NET LOGOFF Breaks the connection between your computer and the shared
resources to which it is connected.
NET LOGOFF [/YES]

/YES Carries out the NET LOGOFF command without first prompting you to
provide information or confirm actions.


NET LOGON Identifies you as a member of a workgroup.
NET LOGON [user [password | ?]] [/DOMAIN:name] [/YES] [/SAVEPW:NO]


user- Specifies the name that identifies you in your workgroup. The name you
specify can contain up to 20 characters.
password -The unique string of characters that authorizes you to gain access
to your password-list file. The password
can contain up to 14 characters.
? -Specifies that you want to be prompted for your password.
/DOMAIN -Specifies that you want to log on to a Microsoft Windows NT or LAN
Manager domain. name Specifies the Windows NT
or LAN Manager domain you want to log on to.
/YES -Carries out the NET LOGON command without first prompting you to
provide information or confirm actions.
/SAVEPW:NO Carries out the NET LOGON command without prompting you to
create a password-list file.

If you would rather be prompted to type your user name and password instead
of specifying them in the NET LOGON command
line, type NET LOGON without options.


NET PASSWORD Changes your logon password.
NET PASSWORD [oldpassword [newpassword]]
NET PASSWORD
\\computer| /DOMAIN:name [user [oldpassword [newpassword]]]

oldpassword -Specifies your current password.
newpassword -Specifies your new password. It can have as many as 14
characters.
computer -Specifies the Windows NT or LAN Manager server on which you want
to change your password.
/DOMAIN -Specifies that you want to change your password on a Windows NT or LAN Manager domain.
name -Specifies the Windows NT or LAN Manager domain on which you want to change your password.
user -Specifies your Windows NT or LAN Manager user name.

The first syntax line above is for changing the password for your password-list file. The second syntax line above is for changing your password on a Windows NT or LAN Manager server or domain.

NET PRINT Displays information about print queues and controls print jobs.
NET PRINT
\\computer[\printer] | port [/YES]
NET PRINT
\\computer| port [job# [/PAUSE | /RESUME | /DELETE]] [/YES]

computer -Specifies the name of the computer whose print queue you want
information about.
printer -Specifies the name of the printer you want information about.
port -Specifies the name of the parallel (LPT) port on your computer that is
connected to the printer you want information about.
job# -Specifies the number assigned to a queued print job. You can specify
the following options:
/PAUSE -Pauses a print job.
/RESUME -Restarts a print job that has been paused.
/DELETE -Cancels a print job.
/YES -Carries out the NET PRINT command without first prompting you to
provide information or confirm actions.

When you specify the name of a computer by using the NET PRINT command, you
receive information about the print queues
on each of the shared printers that are connected to the computer.


NET START Starts services. NOTE: Services cannot be started from a command
prompt within Windows.
NET START [BASIC | NWREDIR | WORKSTATION | NETBIND | NETBEUI | NWLINK]
[/LIST] [/YES] [/VERBOSE]


BASIC Starts the basic redirector.
NWREDIR Starts the Microsoft Novell® compatible redirector.
WORKSTATION Starts the default redirector.
NETBIND Binds protocols and network-adapter drivers.
NETBEUI Starts the NetBIOS interface.
NWLINK Starts the IPX/SPX-compatible interface.
/LIST Displays a list of the services that are running.
/YES Carries out the NET START command without first prompting you to
provide information or confirm actions.
/VERBOSE Displays information about device drivers and services as they are
loaded.

To start the workgroup redirector you selected during Setup, type NET START
without options. In general, you don't need to use any of the options.


NET STOP Stops services. NOTE: Services cannot be stopped from a command
prompt within Windows.

NET STOP [BASIC | NWREDIR | WORKSTATION | NETBEUI | NWLINK] [/YES]
NET STOP Stops the basic redirector.
BASIC Stops the basic redirector.
NWREDIR Stops the Microsoft Novell® compatible redirector.
WORKSTATION Stops the default redirector.
NETBEUI Stops the NetBIOS interface.
NWLINK Stops the IPX/SPX compatible interface.
/YES Carries out the NET STOP command without first prompting you to provide
information or confirm actions.

To stop the workgroup redirector, type NET STOP without options. This breaks
all your connections to shared resources and removes the NET commands from your computer's memory.


NET TIME Displays the time on or synchronizes your computer's clock with the
shared clock on a Microsoft Windows for Workgroups,Windows NT, Windows 95, or NetWare time server.
NET TIME [\\computer | /WORKGROUP:wgname] [/SET] [/YES]


computer -Specifies the name of the computer (time server) whose time you
want to check or synchronize your computer's
clock with. /WORKGROUP Specifies that you want to use the clock on a computer (time
server) in another workgroup.
wgname -Specifies the name of the workgroup containing a computer whose
clock you want to check or synchronize your computer's clock with.
If there are multiple time servers in that workgroup, NET TIME uses the
first one it finds.
/SET Synchronizes your computer's clock with the clock on the computer or
workgroup you specify.
/YES Carries out the NET TIME command without first prompting you to provide
information or confirm actions.


NET USE Connects or disconnects your computer from a shared resource or
displays information about your connections.
NET USE [drive: | *] [\\computer\directory [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]
NET USE [port:] [\\computer\printer [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]

NET USE drive: | \\computer\directory/DELETE [/YES]
NET USE port: |
\\computer\printer/DELETE [/YES]
NET USE * /DELETE [/YES]

NET USE drive: | * /HOME

drive -Specifies the drive letter you assign to a shared directory.
* -Specifies the next available drive letter. If used with /DELETE,
specifies to disconnect all of your connections.
port -Specifies the parallel (LPT) port name you assign to a shared printer.
computer -Specifies the name of the computer sharing the resource.
directory -Specifies the name of the shared directory.
printer -Specifies the name of the shared printer.
password -Specifies the password for the shared resource, if any.
? -Specifies that you want to be prompted for the password of the shared
resource. You don't need to use this option unless the password is optional.
/SAVEPW:NO Specifies that the password you type should not be saved in your
password-list file. You need to retype the password the next time you connect to this resource.
/YES Carries out the NET USE command without first prompting you to provide
information or confirm actions.
/DELETE Breaks the specified connection to a shared resource.
/NO Carries out the NET USE command, responding with NO automatically when
you are prompted to confirm actions.
/HOME Makes a connection to your HOME directory if one is specified in your
LAN Manager or Windows NT user account.

To list all of your connections, type NET USE without options.

NET VER Displays the type and version number of the workgroup redirector you
are using.
NET VER


NET VIEW Displays a list of computers in a specified workgroup or
the shared resources available on a specified computer.
NET VIEW [\\computer] [/YES]
NET VIEW [/WORKGROUP:wgname] [/YES]


computer -Specifies the name of the computer whose shared resources you want
to see listed.
/WORKGROUP Specifies that you want to view the names of the computers in
another workgroup that share resources.
wgname -Specifies the name of the workgroup whose computer names you want to
view.
/YES Carries out the NET VIEW command without first prompting you to provide
information or confirm actions.

To display a list of computers in your workgroup that share
resources, type NET VIEW without options.
--------------------------------------------------------------------------------------------

DEBUG : DEBUG [[drive:][path]filename [testfile-parameters]]
[drive:][path]filename Specifies the file you want to test.
testfile-parameters Specifies command-line information required by the
file you want to test.

***After Debug starts, type ? to display a list of debugging commands.***
To get out of Debug you need to "Q" and enter
To execute the Debug routine you need to do "G" and enter

--------------------------------------------------------------------------------------------
IPCONFIG : ipconfig [/all][/batch][/renew_all][/release_all][/renew
N][/release N]

/All Display detailed information.
/Batch [file] Write to file or ./WINIPCFG.OUT
/renew_all Renew all adapters.
/release_all Release all adapters.
/renew N Renew adapter N.
/release N Release adapter N.
--------------------------------------------------------------------------------------------
FTP : Depending upon the version of FTP and the Operating System being
used each of the following commands may or may
not work. Generally typing -help or a ? will list the commands
available to you.
Command Information
! : Using this command you will have the capability of toggling back and
forth between the operating system and ftp.
Once back in the Operating System generally typing exit will take you
back to the FTP command line.
? : Access the Help screen.
abor : Abort Transfer
append : Append text to a local file.
ascii : Switch to ASCII transfer mode
bell : Turns bell mode on / off.
binary : Switches to binary transfer mode.
bye : Exits from FTP.
cd : Changes directory.
cdup : Change to parent directory on remote system
close : Exits from FTP.
cwd : Change working directory on remote system
dele : Delete file on remote system
delete : Deletes a file.
debug : Sets debugging on / off.
dir : Lists files if connected.
dir -C = Will list the files in wide format.
dir -1 = Lists the files in bare format in alphabetic order
dir -r = Lists directory in reverse alphabetic order.
dir -R = Lists all files in current directory and sub directories.
dir -S = Lists files in bare format in alphabetic order.
disconnect : Exits from FTP.
get : Get file from the computer connected to.
glob : Sets globbing on / off.
hash : Sets hash mark printing on / off
help : Access the Help screen and displays information about command if
command typed after help.
lcd : Displays local directory or if path typed after lcd will change local
directory.
list : Send a list of file names in the current directory on the remote
system on the data connection.
literal : Sends command line
ls : Lists files if connected.
mdelete : Multiple delete
mdir : Lists contents of multiple remote directories
mget : Get multiple files
mkd : Make directory.
mkdir : Make directory.
mls : Lists contents of multiple remote directories.
mode : Specifies the transfer mode. Available parameters are generally S, B
or C.
mput : Sent multiple files
nlst : Send a full directory listing of the current directory on the remote
system on the data connection.
open : Opens address.
pass : Supplies a user password.
port : Specify the client port number.
prompt : Enables disables prompt.
put : Send one file
pwd : Print working directory
quit : Exits from FTP.
quote : Send arbitrary ftp command
recv : Receive file
retr : Get file from remote system.
remotehelp : Get help from remote server
rename : Renames a file
rmdir : Removes a directory
send : Send single file
status : Shows status of currently enabled / disabled options
trace : Toggles packet tracing
type : Set file transfer type
user : Send new user information
verbose : Sets verbose on / off.
--------------------------------------------------------------------------------------------
DISPLAY TCP/IP
NETWORK PROTOCOL : NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]
INFORMATION
-a Displays all connections and listening ports.
-e Displays Ethernet statistics. This may be combined with the -s option.
-n Displays addresses and port numbers in numerical form.
-p proto -Shows connections for the protocol specified by proto; proto may
be TCP or UDP. If used with the -s option
to display per-protocol statistics, proto may be TCP, UDP, or IP.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are shown for
TCP, UDP and IP; the -p option may be used to specify a subset of the default.
interval Redisplays selected statistics, pausing interval seconds between
each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current
configuration information once.
--------------------------------------------------------------------------------------------
DISPLAY OR SET A SEARCH PATH FOR EXECUTABLE FILES :
PATH [[drive:]path[;...]]
PATH ;
Type PATH ; to clear all search-path settings and direct Windows to search
only in the current directory.
Type PATH without parameters to display the current path.
--------------------------------------------------------------------------------------------
MANUALLY CONFIGURE MODEMS ROUTE :
ROUTE [-f] [-p] [command [destination] [MASK netmask] [gateway] [METRIC
metric]
[IF interface]
-f Clears the routing tables of all gateway entries. If this is used in
conjunction with one of the commands, the tables are cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across boots of
the system. By default, routes are not
preserved when the system is restarted. When used with the PRINT
command, displays the list of registered persistent routes. Ignored for all other commands, which always affect the appropriate persistent routes. This option
is not supported Windows'95. command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
NETMASK Specifies a subnet mask value for this route entry. If not
specified, it defaults to 255.255.255.255.
GATEWAY Specifies gateway. interface the interface number for the specified
route.
METRIC Specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network
database file NETWORKS. The symbolic names for
gateway are looked up in the host name database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Diagnostic Notes: Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: 87

EXAMPLES
Examples:
>route PRINT
>route ADD 157.0.0.0
^destination
MASK 255.0.0.0
^mask 157.55.80.1
^gateway METRIC 3
^metric IF 2
^Interface
If IF is not given, it tries to find the best interface for a given gateway.
>route PRINT
>route PRINT 157* .... Only prints those matching 157*
>route DELETE 157.0.0.0
>route PRINT
One way to use this would be as follows: You can't ping the server that you
are connecting to, but you know the ip address to be 127.16.16.10
>route PRINT
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 14 a4 c3 44 20 ...... Xircom CardBus Ethernet 10/100 Adapter
0x3 ...00 b0 d0 43 55 a5 ...... 3Com EtherLink PCI
0x4 ...00 01 b0 8f 8f 80 ...... NdisWan Adapter
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 127.16.8.14 127.16.8.14 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
127.16.0.0 255.255.0.0 127.16.8.14 127.16.8.14 1
127.16.8.14 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.50.0 255.255.255.0 192.168.50.65 192.168.50.65 2
192.168.50.65 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.50.255 255.255.255.255 192.168.50.65 192.168.50.65 1
224.0.0.0 224.0.0.0 127.16.8.14 127.16.8.14 1
224.0.0.0 224.0.0.0 192.168.50.65 192.168.50.65 1
255.255.255.255 255.255.255.255 192.168.50.65 192.168.50.65 1
** notice that no gateway for the current ip goes to 255.255.255.0, so it
must be added. Now do the following command:
>route ADD 127.16.0.0 MASK 255.255.255.0 <your current ip from winntcfg or
>winipcfg> METRIC 1
**Then do the following command:
>route print
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 127.16.8.14 127.16.8.14 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
127.16.0.0 255.255.0.0 127.16.8.14 127.16.8.14 1
** 127.16.0.0 255.255.255.0 127.16.8.14 127.16.8.14 1
127.16.8.14 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.50.0 255.255.255.0 192.168.50.65 192.168.50.65 2
192.168.50.65 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.50.255 255.255.255.255 192.168.50.65 192.168.50.65 1
224.0.0.0 224.0.0.0 127.16.8.14 127.16.8.14 1
224.0.0.0 224.0.0.0 192.168.50.65 192.168.50.65 1
255.255.255.255 255.255.255.255 192.168.50.65 192.168.50.65 1

**Notice the ** ip address gives you the default gateway.
--------------------------------------------------------------------------------------------
DISPLAY PROTOCOL STATISTICS
AND CURRENT TCP/IP CONNECTIONS
USING NBT(NETBIOS OVER TCP/IP): NBTSTAT [-a RemoteName] [-A IP address]
[-c] [-n]
[-r] [-R] [-s] [S] [interval] ]
-a (adapter status): Lists the remote machine's name table given its name
-A (Adapter status): Lists the remote machine's name table given its IP address
-c (cache) : Lists the remote name cache including the IP addresses
-n (names) : Lists local netBIOS names
-r (resolved) : Lists names resolved by broadcast and via WINS
-R (Reload) : Purges and reloads the remote cache name table
-S (Sessions) : Lists sessions table with the destination IP addresses
-s (sessions) : Lists sessions table converting destination IP addresses to host names via the hosts file RemoteName Remote host machine name. IP address Dotted decimal representation of the IP address. interval Redisplays selected statistics, pausing interval seconds between each display. Press Ctrl+C to stop redisplaying statistics.

Site


Domain, Workgroup and Homegroup

Computer networks is an interconnection of computers that allows communication, sharing of resources and information. Each groupings are being managed using different methods for organizing computers in the network.

Windows-based computers inside the network automatically creates a workgroup or domain. Computers on local area network or home networks are always part of a workgroup and computers in businesses and offices are usually part of a domain.

Definitions

Network

A group of devices that communicate either wireless or wired using physical connection such as ethernet cable or a phone line.

Workgroup

A group of computers that are connected on a network and share resources such as printer and files. All computers are peers, means no computer has control over another.

Domain

A collection of computers on a computer network that share a common database and security policy. A domain is administered as a unit with common rules and procedures, and each domain must have a unique name. This makes it easy to make changes because any changes are automatically made to all computers. Domain users must provide a password or credentials each time they access the domain. There can be thousands of computers in a domain and different local networks.

Homegroup

This is a unique feature in Windows 7 in which a group of computers on a network shares pictures, music, documents, and printers. A homegroup is protected with a password.


On Command Line- Find Out BIOS, Motherboard and CPU info

12:27 PM by Yash Kalra 0 comments

Info about your system's BIOS, then type this command

wmic bios get name,serialnumber,version

Info about your BIOS name, current version and it's serial number if there is any.

wmic csproduct get name,identifyingnumber,uuid

Info about your System motherboard (that happen to be the name) and it's UUID

wmic cpu get name,CurrentClockSpeed,MaxClockSpeed

Info about what's the CPU clock speed, also if you have turbo boost CPUs, what's the Max Clock Speed your system is capable of for the current configuration. Of course you can always overclock your CPU and that will too reflect the change.

wmic cpu get name,CurrentClockSpeed,MaxClockSpeed /every:1

If you have dynamic clock speed running, then add this line, it will refresh and monitor the Clock speed every 1 second.


Run Android Apps on Windows 7/8

12:10 PM by Yash Kalra 0 comments

A virtualization solution that lets you run Android apps fluidly on Windows 7 systems, or even Windows 8. If you are currently looking for a way to port Android apps on Windows system, looking no farther, this App from BlueStacks is all you need. It's a magic piece that puts Android in to the multi-platform category.

The BlueStacks App Player runs like a desktop widget at the top right corner of your desktop after installed. It runs Android apps pretty smoothly in full-screen. The App Player comes with 10 pre-installed apps out of the box but you can get more apps through BlueStacks Cloud Connect, which requires a Facebook authentication to get in. You can install up to 26 of them with the App Player.

It works on Windows 7 machine and it's free.


Windows Vista Default Services


Windows 7 Default Services

5:49 PM by Yash Kalra 0 comments


Show_Hidden_Files_On_Off Toggle-Script

Simply copy paste following code in NOTEPAD and save the file with name " Show_Hidden_Files_On_Off.vbs " (including quotes):

Hidden = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"

SHidden = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden"

Set Sh = WScript.CreateObject("WScript.Shell")

St = Sh.RegRead(Hidden)

If St = 2 Then

Sh.RegWrite Hidden, 1, "REG_DWORD"

Sh.RegWrite SHidden, 1, "REG_DWORD"

Else

Sh.RegWrite Hidden, 2, "REG_DWORD"

Sh.RegWrite SHidden, 0, "REG_DWORD"

End If

Sh.SendKeys("{F5}")


Unlock Oracle- Scott ID

1:34 PM by Yash Kalra 0 comments

After installation of Oracle10g, there was a problem ..couldnt login using SQL+. None of the accounts(scott/tiger) worked . At last a quick web search gave the solution . Here is what it is:

From your command prompt, type

sqlplus "/ as sysdba"

Once logged in as SYSDBA, you need to unlock the SCOTT account
SQL> alter user scott account unlock;
SQL> grant connect, resource to scott;

Accessing the "em" web application ?
http://hostname:1158/em

http://database-host:1158/em

Login as:
username : sysdba
password : <password>
Connect : Sysdba

Source


Disable Autorun Functionality in Windows

1:28 PM by Yash Kalra 0 comments

Whenever you insert a USB drive, CD/DVD, etc into your system, Windows automatically launches an Autorun dialog box which allows you to select an action from the given list. You can browse the content, play media files, etc using Autorun dialog box.

To disable Autorun functionality in Windows:

1. Type regedit in RUN or Startmenu searchbox and press Enter. It'll open Registry Editor.

2. Go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

If the above key doesn't exist, create it.

3. In right-side pane, create a new DWORD value NoDriveTypeAutoRun and set its value to any of following according to your requirements:

FF - To disable AutoRun on all drives
20 - To disable AutoRun on CD-ROM drives
4 - To disable AutoRun on removable drives
8 - To disable AutoRun on fixed drives
10 - To disable AutoRun on network drives
40 - To disable AutoRun on RAM disks
1 - To disable AutoRun on unknown drives

4. If you want to disable Autorun on a combination of drives, you'll need to calculate sum of the values. For example, if you want to disable Autorun on CD-ROM drives and removable drives, you'll need to set the value to 20+4=24.

5. If you want to restore the Autorun functionality, simply delete the NoDriveTypeAutoRun DWORD value created in Step 3 Or you can set the default value which is given below:

Windows 2000: 95

Windows XP: 91

Windows Server 2003: 95

Windows Vista, Server 2008 and 7: 91

6. If you want to disable Autorun functionality for all users in your system, use the "HKEY_LOCAL_MACHINE" instead of "HKEY_CURRENT_USER" mentioned in Step 2.


Enable / Disable - Desktop Settings / Properties of Windows

1:24 PM by Yash Kalra 0 comments

In Windows you can change desktop wallpaper, screen saver, themes and other appearance settings by right-click on Desktop and select "Properties".

If you want to disable all or a few options in Desktop Properties to restrict users or you might want to enable those options in case they are disabled by your system administrator or a virus infection.

Following tutorial will help you in enabling or disabling all or a particular option in Desktop Properties:

A. Disable Themes Tab in Desktop Properties:

Type regedit in RUN dialog box and press Enter. Now goto:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer

If "Explorer" key is not present, then create it. Now in right-side pane, create a new DWORD value NoThemesTab and set its value to 1 to disable it.

B. Disable Desktop Tab in Desktop Properties:

Type regedit in RUN dialog box and press Enter. Now goto:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System

If "System" key is not present, then create it. Now in right-side pane, create a new DWORD value NoDispBackgroundPage and set its value to 1 to disable it.

C. Disable Screen Saver Tab in Desktop Properties:

Type regedit in RUN dialog box and press Enter. Now goto:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System

If "System" key is not present, then create it. Now in right-side pane, create a new DWORD value NoDispScrSavPage and set its value to 1 to disable it.

D. Disable both Themes and Appearance Tabs in Desktop Properties:

Type regedit in RUN dialog box and press Enter. Now goto:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System

If "System" key is not present, then create it. Now in right-side pane, create a new DWORD value NoDispAppearancePage and set its value to 1 to disable it.

E. Disable Settings Tab in Desktop Properties:

Type regedit in RUN dialog box and press Enter. Now goto:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System

If "System" key is not present, then create it. Now in right-side pane, create a new DWORD value NoDispSettingsPage and set its value to 1 to disable it.

* If you want to enable a restricted tab in Desktop Properties, just delete the required DWORD value as mentioned above or change its value to 0 instead of 1.


Hide Control Panel Icons in Windows

12:49 PM by Yash Kalra 0 comments

To hide or show any specific Control Panel applet in Windows.

A: For All Windows Versions except Windows 95, 98 & Me

1. Type regedit in RUN dialog box and press Enter. Now go to:

HKEY_CURRENT_USER\Control Panel\
OR
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\

2. Under this key create a new key with the name don't load , so the new path will be:

HKEY_CURRENT_USER\Control Panel\don't load
OR
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\don't load

3. Now in right-side pane, create new String value. Set its name to the file name of the applet which you want to hide, e.g. if you want to hide Display applet then set its name to Desk.cpl now set its value to no to hide it. If you want to show it again, either set its value to yes or simply delete the String value.

To use the above mentioned method, you'll need to know the .CPL file name of the desired applet. You can search for .CPL in Windows Search or you can use help of following list which contains .cpl file names of almost all default Control Panel applets:
Access.cpl Accessibility
Appwiz.cpl Add or Remove Programs
Bthprops.cpl Bluetooth Devices
Desk.cpl Display
Hdwwiz.cpl Add New Hardware
Inetcpl.cpl Internet Options
Intl.cpl Regional and Language Options
Joy.cpl Game Controllers
Keymgr.cpl Stored User Names and Passwords
Liccpa.cpl Licensing
Main.cpl Mouse
Mlcfg32.cpl Mail
Mmsys.cpl Sound and Audio Devices
Ncpa.cpl Network Connections
Nusrmgr.cpl User Accounts
Nwc.cpl Netware client connectivity
Odbccp32.cpl ODBC Data Source Administrator
Powercfg.cpl Power Options
Sysdm.cpl System
Telephon.cpl Phone and Modem Options
Timedate.cpl Date and Time
Sapi.cpl Speech
Wuaucpl.cpl Automatic Updates
Wscui.cpl Security Center or Action Center

B: For All Windows Versions except Windows 95, 98 & Me

1. Type regedit in RUN dialog box and press Enter. Now go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

2. Look for a key "Explorer" under it. If its not present, then create a new one and give it name Explorer.

3. Select "Explorer" key and in right-side pane, create a new DWORD value DisallowCpl and set its value to 1

4. Now create another new key under Explorer key with the name DisallowCpl so the new path will be:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer\DisallowCpl

5. Select "DisallowCpl" key and in right-side, create new String value with name 1 and set its value to the applet name which you want to hide.You don't need to use the .cpl file name of applet in this method. You have to put the applet label which you see in Control Panel.

e.g., If you want to hide AutoPlay applet, then create a new String value, give it name 1 and set its value to AutoPlay. If you want to hide more applets, then simply create more String values with names 2, 3 and so on and set their values to the applet label.

C: For All Windows Versions except Windows 95, 98 & Me

In this method, you'll tell Windows which applets should be visible and Windows will automatically hide the rest.

Its useful when you want to show a few specific applets and want to hide remaining applets. So you just need to create a few String values to tell Windows which applets you want to show. It'll save your valuable time.

1. Type regedit in RUN dialog box and press Enter. Now go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

2. Look for a key "Explorer" under it. If its not present, then create a new one and give it name Explorer.

3. Select "Explorer" key and in right-side pane, create a new DWORD value RestrictCpl and set its value to 1

4. Now create another new key under Explorer key with the name RestrictCpl so the new path will be:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer\RestrictCpl

5. Select "RestrictCpl" key and in right-side, create new String value with name 1 and set its value to the applet name which you want to show.You don't need to use the .cpl file name of applet in this method. You have to put the applet label which you see in Control Panel.

e.g., If you want to show AutoPlay applet, then create a new String value, give it name 1 and set its value to AutoPlay. If you want to show more applets, then simply create more String values with names 2, 3 and so on and set their values to the applet label.

Now Windows will only show the applets which you mentioned in String values, other applets will be hidden.

D: For Windows 95, 98 & Me

1. Open "%windir%\Control.INI" file. Where "%windir%" denotes Windows folder which is present in system drive where Windows is installed.

2. You'll see a line saying [don't load] in the file. If you can't find it, then create a new line at last.

3. Now under this line, you can set .CPL file name of your desired applet which you want to hide in following format:

filename.cpl=no

e.g.,

If you want to hide Display applet, then the syntax will be:

desk.cpl=no

You can create similar lines for other applets which you want to hide. The .CPL file name can be obtained from the list mentioned in A.

Source


Some Restrictions Set for Windows

Some important and useful restrictions, which can be put in Windows 2000, XP, Server 2003, Vista, Server 2008 and 7.

A. Open Registry Editor

To open Registry Editor by providing regedit command in RUN or Start menu Search box and press Enter.

B. Create Registry Key

Go to following keys:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\System

1. Restricting Desktop Properties

Create or modify required DWORD value: NoDispCPL and set its value to 1

2. Restricting Task Manager

Create new DWORD DisableTaskMgr and set its value to 1

3. Restricting Registry Editor

Create new DWORD DisableRegistryTools and set its value to 1

Go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer

4. Restricting Taskbar Properties

Create new DWORD NoSetTaskbar and set its value to 1

5. Restricting System Properties

Create new DWORD NoPropertiesMyComputer and set its value to 1

6. Restricting Folder Options

Create new DWORD NoFolderOptions and set its value to 1

7. Restricting Control Panel

Create new DWORD NoControlPanel and set its value to 1

8. Restricting Locking/Unlocking of Taskbar

Create new DWORD LockTaskbar and set its value to 1

9. Restricting right-click on Taskbar

Create new DWORD NoTrayContextMenu and set its value to 1

10. Restricting Toolbars in Taskbar

Create new DWORD NoToolbarsOnTaskbar and set its value to 1

11. Restricting drag-and-drop and right-click in Start Menu

Create new DWORD NoChangeStartMenu and set its value to 1

12. Restricting RUN in Start Menu

Create new DWORD NoRun and set its value to 1

13. Restricting Shut Down, Restart, Sleep and Hibernate commands

Create new DWORD NoClose and set its value to 1

14. Restricting Log off in Start Menu

Create new DWORD StartMenuLogOff and set its value to 1

15. Restricting Active Desktop Feature

Create new DWORD NoActiveDesktop and set its value to 1

16. Restricting adding/removing items to/from Toolbars

Create new DWORD NoToolbarCustomize and set its value to 1

17. Restricting adding/removing Toolbars

Create new DWORD NoBandCustomize and set its value to 1

18. Restricting notification at low disk space

Create new DWORD NoLowDiskSpaceChecks and set its value to 1

19. Restricting Command Prompt

Go to following key:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System

Create new DWORD DisableCMD and set its value to 2

20. Restricting Writing to USB Drives

Go to following key:

HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Control\StorageDevicePolicies

Create new DWORD WriteProtect and set its value to 1

21. Restricting "New" option in context menu

Go to following key:

HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenu Handlers\New

And delete the value of Default, e.g., empty it.

22. Restricting "Send To" option in context menu

Go to following key:

HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenu Handlers\Send To

And delete the value of Default, e.g., empty it.

23. Restricting any desired application

Go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer\DisallowRun

Create new String value with any name, like 1 and set its value to the desired program's EXE file.

e.g., If you want to restrict msconfig, then create a String value 1 and set its value to msconfig.exe. If you want to restrict more programs, simply create more String values with names 2, 3 and so on and set their values to the program's exe file.

24. Restricting Drives in My Computer

Go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer

In right-side pane, create new DWORD NoViewOnDrive and change its value as following:

3 : To Restrict A and B drives only.
4 : To Restrict C drive only.
7 : To Restrict A, B, and C drives only.
8 : To Restrict D drive only.
F : To Restrict A, B, C, and D drives only.
03FFFFFF : To Restrict all drives.

If you want more specific restrictions, like you want to restrict a combination of drives, you can use decimal no. instead of hexadecimal no. Following is a list for all drives decimal no.:

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: 67108863

*So if you want to disable a combination of drives, just sum their numbers and give the same value to NoViewOnDrive. e.g., for restricting C, D, E and F drives, give the value: 4+8+16+32 = 60

*You can also hide the drives using NoDrives DWORD value. The location and its value remain same as the above trick.

*If you want to remove the restriction, simply delete the DWORD or set its value to 0


Windows 7 Desktop & My Computer Context Menu- Tweaks

3:36 PM by Yash Kalra 0 comments

Tweaks- for change in Windows Desktop and My Computer Context Menu

* For Change in Desktop Context Menu

HKEY_CLASSES_ROOT\DesktopBackground\Shell

* For Change in My Computer Context Menu

HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell

Add your name at top of the menu and can open any program, Explorer, Documents folder or User Accounts by clicking on it in Windows 7 Desktop Context Menu

Steps:

1. Type regedit in RUN or startmenu search box and press Enter. It'll open Registry Editor.

2. Now go to:

HKEY_CLASSES_ROOT\DesktopBackground\Shell

3. Now we'll need to create a new key under "Shell" key. Right-click on "Shell" key and select "New -> Key". Give the new key any desired name e.g. "Yash" (without quotes).

4. Now in right-side pane, change value of "Default" to your desired name which you want to show in Desktop context menu. We have chosen !!~~YASH~~!! in our example.

5. Now right-click on the new key which we created in step 3, e.g. Yash and select "New -> Key". Give the new key name of command.

6. In right-side pane, change value of "Default" to explorer.exe if you want to open Explorer by clicking on it.

7. To set an icon for the shortcut, select the key created in Step 3 and in right-side pane, create a new String value "Icon". Set its value to your desired icon. We have set it to imageres.dll,207.

*To set its position in the context menu, create a new String value "Position" and set its value to:

Top (To show it at top)
Bottom (To show it at bottom)

Add "System Properties", "Task Manager" and Many Other Useful Shortcuts in Windows 7 Desktop Context Menu

Steps:

1. & 2. are same

3. Now we'll need to create a new key under "Shell" key. Right-click on "Shell" key and select "New -> Key". Give the new key any desired name e.g. "Folder Options" (without quotes).

4. Now we'll need to create another new key. Right-click on the new key which we created in the last step e.g. Folder Options and select "New -> Key". Give the new key name of "command".

5. Now select "command" key and in right-side pane, you'll see "Default" String value. Double-click on it and set its value to as following:

control folders

6. That's it. Now you'll have a new option "Folder Options" in Desktop context menu.

7. You can use the same steps 3-5 to add other options. Simply give the desired option label in Step 3 and set the required command in Step 5. Following are the required codes which you'll need to provide as "command" in step 5:

Administrative Tools: control admintools

Change Cursor: control main.cpl,,1

Change Date / Time: control timedate.cpl

Change Regional Settings: control intl.cpl

Folder Options: control folders

Fonts: control fonts

Internet Options: control inetcpl.cpl

Network Connections:control ncpa.cpl

Power Options: control powercfg.cpl

Printers: control printers

Programs and Features: control appwiz.cpl

Registry Editor: regedit

Security Center: control wscui.cpl

Security Configuration: msconfig

System Properties: control sysdm.cpl

Task Manager: taskmgr

Task Scheduler: Control schedtasks

Turn Firewall On / Off: control firewall.cpl

User Accounts: Control userpasswords

User Accounts Classic: Control userpasswords2

8. That's it.

9. You can add any other desired control panel applet using the same way.

Add any application shortcut in desktop context menu of Windows

Steps:

1. to 4. are same

5. Now select "command" key and in right-side pane, you'll see "Default" String value. Double-click on it and set its value to as following:

C:\Program Files\Windows Media Player\wmplayer.exe
C:\Program Files\Winamp\winamp.exe
etc...

6. Thats it. Now you can check your favorite application shortcut in desktop context menu.

7. You can create as many shortcut as you want. Simply create a separate key for all the applications.

Add Cascading Menus in Desktop Context Menu:

PART 1: Creating cascading menus and adding programs shortcuts

1. & 2. are same

3. Now we'll need to create a new key under "Shell" key. Right-click on "Shell" key and select "New -> Key". Give the new key any desired name e.g. "Menu1" (without quotes).

4. Now select this newly created key "Menu1" and in right-side pane, we'll need to create following 4 String values:
MUIVerb
SubCommands
Icon
Position

* Icon and Position are optional but MUIVerb and SubCommands are compulsory.

* MUIVerb contains the name of cascading menu which will be displayed in the context menu. You can set its value to any desired name like Apps, Browsers, etc. Feel free to set any name.

* SubCommands contains list of commands separated by semi-colon (;) which you want to show under cascading menu. You can't add any program shortcut directly. First you'll need to give any desired command name in this list and after that you'll need to register it using PART 2 so that it can start working.

5. If you are confused about "SubCommands" String value, this point will clear all your doubts.

Suppose you have created a cascading menu "Apps" using Step 3 and now you want to add Notepad and Calculator shortcuts under it. In this case, you'll need to set following as "SubCommands" value:

notepad;calc

Above value can be changed according to your requirement. You can use np;ca instead of notepad;calc. But you'll have to use the same name while registering those commands using PART 2.

* If you want to put a separator between menus, just use Pipe symbol (|) between commands. For example, notepad;|;calc.

6. Icon String value can be used to show an icon for your cascading menu. We have set its value to explorer.exe that's why its showing Windows Explorer icon for the "Apps" cascading menu.

7. Position String value can be used to define the position of cascading menu in the context menu. By default the cascading menu is shown in the middle but you can set its position at Top or Bottom with the help of "Position" String value.

8. You can create more than one cascading menus using Step 3 and 4.

PART 2: Adding functionality to the shortcuts by registering them

Once you have added the program shortcuts to cascading menus, you'll need to register the commands mentioned in "SubCommands" String value using following method:

1. Go to following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell

2. Under this key, we'll need to create new keys for each command mentioned in "SubCommands" String value.

We used 2 commands : notepad and calc, so we'll need to create 2 keys under "CommandStore\Shell" key with the same names notepad and calc.

3. Once you create the key, select it and in right-side pane set value of "(Default)" to the name which you want to show in cascading menu. For example set its value to Notepad or Calculator or any other desired string.

4. If you also want to show an icon for it, create a new String value with the name icon and set its value to program's EXE file path or any other desired icon. For example, to show Notepad icon for Notepad shortcut, you can set value of Icon to notepad.exe

5. Now final step! Create a new key under the recently created keys, e.g. notepad or calc and give it name command.

Click on it and in right-side pane, set value of "(Default)" to the path of your desired program's EXE file. For example, if you want to open Notepad when you click on "Notepad" entry in cascading menu, set value of "Command" to notepad.exe

* Notepad is a Windows application, so you can omit the full path but if you want to execute any 3rd party program, you should give full path of its EXE file.

That's it. Now you'll see your desired cascading menus containing your favorite programs shortcuts in Desktop context menus.

* Define the shortcut icon and position.

To set an icon for the shortcut, select the key created in Step 3 and in right-side pane, create a new String value "Icon". Set its value to your desired icon or simply put the path of program's EXE file and it'll automatically show its default icon.

To set its position in the context menu, create a new String value "Position" and set its value to:

Top (To show it at top)
Bottom (To show it at bottom)

*To remove any option, simply delete its key.


Hide User Name for a Locked Computer in Windows

12:42 PM by Yash Kalra 0 comments

Hide user name for the user that has locked the computer:

1. Start Registry Editor.

2. Locate the following key in the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

3. If it doesn't exist, on the Edit menu, point to New, click DWORD Value, and then add the following registry values:

Value name: DontDisplayLockedUserId

Value data: 1, 2 or 3 (see below)

Base: Decimal

The following values can be set:
1 = Show the locked user display name and the user ID
2 = Show the locked user display name only
3 = Do not display the locked user information

4. Exit Registry Editor.

Note: To prevent the last logged on user to be displayed in the Windows logon screen, also set the dontdisplaylastusername value and set it to 1.