New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Detect File SystemExpand / Collapse
Author
Message
Posted 11/27/2005 10:24:00 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Yesterday @ 3:59:15 AM
Posts: 15, Visits: 105
Is it possible to determine what File system is on a Harddisk (Fat32 or NTFS) in a configuration group ??
Post #1136
Posted 11/30/2005 9:56:00 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Yesterday @ 3:59:15 AM
Posts: 15, Visits: 105
We want to check the file system on the second partition (D
I used the GetFileSystem.vbs to solve the problem.

But still it would be nice to get FS info for every local disk/partition and not only 1.
Post #1142
Posted 12/29/2005 5:21:00 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2 days ago @ 2:43:01 PM
Posts: 657, Visits: 797
Similar to GetFileSystem.vbs, the first thing that needs to be done is to create a text file like the following:

********************************************************
strComputer = "."
set shell = WScript.CreateObject( "WScript.Shell" )
const HKEY_LOCAL_MACHINE = &H80000002
strKeyPath = "SOFTWARE\Lanovation\Prism Deploy"
strFileSystemValue = ""

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\default:StdRegProv")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
("Select * from Win32_LogicalDisk")
For Each objDisk in colDisks
If objDisk.Description = "Local Fixed Disk" THEN
strValueName = objDisk.Caption & " File System Type"
strFileSystemValue = objDisk.FileSystem
RegResult = objReg.SetStringValue(HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strFileSystemValue)
End If
Next
***********************************************************

Save this text file as GetFileSystemLocalFixedDisks.vbs to a network shared location. Then, create a Prism Command Task that calls the Windows Scripting Host and passes it the VBScript that was just created. For example:

cscript.exe \\server\share\GetFileSystemLocalFixedDisks.vbs

Then you simply need to paste the following into a new Predefined Configuration Group (rather then using one of the options in the drop down list):

"HKLM\SOFTWARE\Lanovation\Prism Deploy\\C: File System Type"

Create two or three more (depending on the number of local drive a machine may have) that look like:

"HKLM\SOFTWARE\Lanovation\Prism Deploy\\D: File System Type"

"HKLM\SOFTWARE\Lanovation\Prism Deploy\\E: File System Type"

Now, all the computers that have the VBScript Task assigned will create local registry values that contains the File System Type of their local fixed disks. Those computers will then add themselves to the desired Configuration Group(s).




New Boundary Technologies Support
support@newboundary.com

Post #1160
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:34am

Powered By InstantForum.NET v4.1.3 © 2008
Execution: 0.172. 12 queries. Compression Enabled.