Skip to content
SecPod  – Documentation
  • Docs Home
  • Categories
    • Saner Platform
    • Saner Cloud
    • Saner CVEM
    • Security Intelligence
  • More
    • About SecPod
    • Blog
    • Security & Privacy
    • Support Center
    • Resources
  • SCHEDULE A DEMO
  • Toggle website search
Search this website
Menu Close
  • Docs Home
  • Categories
    • Saner Platform
    • Saner Cloud
    • Saner CVEM
    • Security Intelligence
  • More
    • About SecPod
    • Blog
    • Security & Privacy
    • Support Center
    • Resources
  • SCHEDULE A DEMO
  • Toggle website search
  • Docs Home
  • Categories
    • Saner Platform
    • Saner Cloud
    • Saner CVEM
    • Security Intelligence
  • More
    • About SecPod
    • Blog
    • Security & Privacy
    • Support Center
    • Resources
  • SCHEDULE A DEMO

Saner Platform

  • Saner Platform Release Notes
    • Saner Platform Integration Release: ServiceNow Integration Introduced, Freshservice Enhanced
    • Release Notes Saner 6.4.1
    • Release Notes SanerNow 6.4
    • Release Notes SanerNow 6.3.1
    • Release Notes SanerNow 6.3
    • Release Notes SanerNow 6.2.1
    • Release Notes SanerNow 6.2.0.3
    • Release Notes SanerNow 6.2.0.1
    • Release Notes SanerNow 6.2
    • Release Notes SanerNow 6.1.1
    • Release Notes SanerNow 6.1
    • Release Notes SanerNow 6.0
    • Release Notes SanerNow 5.3.1
    • Release Notes SanerNow 5.3
    • Release Notes SanerNow 5.2
    • Release Notes SanerNow 5.1
    • Release Notes SanerNow 5.0
    • Release Notes SanerNow 4.8.0.0
    • Release Notes SanerNow 4.7.0.0
    • Release Notes SanerNow 4.6.0.0
    • Release Notes SanerNow 4.5.0.0
    • Release Notes SanerNow 4.4.0.0
    • Release Notes SanerNow 4.3.0.0
    • Release Notes SanerNow 4.2.2.1
    • Release Notes SanerNow 4.2.2.0
    • Release Notes SanerNow 4.2.1.0
    • Release Notes SanerNow 4.2.0.0
    • Release Notes SanerNow 4.1.1.0
    • Release Notes SanerNow 4.0.0.5
  • Saner Platform Guide
    • Saner Administration Guide
    • Saner Device Management User Guide
    • Saner Platform and ServiceNow Integration Guide
    • Saner Platform and Freshservice Integration Guide
    • Saner Platform Function Guides
  • FAQs
    • Saner CVEM Technical FAQs
  • How Tos
    • General
      • How to increase the subscription count for an Account in Saner CVEM
      • How to increment license count for an Organization in Saner CVEM
      • How to provision Saner tools for an Organization
      • How to change subscription type in Saner CVEM
      • How to sign-up with Saner CVEM?
      • How to create a new account in Saner CVEM?
      • How to create a new user in Saner CVEM?
      • How to enable SSO authentication policy in Saner CVEM?
      • How to set alerts in SanerNow?
      • How to view, download and filter the audit logs?
      • How to designate Saner Agent to perform network scan?
      • How to Co-Brand with your logo?
      • How to fetch the details of the mandatory fields from the Okta account?
      • How to create MFA policy for Okta?
      • How to fetch the details of the mandatory fields from the PingID account?
      • How to create MFA policy for PingID?
      • How to fetch the details of the mandatory fields from the PingOne account?
      • How to create MFA policy for PingOne?
      • How to download and install Saner Agent in Mac?
      • How to download and install Saner agent in Linux?
      • How to download and install the Saner agent in Windows?
      • How to update the expiry date of an existing subscription?
      • How to manage users and their preferences using role-based access?
      • How to uninstall SanerNow Agent using SanerNow Offline deployer tool.
      • How to onboard a new organization?
      • How to deploy SanerNow Agent using SanerNow Offline deployer tool.
      • How to install a Saner agent through the command line?
      • How to uninstall the Saner agent through command line?
    • Saner Reports
      • How to configure mail settings to email Report PDF?
      • How to create a custom report in SanerNow?
      • How to schedule for the report back up?
    • Saner Device Management
      • How to create custom groups in Saner CVEM
    • Saner Mail Settings
      • How to create new mail settings in Saner?
      • How to use OAuth-enabled authentication in Saner mail settings
      • How to create OAuth Client ID and Client Secret for Gmail
      • How to create OAuth Client ID and Client Secret for Microsoft 365.
  • Supported OSs and Platforms
    • Operating Systems and Platforms Supported
    • Supported Third-party Applications for Patching

