Solved

Takeown.exe language problem ?

Posted on 2013-01-31
3
523 Views
Last Modified: 2013-02-08
Hello,

I use the "takeown" command in an elevated CMD or Powershell like this :

takeown /F .\MyFolderName /A /R /D Y

to take ownership of a full directory, but the command stops with this error :


INFO: The system cannot find the path specified. ( "D:\DataUsers\NetShare\Commandes\DOSSIERS\fourniture\photocopieurs\Location de  Photocopieurs\2008 copieurs couleur\Dématérialisation\Location maintenance photocopieurs - CSL_2008_CYhBZfNClM\0300 - Registre, Rapport, PV et décision\registre-retrait.pdf" )

Ok see the bold characters ? This is french characters "é" but in CMD it will be transformed into "," and in Powershell "é". Therefore, I cannot fully use takeown.exe and I'm stuck.

The operating system is a Windows 2008 R2 SP1 US with French language pack installed; Locals are set on French (all locals in Control Panel). Except the interface display.

Do you have any idea ? Thx !
0
Comment
Question by:SIGMAEXPLOIT
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
wshty earned 500 total points
ID: 38838786
try the following command before you rund the takeown.exe via cmd:


chcp 437


or


chcp 1252



this could do the trick

regards
0
 

Author Comment

by:SIGMAEXPLOIT
ID: 38839621
Thank you I'll give you the point but I have I think a last problem.

I still get an error seen on log :

INFO: The system cannot find the path specified. ( "D:\DataUsers\PartagesReseau\DirectionCommandePublique\DOSSIERS\INTELLEC\MAITRISE D'OEUVRE\Aménagement esp extérieurs\Potager\projet initial\Dématérialisation\MOE aire de jeu résidence Potager - CSL_2008_bkWTiOE_Sd\0300 - Registre, Rapport, PV et décision\registre-depot.csv" )

I do not understand, this time...
0
 
LVL 5

Expert Comment

by:wshty
ID: 38867508
sorry for the delay i somehow missed your answer in my emails..

the path has 273 characters - windows supports up to 255 characters of path+filename length - you should shorten filename and path in general this seems to be a little folder-chaos...

regards
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
A procedure for exporting installed hotfix details of remote computers using powershell
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question