setServiceEnvironment
setServiceEnvironment(
variables):void
Parameters
variables
Record<string, string | null>
Returns
void
Description
Persists environment variables of the Documents service in the registry. A value of
null removes the variable. The changes become active only after a restart of the service.
The values are handed over to PowerShell through a transport file that PowerShell itself creates with a restrictive ACL - passing them on the command line would expose them in the process list.