Saner Cloud

  • Before You Begin
    • Glossary of Terms
    • Read me First
  • Get Started
    • Saner Cloud Deployment Guides
      • Azure Onboarding
      • Troubleshooting
      • Get Started with Saner CNAPP AWS Cloud Deployment V1.0
      • Onboarding with AWS Credentials(Least Recommended Method)
      • Onboarding with AWS Role(Manual)
      • Onboarding with AWS Role CloudFormation (Automatic): Recommended
    • Roles and Permissions
      • Roles and Permissions for AWS Remediation Access
      • Roles and Permissions for Azure Onboarding, Detection, and Remediation
  • Learn About
    • Automation and Job-driven Remediation
    • Cost and Usage
    • Excessive Permission Categories Evaluated Across Different Cloud Services
    • Publicly Accessible Resources
    • Patch Aging and Patch Impact
    • SecPod Default Benchmarks
    • Watchlists
    • Cloud Workload Protection Platform(CWPP)
    • Overview of Report Views in Saner Cloud
    • Whitelisting Resources
    • Saner Plasma AI Assistant for Seamless User Interaction
    • Critical Events to Monitor in AWS
    • High-Privilege Actions in Critical Activity Logs for AWS
    • Audit Logs in Saner Cloud
    • Excessive Permissions
    • Alerts in SanerCloud
  • User Guides
    • Cloud Security Remediation Management(CSRM) User Guide
    • Cloud Infrastructure Entitlement Management(CIEM) User Guide
    • Cloud Security Posture Anomaly(CSPA) User Guide
    • Cloud Security Asset Exposure(CSAE) User Guide
    • Cloud Security Posture Management(CSPM) User Guide
  • Tell Me How
    • How to Remediate in Saner Cloud?
    • How to Configure Automation Rule to Remediate Misconfigurations?
    • How to Manage Report Views at Organization-level in Saner Cloud?
    • How to Get a Cohesive View from Saner Cloud Unified Dashboard?
    • How to Use Tags to Quickly Filter Resources?
    • How to Troubleshoot Issues with Audit Logs?
    • How to Manage Groups and Tags in Saner Cloud?
    • How to Manage Report Views for a User Account in Saner Cloud?
    • How to Troubleshoot or Analyze with Critical Activity Logs?
    • How to Setup Alerts Across SanerCloud Tools?
    • How to Take Action on Alert Notifications from SanerCloud?
    • CSAE
      • How to Setup Watchlist Configuration for a Resource?
      • How to Identify Outdated Resources for Cleanup?
      • How does Resource Categorization Work in Saner CSAE?
      • How to Identify Resources Exposed to External Network?
      • How to Understand the Resource Footprint Globally Across Various Regions?
      • How to Make Informed Decisions on Your Expenditure based on Resource Usage Graph?
    • CSPM
      • How to Setup Benchmarks in Saner CSPM?
      • How to Use Quick Evaluation Benchmarks?
      • How to Detect Patterns over a Period with Resource Trends?
      • How to Assess System Compliance and Security Posture?
    • CSPA
      • How to Initiate Patch Remediation from CSPA Dashboard?
      • How to Quickly Identify the Detected and Remediated Anomalies for an Account?
      • How to Prioritize Remediation or Fixes based on Confidence Levels?
      • How to Examine the Overall Anomaly Information for Specific Rules or Checks?
      • How to Search and Retrieve Anomaly Data?
      • How to Whitelist Rules or Resources in Cloud Security Scans?
    • CIEM
      • How to See the Active Version for an IAM Policy?
      • How to Address Critical Activities Using Evidence?
      • How to View by Type and Usage for any Identity in CIEM?
      • How to Get Visibility into Cloud Entitlements?
      • How to Use Evidence to Address Policies with Excessive Permission?
      • How to Know the Excessive Permissions on a Specific Service?
      • How to Visually See the Relationship between Identity, Entitlement, Policy, or Permission?
      • How to Determine if a Policy has Excessive Permission?
      • How to Initiate Remediation for Different Identities from CIEM?
    • CSRM
      • How to Configure Automation Rule to Remediate Misconfigurations?
      • How to Create a Patching Task for Items Currently in “Approval Pending” State?
      • How to Evaluate Remediation Effort with Patching Impact Chart?
      • How to Prioritize and Address Older or High-Risk Anomalies with Patch Aging?
      • How to Monitor the Overall Status of the Remediation Job?
      • How do I Get to Know the Regions Impacted by a Specific Rule?
      • How to View the Severity of a Missing Patch Affected by a Rule?
      • How to Address Missing Patches Via Remediation Tasks?
      • How to Quickly Access the Necessary Tool for Remediation and Begin Patching Tasks?
  • Frequently Asked Questions
    • Saner Cloud Technical FAQs
  • Saner Cloud Release Notes
    • Saner Cloud – V.1.1.0.0 Release Notes
    • Saner Cloud – V.1.1 Release Notes
    • Saner Cloud – V.1.0 Release Notes
  • Security Intelligence for Saner Cloud
    • Benchmark Compliance Rules in AWS and Azure
      • AWS
        • SecPod Rules in AWS
          • SecPod Default Rules in AWS: An Overview
          • Understand SecPod Default Rules in AWS
          • Understand SecPod Global Rules in AWS
          • Understand SecPod Regional Rules in AWS
        • PCI DSS 3.2.1 Rules in AWS
          • PCI DSS 3.2.1 Rules in AWS: An Overview
          • Understand PCI DSS 3.2.1 Rules in AWS
          • Understand PCI DSS 3.2.1 Global Rules in AWS
          • Understand PCI DSS 3.2. 1 Regional in AWS
        • CIS Rules in AWS
          • CIS Rules in AWS: An Overview
          • Understand CIS Rules in AWS
          • Understand CIS 3.0.0 Rules in AWS
          • Understand CIS 4.0.1 Rules in AWS
          • Understand CIS 4.0.0 Rules in AWS
          • Understand CIS 3.0.0 Global Rules in AWS
          • Understand CIS 4.0.0 Global Rules in AWS
          • Understand CIS 3.0.0 Regional Rules in AWS
          • Understand CIS 4.0.0 Regional Rules in AWS
        • SOC 2 Rules in AWS
          • SOC 2 Rules in AWS: An Overview
          • Understand SOC 2 Rules in AWS
          • Understand SOC 2 Global Rules in AWS
          • Understand SOC 2 Regional Rules in AWS
        • HIPAA HITRUST Rules in AWS
          • HIPAA HITRUST Rules in AWS: An Overview
          • Understand HIPAA HITRUST Rules in AWS
          • Understand HIPAA HITRUST Global Rules in AWS
          • Understand HIPAA HITRRUST Regional Rules in AWS
        • NIST 800-53 Revision 5 Rules in AWS
          • NIST 800-53 Revision 5 Rules in AWS: An Overview
          • Understand NIST 800-53 Revision 5 Rules in AWS
          • Understand NIST 800-53 Revision 5 Global Rules in AWS
          • Understand NIST 800-53 Revision 5 Regional Rules in AWS
      • Azure
        • CIS Rules in Azure
          • CIS Rules in Azure: An Overview
          • Understand CIS 1.2.0 Rules in Azure
          • Understand CIS 2.1.0 Rules in Azure
          • Understand CIS 1.1.0 Benchmark Compliance Rules in Azure
          • Understand CIS 3.0.0 Benchmark Compliance Rules in Azure
          • Understand CIS 1.2.0 Global Benchmark Compliance Rules in Azure
          • Understand CIS 2.1.0 Global Benchmark Compliance Rules in Azure
          • Understand CIS 3.0.0 Global Benchmark Compliance Rules in Azure
          • Understand CIS 2.1.0 Regional Benchmark Compliance Rules in Azure
          • Understand CIS 3.0.0 Regional Benchmark Compliance Rules in Azure
        • NIST 800-53 Revision Rules in Azure
          • NIST 800-53 Revision 5 Rules in Azure: An Overview
          • Understand NIST 800-53 Revision 5 Rules in Azure
          • Understand NIST 800-53 Revision 5 Global Rules in Azure
          • Understand NIST 800-53 Revision 5 Regional Rules in Azure
        • SecPod Rules in Azure
          • SecPod Default Rules in Azure: An Overview
          • Understand SecPod Global Rules in Azure
          • Understand SecPod Regional Rules in Azure
          • Understand SecPod Default Rules in Azure
        • HIPAA HITRUST Rules in Azure
          • HIPAA HITRUST Rules in Azure: An Overview
          • Understand HIPAA HITRUST 14.7.0 Rules in Azure
          • Understand HIPAA HITRUST 14.7.0 Global Rules in Azure
          • Understand HIPAA HITRUST 14.7.0 Regional Rules in Azure
        • PCI DSS Rules in Azure
          • PCI DSS 3.2.1 Rules in Azure: An Overview
          • Understand PCI DSS 4.0 Rules in Azure
          • Understand PCI DSS 4.0 Global Rules in Azure
          • Understand PCI DSS 4.0 Regional Rules in Azure
        • SOC 2 Rules in Azure
          • SOC 2 Rules in Azure: An Overview
          • Understand SOC2 Rules in Azure
          • Understand SOC2 Global Rules in Azure
          • Understand SOC2 Regional Rules in Azure
    • Posture Anomaly Checks in AWS and Azure
      • Implementing Posture Anomaly Checks in AWS
      • Implementing Posture Anomaly Checks in Azure
    • Infrastructure Entitlement Checks in AWS and Azure
      • Implementing Infrastructure Entitlement Checks in Azure
      • Implementing Infrastructure Entitlement Checks in AWS

