CCtech
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!
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!
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-exchan ge.com/art icles/9235 /How-USRLO GON-CMD-pr ocessing-w orks.html
A simple batch file is plenty.. something like:
Obviously, you can make something fancier (like a vbscript, etc.), and then you would simply call your batch file from c:\windows\system32\usrlog n1.cmd. (check the article).
You won't need a GPO, etc. this method won't have any external dependencies.
Coralon
I wrote this article a while back, and it still applies - https://www.experts-exchan
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)
Obviously, you can make something fancier (like a vbscript, etc.), and then you would simply call your batch file from c:\windows\system32\usrlog
You won't need a GPO, etc. this method won't have any external dependencies.
Coralon
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks We will give that a shot.