Modules
Sign in
Get Help

Get Device Value

In a workflow, you may want to test if a condition is met on the targeted device. It can be if a Service or Process is running if a specific file exists, or if a user is currently logged on to the device. The Workflow Action Get Device Value will help you query for various conditional states and create variables to be used within the Workflow as Conditions.

image 5.png

image 6.png

Services and Applications

  • Is Process Running: Evaluates if one or multiple Processes are running.
    • Returns Yes if one named or a list of named Processes are running.
    • Returns No if one named or any in a list of named Processes are not running.
  •  Service Running: Evaluate if one or a list of named Services is running.
    • Returns Yes if one named or a list of named Services are running.
    • Returns No if one named or any in a list of named Services are not running.

Users

  • Is User Logged On: Evaluates if a user is logged on to the device console session. Leave empty (blank) for any user or specify one or multiple usernames.
    • Returns Yes if any (blank) or specific named user currently are logged in to the console session.
    • Returns No if any (blank), one specific named user or a list of multiple named users currently are not logged in to the console session.
  • Is User Active: Evaluate if a user currently is active on the device console session. Leave empty for any user or specify one or multiple usernames.
    • Returns Yes is if any (blank) or one named user currently is active in the console session.
    • Returns No if any (blank), one specific named user, or a list of multiple named users currently are inactive in the console session.
  • Has User Confirmed: Evaluates if any user currently logged on the device console session answered Yes or No to a prompted custom message, like for example “Can we reboot your computer?”

Registry

  • Registry Key Exists: Evaluate Registry Key in a specified path as a Boolean value. 
    • Returns Yes if specified Registry Key exists. 
    • Returns No if specified Registry Key does not exist. 
  • Registry Value: Evaluate the Registry Key in a specified path as a Boolean value. 
    • Returns Yes if a Registry Value exists and matches the specified value. 
    • Returns No if a Registry Value does not exist or does not match the specified value. 

File System

  • File Exists: Evaluate if a file exists as a Boolean value. 
    • Returns Yes if the specified file exists. 
    • Returns No if the specified file does not exist. 
  • File Time Stamp: Returns the latest update as a Date value from a specified file.
    • Returns the file timestamp as a Date value.
    • Fail if the specified file does not exist. 
  • File Contains: Evaluate if a file contains a specified string as a Boolean value. 
    • Returns Yes if the specified file exists and the string matches. 
    • Returns No if the specified file does not exist or the string does not match. 
  • File Version: Returns the latest update as a Date value from a specified file. 
    • Fail if the specified file does not exist. 
  • File Size: Returns the file size for a specified file as a Number value. 
    • Fail if the specified file does not exist.  

General

  • Constant Value: Create constant values by String, Date, or Number. 
  • Get CPU Architecture: Returns the CPU architecture as a String value. 

Examples

Check if the Spooler Service is running

  1. In the Workflow, add a new step and select Get Device Value Workflow Action. Select the variable value Is Service Running in the drop-down list. Name the variable Is Spooler Running. Type spooler and press Enter to validate. Click Confirm to continue. 
    Tip: You can add multiple Services to be queried. The returned value is Yes” if all specified Services in the list are running and No if one or more Services are not running. 

    Image 7.png
  2. Add a new condition step and select Variable value Is Service Running is equal to Yes. Now you can build your Automation based on whether the spooler Service is running or not. 

    Image 8.png 

Ask the current user for permission to reboot 

  1. In the Workflow, add a new step and select Get Device Value Workflow Action. Select the variable value Has User Confirmed in the drop-down list. Name the variable Can We Reboot The Computer.
  2. In the Question field, use this sample text: "Greetings. It has been more than 10 days since you rebooted your computer. We recommend rebooting once a week to maintain performance and keep your computer up to date with the latest security updates. Can we reboot now? Regards, your IT Team.”   

    Image 9.png
  3. Please note, that the Yes and No text buttons are not yet customizable in the current release. 
  4. Enter a preferred timeout for the message box, 300 seconds is the max value. If the user does not answer the question within the timeout, the default answer will be No. Click Confirm to continue. 
  5. Add a new condition step and select Variable value Can We Reboot The Computer is equal to Yes. Now you can build your Automation based on the user's response to your reboot request. 

    Image 10.png

Does a specific font file exist 

  1. In the Workflow, add a new step and select Get Device Value Workflow Action. Select the variable value File Exist in the drop-down list. Name the variable Does My Font Exist. Enter the path C:\Windows\Fonts and the file name your_font_file.ttf and press Enter to validate. Click Confirm to continue. 
    Tip: You can add multiple files to be queried. The returned value is Yes if all specified files in the list exist and No if one or more files do not exist. 

    Image 11.png

  2. Add a new Condition step and select Variable value Can We Reboot The Computer is equal to No. Now you can build your Automation based on the font file not existing on the device.

    Image 12.png

 

 

 

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section