Friday, 1 March 2013

Remote Logoff Windows



When the above message appears on a machine, this indicates that there are too many users logged on at once.
A reason for this could be a user on wireless connected remotely to the machine, losing the wireless connection and connecting again with a different I.P address once the wireless connection is reestablished. This can also occur when moving from a wireless connection to a wired connection if a new I.P has been issued.
From cmd on a machine in the same domain as the machine with too many users logged on
run:
Quser.exe /server:<serverName>
This gives us the list of active sessions on the machine
logoff <sessionId> /server:<serverName>
This will logoff the session for the sessionid specified
Example:
Quser.exe /server:DestinationAddress

logoff rdp-tcp#11  /server:DestinationAddress

Result:

Problems:
If "Error 0x00000005 enumerating sessionnames" is seen, then the machine that you are trying to access is on a different domain.
You need to be on the same domain.

Wednesday, 13 February 2013

Chuck Norris HTML

Chuck Norris = red background in HTML
Put this in a html file and run
<body bgcolor="chucknorris"> test </body>

Recycle Icon in Windows not updating

Fix for recycle Icon in Windows not updating after sending item to recycle bin/emptying recycle bin

Save this as a .reg file and run

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\
  61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,35,\
  00,34,00,00,00
"Full"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
  6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,35,00,34,00,00,00
"Empty"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
  6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,35,00,35,00,00,00