Function: vCenter Host System Welcome Message Toggle

by Simon Sparks · 23 March 2026

To use this function add it to the class library file named PluginVCHostSystemService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: PluginVCHostSystemService.ts

Public Function: AnnotationsWelcomeMessageEnable

publicAnnotationsWelcomeMessageEnable(objVcHostSystem:VcHostSystem):boolean{

letstrBannerText:string="UNAUTHORISED ACCESS TO THIS SYSTEM IS STRICTLY PROHIBITED\n\n All data and information held on or in or generated by this system is proprietary and confidential.  Any unauthorised access to, or use or disclosure of, such information is strictly prohibited, and may result in legal action against you, including but not limited to criminal or civil prosecution, to the full extent permitted by applicable law. All use of this system is subject to monitoring, retention and disclosure to the extent permitted or required by applicable law without further notice to you, and accessing the system constitutes your consent to such monitoring, retention and disclosure.";

letblnReturn:boolean=this.AnnotationsWelcomeMessageToggle(objVcHostSystem,strBannerText);

returnblnReturn;
}
TypeScript

Public Function: AnnotationsWelcomeMessageDisable

publicAnnotationsWelcomeMessageDisable(objVcHostSystem:VcHostSystem):boolean{

letstrBannerText:string="";

letblnReturn:boolean=this.AnnotationsWelcomeMessageToggle(objVcHostSystem,strBannerText);

returnblnReturn;
}
TypeScript

Private Function: IPv6Toggle

privateAnnotationsWelcomeMessageToggle(objVcHostSystem:VcHostSystem,strBannerText:string):boolean{

letobjVcOptionValue:VcOptionValue=newVcOptionValue();
objVcOptionValue.value_AnyValue=strBannerText;
objVcOptionValue.key='Annotations.WelcomeMessage';

letarrVcOptionValue:VcOptionValue[]= [];
arrVcOptionValue.push(objVcOptionValue);

letblnResult:boolean=this.ApplyAdvancedSettings(objVcHostSystem,arrVcOptionValue);

returnblnResult;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like