KSC Open API
Kaspersky Security Center API description
PolicyProfiles::RenameProfile ( int  nPolicy,
wstring  szwExistingName,
wstring  szwNewName 
)

Rename profile.

Changes the name of the existing profile.

Parameters:
nPolicy(int) policy id
szwExistingName(wstring) existing profile name
szwNewName(wstring) new profile name, a non-empty string, up to 100 unicode characters
Exceptions:
Throwsexception if KLSSPOL_PRF_PROTECTED is set to true or profile with szwNewName does not exist
See also: