Nov.DS.Object.CopyProperties
Top  Previous  Next


Copies specified properties from one object to another

Use Nov.DS.Object.SetProperty to set single properties.

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

Category
Novell

Script section
All

Nov.DS.Object.CopyProperties SrcNDSObjectPath, TrgtNDSObjectPath, PropertyList

SrcNDSObjectPath
Full NDS path to source object  

TrgtNDSObjectPath

Full NDS path to target object  
 
ListOfProperties
List of properties, Format: property name + "§" after each entry.  
Example: NDSpropertyName1§NDSpropertyName2§  
 
Some interesting "special" properties:  
·Login Allowed Time Map - logon time restrictions  
·Network Address Restriction - network address restrictions  
 
The easiest way to find out correct property names for accounts is probably to use SetupExplorer, see How to display all existing properties for one account.  
 
Example
Copy properties from account "templateacc" in "MyOU" OU to accounts "acc1", "acc2" and "acc3" in "MyOU\OU3" OU

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

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

SET NDSourceObject=%NDRoot%\templateacc
[Settings_End]

[Batch_Begin]
Data.Loop   
 Nov.DS.Object.CopyProperties %NDSourceObject%, %NDOUPath%\%col1%, Login Allowed Time Map§Login Expiration Time§Login Maximum Simultaneous§Network Address Restriction§   
Data.EndLoop   
[Batch_End]

[Data_Begin]
acc1   
acc2
acc3
[Data_End]