cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Execute command from PowerShell

4,809

I have no experience with SAP, but I should create a PowerShell script. I've taken a look at the SAP community and found some examples like https://blogs.sap.com/2015/09/26/how-to-use-powershell-for-automated-login-to-sap/ which explain how to log on to the SAP GUI. In addition to that, I should be able to execute a command from CLI. The command is:

.\sapshcut -system=EHD -client=102 -user=myUserName -PW=myPass -maxgui -command="va03"

Is it possible to execute this command after the logon thru the PowerShell script?

Thanks

View Entire Topic
0 Likes

Hello Stefan,

sorry for the delay in response, but I was on vacation. Once again thanks for clarifying the needs for my case.

Best regards,

Vladimir