Saner CVEM

  • Saner CVEM Release Notes
    • Release Notes Saner 6.5
    • Saner Platform Integration Release: ServiceNow Integration Introduced, Freshservice Enhanced
    • Release Notes Saner 6.4.1
    • Release Notes SanerNow 6.4
    • Release Notes SanerNow 6.3.1
    • Release Notes SanerNow 6.3
    • Release Notes SanerNow 6.2.1
    • Release Notes SanerNow 6.2.0.3
    • Release Notes SanerNow 6.2.0.1
    • Release Notes SanerNow 6.2
    • Release Notes SanerNow 6.1.1
    • Release Notes SanerNow 6.1
    • SanerNow Risk Prioritization Launch
    • Release Notes SanerNow 6.0
    • Release Notes SanerNow 5.3.1
    • Release Notes SanerNow 5.3
    • Release Notes SanerNow 5.2
    • Release Notes SanerNow 5.1
    • Release Notes SanerNow 5.0
    • Release Notes SanerNow 4.8.0.0
    • Release Notes SanerNow 4.7.0.0
    • Release Notes SanerNow 4.6.0.0
    • Release Notes SanerNow 4.5.0.0
    • Release Notes SanerNow 4.4.0.0
    • Release Notes SanerNow 4.3.0.0
    • Release Notes SanerNow 4.2.2.1
    • Release Notes SanerNow 4.2.2.0
    • Release Notes SanerNow 4.2.1.0
    • Release Notes SanerNow 4.2.0.0
    • Release Notes SanerNow 4.1.1.0
    • Release Notes SanerNow 4.0.0.5
  • Saner CVEM Guide
    • What’s New in Saner CVEM?
    • Getting Started with Saner CVEM
    • Pre-requisites for Saner CVEM Deployment
    • How does Saner CVEM’s deployment architecture work?
  • Saner CVEM Products
    • Overview of Saner Continuous Vulnerability and Exposure Management
    • Saner CVEM Unified Dashboard User Guide
    • Saner CVEM Asset Exposure User Guide
    • Saner CVEM Continuous Posture Anomaly Management User Guide
    • Data Points IT teams can Fetch from Saner CPAM
    • Posture Anomaly Computation Rules
    • Saner CVEM Vulnerability Management User Guide
    • Saner CVEM Compliance Management User Guide
    • Saner CVEM Risk Prioritization User Guide
    • Saner CVEM Patch Management User Guide
    • Saner CVEM Endpoint Management User Guide
    • Saner CVEM Remote Scripting User Guide
    • Saner CVEM Remote Access User Guide
    • Saner CVEM Network Scanner User Guide
    • Saner CVEM Cyber Hygiene Score User Guide
  • How Tos
    • Saner AE
      • How to blacklist and whitelist applications in Saner AE?
      • How to manage asset licenses using Saner AE?
      • How to run an asset scan using Saner AE?
    • Saner CPAM
      • How to create new response in PA tool?
      • How to build your own detection and response in PA tool?
      • How to whitelist an entire PA ID?
      • How to configure Posture Anomaly tool for custom detection?
      • How to fix Anomalies from PA dashboard?
      • How to fix anomalies detected in your account from All Anomalies Page?
      • How to fix anomalies from PA Summary page?
      • How to delete PA scan preferences?
      • How to schedule PA Scans on Daily, Weekly, and Monthly basis?
      • How to launch Posture Anomaly scans?
    • Saner VM
      • How to automate and schedule vulnerability scans?
      • How to exclude vulnerabilities in Saner VM tool
      • How to manage excluded vulnerabilities in Saner VM?
      • How to remediate vulnerabilities from vulnerability management dashboard?
    • Saner CM
      • How to run a compliance scan?
      • How to custom create a security policy?
      • How to align with PCI security compliance management?
      • How to align with NIST 800-171 security compliance management?
      • How to align with NIST 800-53 security compliance management?
      • How to align with HIPAA security compliance management using Saner CM?
    • Saner PM
      • How to fix firmware in Saner?
      • How to exclude patches in Saner PM?
      • How to manage excluded patches in Saner PM?
      • How to automate patch management in Saner PM?
      • How to roll back patches in Saner PM?
      • How to specify Service Level Agreement (SLA) using Remediation SLA in Saner PM?
      • How to apply missing patches in Saner PM?
      • How to apply the most critical patches in Saner PM?
      • How to perform custom remediation for applications that require paid patches using Saner PM
      • How to check the status of patching activity?
    • Saner EM
      • How to collect all security events from Windows Events Log?
      • How to check password policy set in Windows systems?
      • How to check status of DEP in Windows systems?
      • How to check faulty Anti-Virus (AV) status in Windows systems?
      • How to check for Anti-Virus (AV) status in Windows systems?
      • How to check account lockout policy on Windows systems?
      • How to check if Bit-locker protection is OFF in Windows systems?
      • How to list all inactive users on Windows systems?
      • How to list all guest accounts in Windows systems?
      • How to list all Administrator accounts on Windows systems?
      • How to list last-logon details of users on Windows systems?
      • How to identify all users in Windows systems?
      • How to collect all services that are currently running in Windows systems?
      • How to list all Groups in Windows systems?
      • How to collect all keyboard and pointing devices connected to Windows systems?
      • How to collect all storage devices connected to Windows systems?
      • How to investigate total RAM or CPU threshold (greater than or equal to 80%) in Windows systems?
      • How to collect operating systems information in Windows?
      • How to investigate disks running out of space (<100 MB) in Windows systems?
      • How to collect and investigate disk information on Windows systems?
      • How to collect all installed patches in Windows systems?
      • How to collect all software patches that are hidden in the Windows Update server?
      • How to check the status of Windows Update Server (WSUS/SCCM)?
      • How to collect BIOS information such as serial number, version, manufacturer in Windows systems?
      • How to collect all the important missing patches in Windows systems?
      • How to check wireless security in Linux systems?
      • How to collect mounted disk information on Linux systems?
      • How to check wireless signal quality in Linux systems?
      • How to check all firewall policies on Linux systems?
      • How to collect all Dynamic Host Configuration Protocol (DHCP) information on Linux systems?
      • How to collect DNS information on Linux systems?
      • How to collect ARP entries that are created when a hostname is resolved to an IP address and then to a MAC addressing in Linux?
      • How to check wireless signal quality in Windows systems?
      • How to check wireless security in Windows systems?
      • How to collect all open ports in Windows systems?
      • How to collect all network interfaces in Windows systems?
      • How to investigate DNS cache on Windows systems?
      • How to check all firewall policies on Windows systems?
      • How to collect DNS information on Windows systems?
      • How to collect all the applications with an unknown publisher in Linux systems?
      • How to perform system tuning?
      • How to collect all software licenses in Windows systems?
      • How to identify potentially unwanted programs such as torrent downloaders or unnecessary toolbars running on Windows systems?
      • How to collect a list of applications that are started when you boot your computer?
      • How to collect all the applications with an unknown publisher in Windows systems?
      • How to collect all software licenses in Mac systems?
      • How to collect ARP entries that are created when a hostname is resolved to an IP address and then to a MAC addressing Windows?
      • How to collect all families of operating systems such as Windows, Unix, and macOS?
      • How to collect environment variables set in all operating systems?
      • How to collect all the applications with an unknown publisher in Mac systems?
      • How to delete and quarantine a file?
      • How to start and stop the processes in Saner?
      • How to block blacklisted applications in Saner?
      • How to enable/disable devices in Saner
      • How to manually import devices into Saner?
      • How to deploy software in Saner EM?
      • How to enable and disable firewall settings in Saner AE?
      • How to collect all shared resources on Windows systems?
      • How to collect all Dynamic Host Configuration Protocol (DHCP) information on Windows systems?
      • How to connect to a client machine graphically using Saner Remote Access
  • FAQs
    • Saner CVEM Technical FAQs

