Remove cached passwords on Windows

Windows caches your user names and passwords entered for network shares, drives etc. That’s fine until there’s an incorrect password or username in the cache, and you want to remove it.

The utility to delete cached credentials is hard to find. It stores both certificate data and also user passwords.

Open a command prompt, or enter the following in the run command:

rundll32.exe keymgr.dll, KRShowKeyMgr

~Pouyan

Removing Hidden and Non-Present Devices in Device Manager

  1. Click Start. Click Run. Type cmd and press OK.
  2. Type “set DEVMGR_SHOW_DETAILS=1” (without quotation marks) and press Enter.
  3. Type “set DEVMGR_SHOW_NONPRESENT_DEVICES=1” (without quotation marks) and Press Enter.
  4. Type “start devmgmt.msc” (without quotation marks) and click press Enter.
  5. Click View. Click Show hidden devices.
  6. Click “+” to expand Imaging devices, Unknown devices and USB devices.
  7. If there any unknown devices (including grayed out devices), right click it and click Uninstall.
  8. Reboot the computer

Continue reading Removing Hidden and Non-Present Devices in Device Manager

Script to disable Internet Explorer (IE) Enhanced Security Configuration

In this post, i will show you how to disable Internet Explorer (IE) Enhanced Security Configuration trough a script.

You have to create/modify these keys below to achieve this:

REG ADD "HKEY_LOCAL_MACHINESOFTWAREMicrosoftActive SetupInstalled Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" /v "IsInstalled" /t REG_DWORD /d 0 /f
REG ADD "HKEY_LOCAL_MACHINESOFTWAREMicrosoftActive SetupInstalled Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" /v "IsInstalled" /t REG_DWORD /d 0 /f

Put that into a batch file and run it and you should be good.

First key is to turn off this future for Administrators, the second one is to turn off this future for Continue reading Script to disable Internet Explorer (IE) Enhanced Security Configuration

Check if OS running is 32bit or 64 bit

You can use this script to get the OS version of a remote/local computer

[shell]
fo = get_OS_Bit(“.”)
wscript.echo info
Function get_OS_Bit(strComputer)
const HKEY_LOCAL_MACHINE = &H80000002
Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!” &
strComputer & “rootdefault:StdRegProv”)
strKeyPath = “HARDWAREDESCRIPTIONSystemCentralProcessor�”
strValueName = “Identifier”
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

if (instr(strValue,”x86″)) then
Wscript.echo “OS running on : ” & strComputer & ” is 32 bit.”
get_OS_Bit=”32″
elseif (instr(strValue,”64″)) then
get_OS_Bit=”64″
Wscript.echo “OS running on : ” & strComputer & ” is 64 bit.”
Else
get_OS_Bit=”NotSure”
wscript.echo “Not sure.”
end if
End Function
[/shell]