Modify NFS Server Settings

Demonstration script that modifies a Services for UNIX NFS server setting.

VBScript Code


On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\sfuadmin")

Set colItems = objWMIService.ExecQuery _
    ("Select * from NFSServer_SvSet Where KeyName = 'Parameters'")

For Each objItem in colItems
    objItem.CaseSensitive = 0
    objItem.Put_
Next