Pages

Monday, December 5, 2011

Give permission to file in windows 7




To take ownership of the file, you’ll need to use the takeown command. Here’s an example:


takeown  /f  C:\Windows\System32\en-US\winload.exe.mui

That will give you ownership of the file, but you still have no rights to delete it. Now you can run the cacls command to give yourself full control rights to the file:


cacls  C:\Windows\System32\en-US\winload.exe.mui  /G  geek:F

Note that my username is geek, so you will substitute your username there.

How to enable/disable hidden administrator account in windows 7 or vista




1)Enable hidden administrator account


open cmd as administrator by right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box)






then type in  


net user administrator /active:yes


now you can see following screen






now logout from current user account.then you can see  the Administrator account as a choice.













2)Disable administrator account 


Make sure you are logged on as your regular user account, and then open cmd as administrator and type in


net user administrator /active:no






so now administrator account is disabled.