More

    How to Deploy & Run Powershell Scripts Using Scalefusion

    Share On

    Windows PowerShell is one of the most powerful cross-platform task automation solutions which simplifies and automates configurations for almost any tasks in the Windows ecosystem. With solutions packed with a designed command-line shell, scripting language and configuration management framework, the process of automation such as adding network drives, installing apps, uploading security software and granting a new user access to shared files can be streamlined.

    Deployment of PS scripts with SF
    Configure the deployment of PowerShell Scripts with Scalefusion

    Due to its best features over other shells and modern command of accepting and returning .NET objects, it has become the most popular tool among system admins and experienced Windows users. To enhance Windows Device Management, Scalefusion MDM enables IT to upload PowerShell script files and execute them remotely by pushing them on managed Windows 10 devices.

    In this article, we will explore the step-by-step process of how the PowerShell scripts can be uploaded and deployed on the managed Windows devices using Scalefusion.

    How to deploy & run PowerShell scripts using Scalefusion

    Essentials to getting started

    1. To begin with, you need to create a Windows device profile in the Scalefusion dashboard and enroll in a Windows 10 device.

    2. You need to make sure that the Windows 10 version should be 1809 or above and must be of either edition – Windows Pro, Business, Enterprise, and Education editions.

    3. You need to check if the Scalefusion MDM agent is installed in the enrolled Windows device, if not, then please do that before stepping further.

    4. You need to make sure that the required storage space is available in the Enterprise store.

    5. You need to collect the following details from the developer along with the Enterprise app package:

    • Powershell script (.ps1) file
    • Also, the file size should be less than 1GB

    Step 1:

    We aim to upload and install a PowerShell script by following the steps mentioned below.

    Sign in to the Scalefusion dashboard and then navigate to the Application Management tab under the features menu on the left-hand side. Click on the Enterprise Store and then move the cursor to click on Upload New App. Then click on “upload Windows App”

    How to Deploy & Run Powershell Scripts Using Scalefusion

    Step 2:

    Choose PowerShell (PS1) from the drop-down and upload the PS1 file that will execute the script.

    How to Deploy & Run Powershell Scripts Using Scalefusion

    Step 3:

    After selecting the PowerShell (PS1) from the dropdown, the Windows PowerShell Scripts wizard will initiate the uploading process. Here are the steps of uploading the file:

    1. Enter the PowerShell Script name: It will allow you to identify the Device Profiles.

    2. Upload the PowerShell Scripts file: You can choose either of the options to upload the script file into the dashboard. These steps are –

    • Upload Local File: If you have the PS1 file available locally, you can select and upload it from there.
    • PS Script file URL: If you have the file in the host server or have uploaded the file in the cloud servers whose links are accessible to you publicly, then you can use the link to upload the file.
    How to Deploy & Run Powershell Scripts Using Scalefusion

    Step 4:

    Now, you will have to select the modes in which you want the script to be executed while uploading from the following dropdown:

    • Run as a Background: You can choose this option for executing the scripts only if you don’t require UI operations and the command is running in the background without occupying the console. Examples of such mode include running the script for Adding User, Enable/Disable USB, Enable/Disable Windows Update, etc.
    • Run as Foreground: You can choose this option if the Scripts based on the UI is being executed and is occupying the console or screen activity such as launching notepad, changing wallpaper which can run in the foreground.
    How to Deploy & Run Powershell Scripts Using Scalefusion

    Step 5: 

    You can select a custom logo and upload it which you want to attribute to the script file. If you don’t upload any customized logo, the default logo will be saved.

    Then, click Save.

    How to Deploy & Run Powershell Scripts Using Scalefusion

    Step 6:

    After clicking on Save, Scalefusion will process the script and save it after successful processing. Now, you can select the device profile in which you want to publish the script and then click publish.

    How to Deploy & Run Powershell Scripts Using Scalefusion

    Closing lines…

    PowerShell is one of the most used shell-scripting languages and Scalefusion MDM is streamlining this powerful tool for task automation and simplifying configuration with the combination of command-line speed, and the flexibility of scripting for automating any task in the Windows environment.

    Ayush Maskara
    Ayush Maskara
    Ayush Maskara is a Content Writer at Scalefusion. A media science graduate, a photographer, a fiction author, a storyteller, fiction manuscript editor, and an avid self-help reader, Ayush has been penning the creative wisdom for six years and have stepped into the IT domain for further exploration and staying awake with technological trends across the globe.

    Latest Articles

    Top Desktop Management Software in 2024

    As we head towards the end of 2024, the security of desktop computers and endpoints continues to be a serious concern for businesses. With...

    Effective Best Practices for IT Teams Managing Macs in Hybrid Work

    Juggling while riding a bike is tough but not impossible. Just like that, managing Mac devices in a hybrid work environment is a hassle...

    9 Ways a Cloud-Based Secure Web Gateway Protects Endpoints

    Endpoint security is a critical aspect of an organization's overall cybersecurity strategy. It focuses on protecting devices such as laptops, smartphones, tablets, and other...

    Latest From Author

    11 Must Know Last Mile Delivery Software for Logistics Business 2024

    Last mile delivery software helps in logistics in the last stage of the delivery process, making it one of the most critical stages for...

    Hybrid Working: How Enterprises Can Successfully Handle the New Normal

    A global workforce sipping coffee in pajamas, conquering tasks from the comfort of their homes while seamlessly attending in-office meetings. The term is "hybrid...

    How To Deploy Win32 Apps in Managed Windows Devices

    With Windows 10 & 11, businesses are bound to encounter changes/upgrades in intervals like - built-in mobile management APIs, more frequent cloud updates, modern...

    More from the blog

    Effective Best Practices for IT Teams Managing Macs in...

    Juggling while riding a bike is tough but not impossible. Just like that, managing Mac devices in a hybrid...

    9 Ways a Cloud-Based Secure Web Gateway Protects Endpoints

    Endpoint security is a critical aspect of an organization's overall cybersecurity strategy. It focuses on protecting devices such as...

    Elevate Your Experience: Know How to Install Android Apps...

    Consider you’ve just unboxed your new Chromebook, eager to see how this sleek device can simplify your daily tasks....