How to override settings in workbench.ini and config.ini from command prompt

Document ID : KB000099946
Last Modified Date : 11/06/2018
Show Technical Document Details
Introduction:
We are moving forward with putting Windows 10 on our developer boxes, but for some reason Harvest maps the user location to some place on the network, which causes Harvest to not work. 
This can be mitigated by changing the following lines in the config.ini file in C:\Program Files\CA\SCM\configuration\ 

osgi.configuration.area=@user.home/.cascm/configuration 
osgi.instance.area.default=@user.home/.cascm/workspace 

For some reason, while logged in as admin, these correctly go to the C:\Users\<<username>> directory, but while logged in as a normal user, as I said before, these go off to the network. 

I can hardcode these locations as such: 

osgi.configuration.area=C:/Projects/harvest/.cascm/configuration 
osgi.instance.area.default=C:/Projects/harvest/.cascm/workspace 

And it works. However, this means that every user is using the same workspace, which isn’t ideal. 
I’ve tried to use the following instructions for eclipse to code a variable in there, but I’m having issues: 

https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html 

What I end up with is something like osgi.configuration.area= $LOCALAPPDATA$/.cascm/configuration but when I open Harvest, it doesn’t substitute the $LOCALAPPDATA$ with the windows environmental variable. 

Is there anything you can share that might shed light on what to do in this situation?
Environment:
CA Harvest SCM client v12.x and up
Windows platform, 
Instructions:
Something you can do to make the .cascm folder appear in an alternate location, specific for each user, is override the settings in the config.ini and workbench.ini files from the command prompt. So, for example, if you went to the "Properties" window for the Workbench shortcut on the desktop and replaced 

"C:\Program Files\CA\SCM\workbench.exe" 

with 

"C:\Program Files\CA\SCM\workbench.exe"-data c:/temp/%USERNAME%/.cascm/workspace -configuration c:/temp/%USERNAME%/.cascm/configuration -eclipse.keyring c:/temp/%USERNAME%/.cascm/keyring.txt

the .cascm folders for your users would wind up in the C:\Temp\<their userid> folder instead of C:\Users\<their userid> 
 
 
Additional Information:
More information on command line options for Eclipse-based applications can be found here: https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html