Security Intelligence

  • Overview of Security Content and Intelligence
  • Security Content Statistics
  • OVAL Definitions Platform Coverage
  • OVAL Definitions Class-wise Distribution
  • OVAL Definitions Family-wise Distribution
  • Application and OS Remediation Coverage
  • Compliance Benchmark Coverage
  • List of Vulnerability to Exploit/Malware Mapping covered in Saner
  • Network Scanner Product Support Matrix
  • Privilege levels for authenticated scans using Saner Network Scanner
View Categories
  • Home
  • Docs
  • Saner CVEM
  • Saner CVEM Products
  • Saner CVEM Remote Scripting User Guide

Saner CVEM Remote Scripting User Guide

Print Friendly, PDF & Email

Overview

Remote Scripting in Saner Endpoint Management (EM) allows you to securely run and manage custom scripts across Windows, Linux, macOS, and AIX endpoints from a central location.

Remote Scripting enables you to automate tasks, troubleshoot issues, and manage endpoints at scale. It supports multiple scripting languages and includes a built-in editor, version control, and role-based approvals.

Remote Scripting capabilities:

  • Run scripts on Windows, Linux, macOS, and AIX endpoints.
  • Use the built-in script editor with support for multiple scripting languages.
  • Track and manage changes with version control.
  • Enforce secure execution with role-based approvals.
  • Schedule scripts to run on demand, at a set time, or on a recurring basis.
  • View detailed audit logs for every script execution.
  • Use the central script library to access predefined scripts.

