Showing posts with label OS. Show all posts
Showing posts with label OS. Show all posts

The User Profile Service failed the logon


Error message: "The User Profile Service failed the logon. User profile cannot be loaded”, when logging on to Windows 7 or Windows Vista








Method 1: Fix the User Account Profile


To do this, follow the steps below:

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
  1. Click Start

  2. In Start Search (Windows Vista) or Search programs and files (Windows 7) area, type in regedit, and press Enter.
  3. If prompted by UAC, click Continue (Windows Vista) or Yes (Windows 7).
  4. In Registry Editor, go to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  5. In the left pane, look for the folder name starting with S-1-5 (SID key) followed by a long number. then click each folder and locate ProfileImagePath from the right pane, double click to verify that this is the user account profile that has the error.
    Expand this image
    • If you have two folders starting with S-1-5 followed by same long nubmers and one of them ended with .bak. Change the .bak folder to normal one. To do this, follow the steps below:
      1. Right click the folder without .bak and choose Rename. Then add .ba at the end of the folder name.
      2. Right click the folder with .bak and choose Rename. Then remove .bak at the end of the folder name.
      3. Right click the folder with .ba and choose Rename. Then change the .ba to .bak at the end of the folder name.
    • If you have only one folder starting with S-1-5 followed by a long numbers and ended with.bak. Right click the folder and choose Rename. Then remove .bak at the end of the folder name.
  6. Choose the folder without .bak, in the right pane, double click RefCount and type 0 and then click OK.
  7. Choose the folder without .bak, in the right pane, double click State and type 0 and then click OK.
  8. Close Registry Editor.
  9. Restart the computer.
  10. Log on again with your account.

Run commands in windows


Common Tasks with Run

Below are a list of commands you can type into the Run dialog:
Run Calculatorcalc
Run Command Promptcmd
Run Firefox (if installed)firefox
Run Internet Exploreriexplore
Run Microsoft Word (if installed)winword
Run Microsoft Excel (if installed)excel
Run Microsoft Outlook (if installed)outlook
Run Notepadnotepad
Run Wordpadwordpad
Open Control Panelcontrol panel
Open Program Files folder%programfiles%
Shutdown Windowsshutdown
Restart Windowsshutdown -r
Log Off Windowslogoff
Registry Editorregedit
Task Managertaskmgr
Windows Update Launcheswupdmgr


Creating Your Own Run Commands

If you are like me, you will use a few programs very frequently. One way to make them start faster is to give them their own Run command:
  1. Win+R to open the Run dialog
  2. Enter %windir% to open the Windows directory
  3. Alt+F W S to open the File menu, choose the New menu item, then the Shortcut menu item
  4. Go through the wizard to create a shortcut to the desired program
  5. The name you give the shortcut is what you type in the Run dialog to start the program

Infrequently Used Run Commands

Below are a list of commands you can type into the Run dialog, split into several categories: programs, control panels, computer administration tools, and special folders.

Programs

Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Free Cellfreecell
Hearts Cardmshearts
Microsoft Chatwinchat
Minesweeperwinmine
On Screen Keyboardosk
Remote Desktopmstsc
Spider Solitarespider
Telnet Clienttelnet
Windows Magnifiermagnify

Control Panels

Accessibility Controlsaccess.cpl
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscontrol admintools
Automatic Updateswuaucpl.cpl
Date and Timetimedate.cpl
Display Propertiesdesk.cpl
Folders Propertiescontrol folders
Fontscontrol fonts
Fonts Folderfonts
Game Controllersjoy.cpl
Internet Propertiesinetcpl.cpl
Keyboard Propertiescontrol keyboard
Mouse Propertiescontrol mouse
Network Connectionscontrol netconnections
Network Setup Wizardnetsetup.cpl
ODBC Data Source Administratorodbccp32.cpl
Password Propertiespassword.cpl
Phone and Modem Optionstelephon.cpl
Power Configurationpowercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Regional Settingsintl.cpl
Scanners and Camerassticpl.cpl
Security Centerwscui.cpl
Sounds and Audiommsys.cpl
User Account Managementnusrmgr.cpl
Windows Firewallfirewall.cpl

Computer Administration Tools

