cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to run Powershell file script.ps1 using the databricks notebook

sandeephenkel23
New Contributor III

Hello All,

Following command on running through databricks notebook is not working 

Command

%sh
# Bash code to print 'Hello, PowerShell!'
echo 'Hello, PowerShell!'
# powershell.exe -ExecutionPolicy Restricted -File /dbfs:/FileStore/Read_Vault_Inventory.ps1
 
It;s throwing the following error:
output
Hello, PowerShell!
bash: line 3: powershell.exe: command not found
 
Kindly give some insights how to run the .ps1 file stored in dbfs file store or how to run the powershell commands through databricks notebook
0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group