Remote Scripting gives you the control and flexibility to automate operations and keep endpoints up to date, all from a centralized interface.

Prerequisites

  • Saner Agent version 6.5 or later is required to use the Remote Scripting feature.
  • Active subscription to Saner EM (Endpoint Management) tool.

Accessing Remote Scripting

Follow the steps below to access Saner Remote Scripting tool.

Step 1: Launch the Saner EM (Endpoint Management) tool. On the Saner EM dashboard, click the Actions button on the top right side of the page.

Step 2: Click the Remote Scripting icon  to launch the Remote Scripting tool dashboard.

You are presented with the Remote Scripting tool dashboard.

Explore Saner Remote Script Editor Features

The Saner Remote Script Editor offers an integrated interface to create, edit, and manage scripts that run on remote endpoints. It supports multiple scripting languages and is tightly integrated with the Saner platform to simplify deployment and execution.

You can write scripts in the following languages:

  • Batch (.bat)
  • PowerShell (.ps1)
  • Bash (.sh)
  • Registry (.reg)
  • Python (.py)
  • VBScript (.vbs)
  • JavaScript (.js)

Saner Remote Scripting Editor provides additional features that help you manage the appearance of the editor and provide AI assistance to assist you with the scripts.

Font Size

You can adjust the font size in the editor by clicking the font size icon in the top-left corner of the scripting editor.

