projectnew Wrote:
> then how can i restore to the default permission?
Practically is very difficult fully restore permissions in Vista - a
big obstacle are very subtle permissions.Yes of of course there commands
*takeown,icacls* to do it - with ownership shouldn't be any problems but
with permissions -yes.See for example this thread:
http://www.vistax64.com/vista-genera...terminate.html
I've tried restore permissions by using command *icacls* -although my
scripts theoretically are fully correct practically fail on
*C:\Windows*. When script meet some file which is busy -system refuse
changing permissions for this file -returns error "access denied"
although you are already the owner of this file - interesting:in this
situation there is no problem to change permissions for this file by
using classic
method:
http://www.vistax64.com/tutorials/67...ship-file.html
http://www.vistax64.com/tutorials/15...rmissions.html
:sleepy:
But what important:if this kind of script meet error and can't change
permissions for any file -all operation are stopped and don't work later
although sometimes can return "success" but really there is no any
success.Untill now I thinking (without any destination) how to fully
restore permissions but untill now I don't know resolve.
If you have any trouble with permissions you should describe your
problem - there is also tool 'Process Monitor'
(
http://technet.microsoft.com/en-us/s.../bb896645.aspx) which
use to detect trouble with permissions
--
Flavius