Computer Managementcompmgmt.msc
Device Managerdevmgmt.msc
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Dr. Watson System Troubleshootingdrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Group Policy Editor (XP Prof)gpedit.msc
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Performance Monitorperfmon
Resultant Set of Policyrsop.msc
Scheduled Taskscontrol schedtasks
Servicesservices.msc
Shared Foldersfsmgmt.msc
System Configuration Editorsysedit
System Configuration Utilitymsconfig
Utility Managerutilman
Windows System Security Toolsyskey

Computer Administration Tools

Application Data Folder%appdata%
Home Directory Drive%homedrive%
Home Directory%homepath%
Shared Home Directory%homeshare%
Temporary Folder%temp%
Windows Root Drive%systemdrive%
Windows Root Directory%windir%




To Access…Run Command
Accessibility Controlsaccess.cpl
Accessibility Wizardaccwiz
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscontrol admintools
Adobe Acrobat (if installed)acrobat
Adobe Designer (if installed)formdesigner
Adobe Distiller (if installed)acrodist
Adobe ImageReady (if installed)imageready
Adobe Photoshop (if installed)photoshop
Automatic Updateswuaucpl.cpl
Bluetooth Transfer Wizardfsquirt
Calculatorcalc
Certificate Managercertmgr.msc
Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Command Promptcmd
Component Servicesdcomcnfg
Computer Managementcompmgmt.msc
Control Panelcontrol
Date and Time Propertiestimedate.cpl
DDE Sharesddeshare
Device Managerdevmgmt.msc
Direct X Control Panel (if installed)*directx.cpl
Direct X Troubleshooterdxdiag
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Display Propertiescontrol desktop
Display Propertiesdesk.cpl
Display Properties (w/Appearance Tab Preselected)control color
Dr. Watson System Troubleshooting Utilitydrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Files and Settings Transfer Toolmigwiz
File Signature Verification Toolsigverif
Findfastfindfast.cpl
Firefox (if installed)firefox
Folders Propertiesfolders
Fontscontrol fonts
Fonts Folderfonts
Free Cell Card Gamefreecell
Game Controllersjoy.cpl
Group Policy Editor (XP Prof)gpedit.msc
Hearts Card Gamemshearts
Help and Supporthelpctr
HyperTerminalhypertrm
Iexpress Wizardiexpress
Indexing Serviceciadv.msc
Internet Connection Wizardicwconn1
Internet Exploreriexplore
Internet Propertiesinetcpl.cpl
Internet Setup Wizardinetwiz
IP Configuration (Display Connection Configuration)ipconfig /all
IP Configuration (Display DNS Cache Contents)ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents)ipconfig /flushdns
IP Configuration (Release All Connections)ipconfig /release
IP Configuration (Renew All Connections)ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS)ipconfig /registerdns
IP Configuration (Display DHCP Class ID)ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID)ipconfig /setclassid
Java Control Panel (if installed)jpicpl32.cpl
Java Control Panel (if installed)javaws
Keyboard Propertiescontrol keyboard
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Logs You Out Of Windowslogoff
Malicious Software Removal Toolmrt
Microsoft Access (if installed)msaccess
Microsoft Chatwinchat
Microsoft Excel (if installed)excel
Microsoft Frontpage (if installed)frontpg
Microsoft Movie Makermoviemk
Microsoft Paintmspaint
Microsoft Powerpoint (if installed)powerpnt
Microsoft Word (if installed)winword
Microsoft Syncronization Toolmobsync
Minesweeper Gamewinmine
Mouse Propertiescontrol mouse
Mouse Propertiesmain.cpl
Nero (if installed)nero
Netmeetingconf
Network Connectionscontrol netconnections
Network Connectionsncpa.cpl
Network Setup Wizardnetsetup.cpl
Notepadnotepad
Nview Desktop Manager (if installed)nvtuicpl.cpl
Object Packagerpackager
ODBC Data Source Administratorodbccp32.cpl
On Screen Keyboardosk
Opens AC3 Filter (if installed)ac3filter.cpl
Outlook Expressmsimn
Paintpbrush
Password Propertiespassword.cpl
Performance Monitorperfmon.msc
Performance Monitorperfmon
Phone and Modem Optionstelephon.cpl
Phone Dialerdialer
Pinball Gamepinball
Power Configurationpowercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Private Character Editoreudcedit
Quicktime (If Installed)QuickTime.cpl
Quicktime Player (if installed)quicktimeplayer
Real Player (if installed)realplay
Regional Settingsintl.cpl
Registry Editorregedit
Registry Editorregedit32
Remote Access Phonebookrasphone
Remote Desktopmstsc
Removable Storagentmsmgr.msc
Removable Storage Operator Requestsntmsoprq.msc
Resultant Set of Policy (XP Prof)rsop.msc
Scanners and Camerassticpl.cpl
Scheduled Taskscontrol schedtasks
Security Centerwscui.cpl
Servicesservices.msc
Shared Foldersfsmgmt.msc
Shuts Down Windowsshutdown
Sounds and Audiommsys.cpl
Spider Solitare Card Gamespider
SQL Client Configurationcliconfg
System Configuration Editorsysedit
System Configuration Utilitymsconfig
System File Checker Utility (Scan Immediately)sfc /scannow
System File Checker Utility (Scan Once At The Next Boot)sfc /scanonce
System File Checker Utility (Scan On Every Boot)sfc /scanboot
System File Checker Utility (Return Scan Setting To Default)sfc /revert
System File Checker Utility (Purge File Cache)sfc /purgecache
System File Checker Utility (Sets Cache Size to size x)sfc /cachesize=x
System Informationmsinfo32
System Propertiessysdm.cpl
Task Managertaskmgr
TCP Testertcptest
Telnet Clienttelnet
Tweak UI (if installed)tweakui
User Account Managementnusrmgr.cpl
Utility Managerutilman
Windows Address Bookwab
Windows Address Book Import Utilitywabmig
Windows Backup Utility (if installed)ntbackup
Windows Explorerexplorer
Windows Firewallfirewall.cpl
Windows Magnifiermagnify
Windows Management Infrastructurewmimgmt.msc
Windows Media Playerwmplayer
Windows Messengermsmsgs
Windows Picture Import Wizard (need camera connected)wiaacmgr
Windows System Security Toolsyskey
Windows Update Launcheswupdmgr
Windows Version (to show which version of windows)winver
Windows XP Tour Wizardtourstart
Wordpadwrite