Themes

Saner Remote Script Editor supports multiple themes, including Light, Dark, and High Contrast. To change the theme, click the theme icon in the top-left corner of the editor.

Saner AI Assistant

The Saner Remote Script Editor includes a built-in AI Assistant that provides insights into your scripts. To use it, click the AI Assistant icon in the top-left corner of the editor.

Create a new script using Saner Remote Scripting

Follow the steps below to create a new script using Saner Remote Scripting.

1. On the Remote Scripting Dashboard, click the New button.
A drop-down menu appears.

2. Click New Script.
The Script Editor page opens.

3. From the Language drop-down menu, select the language you want to write the script in.

4. In the Script Name box, enter a name for the script. Depending on the language you chose to write the script, the extension appears next to the script name input box. (Required)

5. In the Script Description box, enter a description of the script. (Optional)

6. In the Script Arguments box, specify any arguments you want to pass to the script. (Optional)

7. From the Script Folder drop-down menu, select the folder where the script should be saved.

8. Click Save to save the script.

The script is saved at the location you specified.

You can choose to save the newly created script in the following locations.

  • None — If you select None, the script is saved in the root directory.
  • Existing Folders — You can choose to save the script in one of the existing folders.
  • +New Folder — If you select +New Folder, you can create a new folder to save the script.
Important: Each script must not exceed 5 MB in size. You can store up to 1,000 scripts per account.

View script version

You can view the script version by hovering over the script name in the Remote Scripting dashboard.

Alternatively, open the script and check the version listed in the Version drop-down box on the Script Editor page.

Note:
You can save up to 20 versions of a script. When this limit is exceeded, the oldest version is automatically deleted.

Create a new folder in Remote scripting

Follow the steps below to create a new folder on the Remote Scripting dashboard.

1. On the Remote Scripting Dashboard, click the New button.
A drop-down menu appears.

2. Click New Folder.

The New Folder pop-up appears.

3. In the Folder Name box, enter a name that contains more than five characters. (Required)

4. Click Save.

The folder with the name you provided is created.

The number of scripts in a folder appears next to the folder name. If the folder is empty, click Add a Script to create a new script. The script is automatically saved in that folder.

Import scripts

Saner Remote Scripting lets you import scripts from one account to another, or within the same account.

