New Boundary Support Forum
Home
Search
Members
Calendar
Who's On
Welcome Guest
(
Login
|
Register
)
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
»
Prism Deploy & Prism Pack
»
Configuration Group Rulesets
»
Detect File System
Detect File System
Rate Topic
Display Mode
Topic Options
Author
Message
Eric Hofland
Eric Hofland
Posted 11/27/2005 10:24:00 PM
Junior 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
Eric Hofland
Eric Hofland
Posted 11/30/2005 9:56:00 PM
Junior 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
New Boundary Support
New Boundary Support
Posted 12/29/2005 5:21:00 PM
Supreme 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 Topic
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators:
New Boundary Support
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
may
send private messages.
You
cannot
send email's.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Forum Jump...
----------------
Forum Home
Search
Members List
Calendar
Who's Online
----------------
Prism Suite 7
|-- Prism Asset Management
|-- General Discussion
Prism Deploy 6
|-- General Discussion
Prism Deploy & Prism Pack
|-- General Discussion
|-- Package Deployment
|-- Package Creation
|-- Configuration Group Rulesets
|-- Feature Requests
|-- Tips and Tricks
|-- Installation Questions
Prism Patch Manager
|-- Tips and Tricks
|-- General Discussion
|-- Feature Requests
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.