How to Set the Virtual Memory size in Windows 7



How to Set the Virtual Memory size in Windows 7

Go to My Computer - Properties







v  Click on Performance Information and Tools






v  Click on Advanced Tools








v  Go to Adjust the appearance and performance of Windows








v  Now you can see the below Window then go to Advanced tab then click on Change








v  Now you can set the virtual memory as below, incase if you don’t have enough space  in the C drive then you can very well set it in another drives as well.
v  Once you set the VM size then you will be prompted for the system Restart to apply the effects.


v



BITS & WAUPDATE Service Won’t Start

BITS & WAUPDATE Service Won’t Start, %fystemroot%.

On a system with malware you may come across the following:
- Windows Updates won’t work.
- BITS errors in the eventvwr.
- When you try to start the BITS or Windows Update service you get an error saying file not found or missing.
Some malware will screw with the system so that the end user can`t get any updates.
To Identify:
1. open services.msc.
2. double-click background intelligent transfer service.
3. look at the path to executable.

Path to executable should be C:\Windows\system32\svchost.exe -k netsvcs.
You may see %fystemroot%\system32\svchost.exe -k netsvcs.
The problem is that %fystemroot% should be %systemroot%.

To fix:
1. Click Start > Run > regedit.
2. Search for `fystem`.
3. Replace each `fystem` with `system`.

If you get an error saying you can`t change the value for whatever reason, check the permissions on that key (right click on the key > permissions). Give FULL perms out. The value should be editable after that. In general, you will see these values in the BITS and WAUPDATE keys under each of the controlsets.

4. Go back to services.msc and start both services up. Make sure they are set to automatic.

All icons show the same picture

All icons show the same picture, or icons are all broken on desktop/taskbar, wherever. I’ve encountered it twice this week, once notepad was shown, the other time was Word.

1. Kill Explorer
2. Open the command prompt
go to: %USERPROFILE%\AppData\Local
3. Unhide the IconCache.db file with the following command: attrib -h IconCache.db
4. Delete the IconCache.db file: del IconCache.db
5. Start Explorer
Cross Fingers.

Network adapters are pulling a 169. IP Address





Network adapters are pulling a 169. IP Address

Symptom/Sign of Problem
Any network adapter is pulling a 169.254.x.x IP address







Fix Steps:

Step 1: Commands
All the following commands need to be run in order from an elevated command prompt. 1. netsh i i r r
2. netsh winsock reset

3. ipconfig /registerdns
4. ipconfig /flushdns
5. ipconfig /release
6. ipconfig /renew

Note: Reboot only after all commands have been run. Do not reboot in between commands.