Import scripts within the account

1. On the Remote Scripting dashboard, click Import.

The Import Script window appears.

2. From the Source Organization drop-down menu, select the organization that the source account belongs to. (Required)

3. From the Source Account drop-down menu, select the account you want to import the scripts from. (Required)

4. Select the folders that contain the scripts you want to import.

All the scripts present in the folder are listed.

5. Select the script you want to import. Only one script can be imported at a time.

6. From the Destination Folder drop-down menu, select the location where you want the selected script to be imported to.

  • None — Saves the script in the root directory.
  • Same Folder— Creates a folder with the same name as the source folder in the destination account.
  • +New Folder — Creates a new folder to store the script. You must enter a name for the folder.

7. Click Import.

The script is imported to the destination specified in the Destination Folder Option.

Important: You can’t import more than one script with the same name and file extension in the same folder.

Import scripts within the account

1. On the Remote Scripting dashboard, click Import.

The Import Script window appears.

2. From the Source Organization drop-down menu, select the organization the account belongs to.

3. From the Source Account drop-down menu, select the account you want to import the scripts from.

4. Select the folders that contain the scripts you want to import.

All the scripts present in the folder are listed.

5. Select the script you want to import. Only one script can be imported at a time.

6. From the Destination Folder drop-down menu, select the location within the account where you want the selected script to be imported to.

  • None — Saves the script in the root directory.
  • +New Folder — If you select +New Folder, a new folder is created to save the script. You must provide a name for the newly created folder.
Note:
Selecting the Same Folder option in the Destination Folder drop-down menu is not allowed because scripts already exist in that location.

7. Click Import.

The script is imported to the destination specified in the Destination Folder Option.

Upload scripts

Saner Remote Scripting allows you to upload scripts; however, you can import only five scripts at a time.

You can upload the following script file types:

  • PowerShell(.ps1)
  • Bash(.sh)
  • Registry(.reg)
  • Python(.py)
  • VBScript(.vbs)
  • JavaScript(.js)
  • Batch(.bat)
Important: Each script must be 5 MB or smaller to be uploaded.

1. On the Remote Scripting Dashboard, click the Upload button.

The Upload Script page appears.

2. Click Select FILES button.

A dialog box opens. Choose the scripts you want to be upload.

The Upload Script page displays the file name and file type of the selected scripts. You can optionally update the description and arguments for each script.

Click to cancel the script upload.

3. Click the Folder drop-down menu to specify the path where the script will be uploaded. By default, None is selected.

4. Click Upload.

The scripts are uploaded to the folder selected.

Delete scripts

Saner Remote Scripting allows you to delete one or more scripts from the dashboard.

1. Select the checkbox next to the script to delete it.

2. Click Delete.

A confirmation message appears.

3. Click Confirm.

All the selected scripts are deleted.

Important: Deleting a script removes all its versions. This action is permanent and cannot be undone.

Provide access control for script execution

Saner Remote Scripting allows you to control which users can execute scripts on devices in Saner. By default, organization administrators have permission to execute scripts, and this permission cannot be revoked. You can manage script execution access for all other users.

Provide script execution access

1. On the Remote Scripting dashboard, click the Access Control icon.

The Script Access Control page appears, showing all users with access to the account and their configured script execution permissions.

2. Under the Approvals column, turn on the toggle switch for the account you want to grant script execution access.

A confirmation message appears.

3. Click Grant.

The user now has script execution access.

Automate script deployment on devices

You can run scripts on devices using Saner Remote Scripting in two ways.

Apply script from the Remote Scripting dashboard

1. On the Remote Scripting dashboard, click the gear icon under Actions column.

The Apply Script page appears.

2. In the Task Name box, enter the Task Name (Required)

The task name should be at least 4 characters and more.

3. In the Task Description box, enter a brief description for the task. (Required)

The task name should be at least 4 characters and more.

4. In the Select Devices pane, select the devices on which you want to run the script.

5. Click Next.

6. You can choose to specify a job summary notification for the task. The notification schedule can be set at the beginning of the Task Creation or Task End or both. (Optional)

7. You can choose to specify the Schedule from the following options:

  • Once
  • Daily
  • Weekly
  • Monthly

8. Click Apply. (Required).

Saner creates the remote scripting task. You can view the status of the task on the Status page.

Important: Saner executes only the latest version of the script.

Apply script from the Remote Scripting Editor

1. On the Remote Scripting dashboard, click the script you want to execute.

The Script Editor page appears.

2. Click Run.

The Apply Script page appears.

3. In the Task Name box, enter the Task Name (Required)

The task name should be at least 4 characters and more.

