myselfidem Posted November 12, 2011 Posted November 12, 2011 (edited) Change to:@echo offcmd /c TAKEOWN /F "%systemdrive%\Windows\Help\Help\en-US" /R /D Y && ICACLS "%systemdrive%\Windows\Help\Help\en-US" /grant:r Brian:F /Trmdir /s /q "%systemdrive%\Windows\Help\Help\en-US"pausemy output command:Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help.h1c" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help.H1T" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help_AssetId.H1K" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help_BestBet.H1K" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help_LinkTerm.H1K" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\Help_SubjectTerm.H1K" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\resources.H1S" appartientdésormais à l'utilisateur "AntoinePC\Antoine".Opération réussie : le fichier (ou dossier) : "C:\Windows\Help\Help\fr-FR\stopwrds.stp" appartientdésormais à l'utilisateur "AntoinePC\Antoine".fichier traité : C:\Windows\Help\Help\fr-FRfichier traité : C:\Windows\Help\Help\fr-FR\Help.h1cfichier traité : C:\Windows\Help\Help\fr-FR\Help.H1Tfichier traité : C:\Windows\Help\Help\fr-FR\Help_AssetId.H1Kfichier traité : C:\Windows\Help\Help\fr-FR\Help_BestBet.H1Kfichier traité : C:\Windows\Help\Help\fr-FR\Help_LinkTerm.H1Kfichier traité : C:\Windows\Help\Help\fr-FR\Help_SubjectTerm.H1Kfichier traité : C:\Windows\Help\Help\fr-FR\resources.H1Sfichier traité : C:\Windows\Help\Help\fr-FR\stopwrds.stp9 fichiers correctement traités ; échec du traitement de 0 fichiersAppuyez sur une touche pour continuer... Edited November 12, 2011 by myselfidem
IcemanND Posted November 13, 2011 Posted November 13, 2011 Are you running it as administrator? Not meaning as an administrator user but by elevating permissions? Right click the cmd script and select Run as Administrator.
mecivic Posted November 13, 2011 Author Posted November 13, 2011 Are you running it as administrator? Not meaning as an administrator user but by elevating permissions? Right click the cmd script and select Run as Administrator.No I wasn't, I Run as Administrator and both codes from myselfidem worked.I want to thank you all for your help much appreciated.Sorry but I have 1 more question.Can the Run as Administrator be taken over also without the User Account Control Confirmation, without changing it manually in the User Account Control Settings.
myselfidem Posted November 15, 2011 Posted November 15, 2011 I found some answers with Google:http://www.sevenforums.com/system-security/17528-command-line-argument-admin-rights.htmlhttp://social.technet.microsoft.com/Forums/en-US/ITCG/thread/310e57f9-2367-4293-9f97-53d0e077aacc/Tested with "no success": always asking for a password!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now