Can we trigger a script from a databricks notebook to the windows remote machine(in VPN)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 09:53 PM
- Labels:
-
Databricks notebook
-
Init script
-
Notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 10:37 PM
@Ratna Chaitanya Raju Bandaru
It's doable.
For example you can use SSH to connect to the windows machine and run your scripts in there (SSH client needs to be installed on the Win machine)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 02:44 AM
@Daniel Sahal ,
Thanks for your quick response, if there is any blog or documentation or any stackoverflow link can you please help me with the same, so it can be useful for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2023 10:52 PM
@Ratna Chaitanya Raju Bandaru
Here's how to install OpenSSH on WIN:
https://woshub.com/connect-to-windows-via-ssh/
Then you can just simply SSH to your machine from Databricks:
%sh
ssh -p PORT USER@DOMAIN.COM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 11:42 PM
@Daniel Sahal , thanks for the update.
Is there any possibility this can be done using PowerShell i.e connect the server by executing Powershell script in databricks notebooks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 10:44 PM
@Ratna Chaitanya Raju Bandaru
You can try to install pwsh on the cluster, but i'm not sure if this will behave same as on Windows machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 10:00 PM
Hi, have you found any way to do it? i have the same requirement and not able to find any meaningful solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:25 AM
Hi @Ratna Chaitanya Raju Bandaru
Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best? If not, please tell us so we can help you.
Thanks!

