Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

How do I rebuild the 8.3 filenames (shortnames) using Powershell?

Closed Thread
 
Thread Tools Display Modes
Old 07-18-2007   #1 (permalink)
tim.teller@gmail.com
Guest


 

How do I rebuild the 8.3 filenames (shortnames) using Powershell?

Hello.

We have a CIFS share behind our NAS gateway. The CIFS volume is 2T in
size. Recently we had to apply a firmware update to our NAS gateway
to resolve an issue we had, but doing so, corrupted the 8.3 Filenames,
which some legacy applications use.

The only way we have been able to fix this is by renaming a directory
and then renaming it back to regenerate the 8.3 folder name hash.

I have opened a call with Microsoft, but they don't have a resource
tool that can fix the filesystem. Our Unix admins are looking at a
script that we received from the NAS vendor, but doesn't work
properly.

Requirements:

Rebuild all long files and folders DOS 8.3 filenames
Preserve the Creation date, access time, and modified time stamps

Does anyone know how to do this?

Thanks,
Tim Teller

Old 07-18-2007   #2 (permalink)
Jason
Guest


 

Re: How do I rebuild the 8.3 filenames (shortnames) using Powershell?

Hi Tim:

> Rebuild all long files and folders DOS 8.3 filenames
> Preserve the Creation date, access time, and modified time stamps


Try the following to see some syntax examples:

fsutil.exe file setshortname /?

This command appears to not change any of the timestamp fields, but you will
have to choose the shortname yourself by some other method, e.g., your own
8dot3 function or maybe XCOPY /L /N, etc.

Hope this helps!

Cheers,
Jason


------------------------------------------------------
PowerShell Training at SANS Conferences
http://www.WindowsPowerShellTraining.com
------------------------------------------------------


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
filenames with [ characters Umesh Thakur PowerShell 22 12-05-2007 01:28 PM
how to rebuild mediaid.bin Zappy Vista performance & maintenance 2 11-14-2007 02:26 PM
icons rebuild gln Vista General 4 10-19-2007 11:25 AM
How do I rebuild the 8.3 filenames (shortnames) using Powershell? tim.teller@gmail.com PowerShell 0 07-18-2007 05:20 PM
WMI Rebuild Kevin Vista General 0 04-14-2007 02:38 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50