ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Windows Agent using powershell: The term 'C:\Program' is not recognized...

book

Article ID: 88880

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Windows Agent using powershell: The term 'C:\Program' is not recognized...

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

Resolution

Detailed Description and Symptoms

You receive the following error message when you use blanks in the installation directory for the Windows Agent and want to run a job (e.g. the temp directory is C:\Program Files\Automic\AutomationEngine\9.00A\Agents\windows\TEMP\):

C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1

Solution

This is a known error that can't be fixed without creating side effects. We recommend to use a path without blanks for UC_EX_PATH_TEMP. The standard installation path is C:\Automic.
A workaround that can be used is described in 
"To be backwards compatible with the 8.3 limitations of the old File Allocation Table filenames, the names 'Program Files', 'Program Files (x86)' and 'Common Program Files' are shortened by the system to progra~N and common~N, where N is a digit, a sequence number that on a clean install will be 1 (or 1 and 2 when both 'Program Files' and 'Program Files (x86)' are present).
Program Files --> progra~1
Program Files (x86) --> progra~2
"
That means, if you have C:\Program Files\Automic\AutomationEngine\9.00A\Agents\windows\TEMP\ for your temp path, you can define the path with
C:\progra~1\Automic\AutomationEngine\9.00A\Agents\windows\TEMP\
in the UC_EX_PATH_TEMP variable and the job should run without problems.