You are on page 1of 2

Command to change attrib on windows XP vista and 7

C:\>attrib -s -h /S /D C:\>attrib -r /S /D

BTW, you can also hover over the CMD line and press CTRL + SHIFT + ENTER to invoke the "Run as Administrator" shortcut. In the Command Prompt window, type:
net user

Note how the Administrator account is there, yet the new user account has not been yet created. To set the Administrator's account password:
net user *

Then enter the required password and confirm it. To enable the Administrator's account:
net user administrator /active:yes

Commanda to take owner shipof files or folders

Found it! just use command prompt with administrator account: takeown /f "C:\System Volume Information" /R /A then cacls "C:\System Volume Information" /T /C /E /P Administrators:F and now just delete it by a simple command del "C:\System Volume Information\Sample File.txt" that's it!


How to remove Notepad file which loads every time I boot: [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\s hell32.dll,-21787
This happens if the Hidden attribute for the desktop.ini file is somehow removed. Follow these steps to resolve the problem: Open an elevated Command Prompt window. To do so, click Start, click All Programs, clickAccessories, rightclick Command Prompt, and then click Run as administrator. Type the following commands below and press ENTER after typing each command. (You may copy the text below and paste it in the Command Prompt window.) attrib +s +h "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini" And then run the following command: attrib +s +h "%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini" Type EXIT and then press enter to close the Command Prompt window. Hope this information is helpful. Please let us know if you require further help. Regards Rehman Microsoft Support

Fix The Windows 7 Desktop.ini Bug

The easiest way to fix is by following this guide:

Press [Windows R] to open the run dialog and enter shell:startup in the form. Press Enter afterwards. This will open a Windows Explorer window that is display the startup folder of the Windows 7 operating system. Change the Windows Explorer settings to enable the display of protected operating system files. Easiest way to go there is to press [ALT] then [T] and then [O]. Click on the view tab and uncheck the option to hide protected operating system files The desktop.ini file should now appear in the Windows 7 startup folder. Delete the file from that folder. Navigate to C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup and delete desktop.ini file there as well. Change the setting to hide protected operating system files again Restart the computer or log off and on again to see if the changes have been effective