Page 1 of 1 1
Topic Options
#30565 - 2002-10-11 05:24 PM Determine file system type w/o WMI
New Mexico Mark Offline
Hey THIS is FUN
****

Registered: 2002-01-03
Posts: 223
Loc: Columbia, SC
We have some legacy NT systems that are still running with FAT c: partitions. We will be touching all our systems in the next few weeks with some general security changes, and I want to run Convert.exe on those systems, but only if they are FAT. They may or may not have WMI extensions installed.

Is there a straightforward way determine file system type from a script without WMI?

Thanks,

NMM

Top
#30566 - 2002-10-11 05:30 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure... well, should be.
just a sec.
_________________________
!

download KiXnet

Top
#30567 - 2002-10-11 05:36 PM Re: Determine file system type w/o WMI
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The first line of CHKDSK contains the file system. You could then use e.g. WSHPipe to get the results into KIXtart.
_________________________
There are two types of vessels, submarines and targets.

Top
#30568 - 2002-10-11 05:45 PM Re: Determine file system type w/o WMI
New Mexico Mark Offline
Hey THIS is FUN
****

Registered: 2002-01-03
Posts: 223
Loc: Columbia, SC
Thanks. That would work, but I'm looking for a little less time consuming method, as chkdsk takes a while to run, even in read-only mode. (I know... picky, picky.)

Let me poke around in the resource kit to see if there is a utility there. If you have another ace up your sleeve, though, I'm interested. [Smile]

Mark

Top
#30569 - 2002-10-11 05:47 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
filesystem... windows3.1 compliant...

can't test, would need a machine which such systemdisk.
_________________________
!

download KiXnet

Top
#30570 - 2002-10-11 05:52 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mark, check convert.
it seems good enough [Razz]

if you write on commandpromt:
convert %systemdrive% /fs:NTFS

it says: "drive c: already is NTFS"

so, making it:
convert %systemdrive% /fs:NTFS >NUL

you can call it whenever you want and as many times you want.
and, it's not WMI [Wink]
 
_________________________
!

download KiXnet

Top
#30571 - 2002-10-11 05:54 PM Re: Determine file system type w/o WMI
New Mexico Mark Offline
Hey THIS is FUN
****

Registered: 2002-01-03
Posts: 223
Loc: Columbia, SC
Hey, the simplest solutions are the best. Sounds great.

FWIW, srvinfo.exe from the 2K resource kit returns a slew of good information that could be piped into a KIX script.

Thanks all!

Mark

Top
#30572 - 2002-10-11 06:04 PM Re: Determine file system type w/o WMI
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
win xp prof utility?

fsutil fsinfo [volumeinfo] RootPathname
_________________________
We all live in a Yellow Subroutine...

Top
#30573 - 2002-10-11 06:05 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
waltz, does that support remote?
_________________________
!

download KiXnet

Top
#30574 - 2002-10-11 06:08 PM Re: Determine file system type w/o WMI
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
dunno, haven't used it, just found a reference to it here --- FSUTIL
_________________________
We all live in a Yellow Subroutine...

Top
#30575 - 2002-10-11 06:11 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it seems that it might, but no info given there...
also, if it does, does it need the remote computer to support wmi etc...
_________________________
!

download KiXnet

Top
#30576 - 2002-10-11 06:15 PM Re: Determine file system type w/o WMI
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
It's fast and does work remotely - I tested on a wmi enabled remote machine on both an NTFS and a FAT drive.

To do: test on a non-wmi enabled machine

FYI...
I mapped X: to the remote machine and entered ' fsutil fsinfo volumeinfo x:\ ' at the dos command line.

[ 11. October 2002, 19:32: Message edited by: Waltz ]
_________________________
We all live in a Yellow Subroutine...

Top
#30577 - 2002-10-11 07:35 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm... still, it is dos tool...

quess the convert itself is the best.
it can be run from logonscript and it sets the @error for information collection so no dos pipes needed.
_________________________
!

download KiXnet

Top
#30578 - 2002-10-11 07:50 PM Re: Determine file system type w/o WMI
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
six of one, half-dozen of the other?
not that it matters, but aren't we both parsing a returned string from a dos command?
_________________________
We all live in a Yellow Subroutine...

Top
#30579 - 2002-10-11 08:31 PM Re: Determine file system type w/o WMI
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nope.
with convert all you need to do (no installs, no tools):
shell "%comspec% /C convert %systemdrive% /fs:NTFS >nul"

then if you want to create somekind of check info:
shell "%comspec% /C convert %systemdrive% /fs:NTFS >nul"
if @error=4 "already ntfs" endif

no parsing [Wink]
_________________________
!

download KiXnet

Top
#30580 - 2002-12-05 02:51 PM Re: Determine file system type w/o WMI
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Another way is by using our script disksize.zip, which you can find on our site.

Related topic KIX-SCRIPT: how to determine your local disk configuration (fe. HPFS,NTFS,FAT) + size
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 153 anonymous users online.
Newest Members
SERoyalty, mytar, Gabriel, Alex_Evos, Dansen
17869 Registered Users

Generated in 0.069 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org