Nov.Vol.Quota.Set
Top  Previous  Next


Sets disk quota on a NetWare volume for a user or a group

Requirements
·NetWare client on the local machine, log on as admin  
·Novell controls  

Category
Novell

Script section
All

Nov.Vol.Quota.Set Volume, NDSObjectPath, Limit

Volume
Server and volume  
 
NDSObjectPath
Full NDS path to user or group object to be restricted  

Limit
Amount of diskspace (kilobytes) to be assigned to the object  
Range: 0 - 1000000000 (953,67 GB)  

Example
Set (10 MB) and remove quota on volume \\homer\sys for accounts "acc1", "acc2" and "acc3" in "MyOU\OU3" OU


[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=2

SET AccountName=%col1%

SET NDRoot=ELM\MyOrg\MyOU
SET NDOU=OU3
SET NDOUPath=%NDRoot%\%NDOU%

SET HomeVolume=\\homer\sys
[Settings_End]

[Batch_Begin]
Data.Loop   
 Nov.Vol.Quota.Set %HomeVolume%,%NDOUPath%\%AccountName%,10240
Data.EndLoop   
[Batch_End]

[Undo_Batch_Begin]
Data.Loop   
 Nov.Vol.Quota.Remove %HomeVolume%,%NDOUPath%\%AccountName%   
Data.EndLoop   
[Undo_Batch_End]

[Data_Begin]
acc1
acc2
acc3
[Data_End]