4. In the Task Description box, enter a brief description for the task. (Required)

The task name should be at least 4 characters and more.

5. In the Select Devices pane, select the devices on which you want to run the script.

6. Click Next.

7. You can choose to specify a job summary notification for the task. The notification schedule can be set at the beginning of the Task Creation or Task End or both. (Optional)

8. You can choose to specify the Schedule from the following options:

  • Once.
  • Daily.
  • Weekly.
  • Monthly.

9. Click Apply. (Required).

Saner creates the remote scripting task. You can view the status of the task on the Status page.

View the status of a Remote Scripting task

On the Status page, you can view the status of the Remote Scripting task.

The  Task Details page provides the following information about the Remote Scripting task.

ColumnDescription
Host NameThe name of the device on which the script is executed.
Host StatusIndicates whether the device is online or offline.
GroupThe group to which the device belongs, shown in the Group column.
StatusDisplays the status of the Remote Scripting task. Possible values include:
Received – The device has received the remote scripting task.
Initiated – The scripting task has started on the device.
Success – The remote scripting task executed successfully.
Failed – The remote scripting task failed on the device.
Exit CodeThe exit code returned by the system on which the script was executed. Common status codes are
0 — Script executed successfully.
1 — Script execution failed.
124— Script execution timed out.
VersionDisplays the script version used during the Remote Scripting task.
ReasonDisplays the reason for a failed script execution, including any relevant exit codes.
Last UpdateThe date and time of the last action performed on the device.

To view the latest status of the Remote Scripting task, click the task name on the left side of the page.

View the output of the Remote Scripting task

1. Click the icon in the Host Name column to expand and view the Remote Scripting task results.

The Remote Scripting task results are displayed. You can copy, download, and use Saner AI to analyze the Remote Scripting task output.

Copy, download, or use Saner AI to analyze the Remote Scripting task output.

Click the icon to copy the Remote Script task output to notepad or any word processor.

Click the icon to download the Remote Script task output in a text format on to the local machine.

Click the icon to use Saner AI to analyze the Remote Script output to gain deeper insights.

Approve Saner Remote Scripting tasks

A user with approval privileges must approve the Remote Scripting task if it was created by someone without execution rights. The Remote Scripting task is created but requires approval from a script approver before it can be executed.

On the Status page, the Remote Scripting task awaits approval if it was created by a user without approval rights.

Approve a Remote Scripting job

You must be signed in to the Saner platform with an account that has approval rights for remote script execution.

1. On the Status page, click the three dots next to the remote scripting task.

A pop-up window appears.

2. Click Approve Task.

A confirmation message box appears.

3. Click Approve.

The task is approved and the remote script is executed on the device.

Saner Remote Scripting audit logs

Saner stores a log of the activities performed using Saner Remote Scripting. You can view the logs by visiting Audit Logs page.

Audit CodeDescription
1014Granted Script access to the user.
1015Failed to grant access to the user.
1016Revoked script access from the user.
1017Failed to revoke script access from the user.
8023New script created successfully.
8024New script creation failed.
8025Script updated successfully.
8026Script updation failed.
8027Script delete successfully.
8028Script deletion failed.
8029Script execution task created successfully.
8030Script execution task creation failed.
8031Script execution task deleted successfully
8032Script execution task deletion failed
8033Script execution task updated successfully
8034Script execution task updation failed.
Share This Article :
  • X
  • LinkedIn
Still stuck? How can we help?

Saner Documentation Feedback

Saner CVEM Endpoint Management User GuideSaner CVEM Remote Access User Guide
Table of Contents
  • Overview
    • Remote Scripting capabilities:
    • Prerequisites
    • Accessing Remote Scripting
    • Explore Saner Remote Script Editor Features
      • Font Size
      • Themes
      • Saner AI Assistant
    • Create a new script using Saner Remote Scripting
    • View script version
    • Create a new folder in Remote scripting
    • Import scripts
      • Import scripts within the account
      • Import scripts within the account
    • Upload scripts
    • Delete scripts
    • Provide access control for script execution
      • Provide script execution access
    • Automate script deployment on devices
      • Apply script from the Remote Scripting dashboard
      • Apply script from the Remote Scripting Editor
      • View the status of a Remote Scripting task
      • View the output of the Remote Scripting task
        • Copy, download, or use Saner AI to analyze the Remote Scripting task output.
      • Approve Saner Remote Scripting tasks
        • Approve a Remote Scripting job
      • Saner Remote Scripting audit logs
Copyright 2025 - SecPod. All Rights Reserved. Privacy Policy.
SanerNow Version 6.5.x