Link to home
Start Free TrialLog in
Avatar of CCtech
CCtechFlag for United States of America

asked on

SAP saplogon.ini force for all users

Hello Experts, I'm hoping there are some SAP experts on here.
We manage a terminal server environment for a company who uses SAP GUI to access their SAP database. SAP GUI version 7_40, Servers are running Server 2012 R2.
We need to direct all users to the same saplogon.ini configuration file. Currently every time they have a new employee the user needs to individually create their multiple connections to the multiple SAP servers. The configuration is user specific, I believe stored in appdata.
How can we force all users to point to the same ini file? Thanks in advance!
Avatar of kevinhsieh
kevinhsieh
Flag of United States of America image

You can use a login script with GPO loopback processing to copy the file to the correct location. Assign the GPO to the terminal server OU, but you need to enable GPO loopback processing. Otherwise, a regular login script works.
Use a compatibility script to place a preconfigured initial file in the user's correct location in the correct location in their profile.  

I wrote this article a while back, and it still applies - https://www.experts-exchange.com/articles/9235/How-USRLOGON-CMD-processing-works.html

A simple batch file is plenty.. something like:
if exist %appdata%\sap\sapgui.ini (echo.) else (md %appdata%\sap && copy <source>\sapgui.ini %appdata%\sap)

Open in new window


Obviously, you can make something fancier (like a vbscript, etc.), and then you would simply call your batch file from c:\windows\system32\usrlogn1.cmd.  (check the article).

You won't need a GPO, etc.  this method won't have any external dependencies.

Coralon
Avatar of CCtech

ASKER

Thanks for the input, we were considering originally a logon script but were looking for an SAP solution, so we did not have to rely on logon scripts. I would liek to keep this open for a few days and see if there are any other alternatives. Thank you.
Avatar of CCtech

ASKER

Hi Coralon, We are still looking for a way to accomplish this and it looks like a logon script or the compatibility script is the only way to do so.

What would the batch file look like that will overwrite their SAP configuration file? We are moving servers across subnets so we need to change the IP in the config files for everyone again, so the config file will need to overwrite their current. Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Coralon
Coralon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CCtech

ASKER

Thanks We will give that a shot.