在vRealize Automation 7.2中的不同用户上下文下执行脚本

小巴里·科尔班克(Barry Colebank Jr.)

我正在vRealize Automation 7.2中构建蓝图,并且作为过程的一部分,我需要能够从远程位置执行代码。我知道我可以使用加密的属性来提供用户的凭据,然后在不同的用户上下文中执行脚本,但这是我唯一的选择吗?我在vRealize Orchestrator中看到可以更改执行工作流程的用户的凭据,但是我不确定这也不是我的最佳选择。

小巴里·科尔班克(Barry Colebank Jr.)

我找到了一种通过使用Powershell脚本将部署的计算机上的驱动器映射到网络位置的方法。

$driveLetter = "U"
$networkPath = "\\network\share"
$userName = "domain\username"
$password = "password"

$psDrive = Get-PSDrive -Name $driveLetter
if ($psDrive)
{
    Remove-PSDrive $psDrive
}
$token = $password | ConvertTo-SecureString -AsPlainText -Force
$credentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $userName, $token -ErrorAction Stop
$output = New-PSDrive -Name $driveLetter -Root $networkPath -PSProvider FileSystem -Credential $credentials -Persist -Scope Global

$driveLetter = $output.Name + ":"

然后,我可以使用vRealize Automation软件组件将生成的驱动器号映射到其他步骤的安装位置,并通过选中属性的“绑定”框并将“值”设置为ConnectionStep_1〜driveLetter属性,将属性绑定到该组件的属性。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在vRealize Orchestrator API中为Chef工作流传递CHEF:ChefHost参数时出现问题

来自分类Dev

交互模式下的PLSQL Automation

来自分类Dev

Maximo Automation脚本记录脚本崩溃

来自分类Dev

用于集成的Maximo Automation脚本-JSON

来自分类Dev

Running automation tests on 2 TeamCity agents in parallel

来自分类Dev

Automation Runbook中的Start-AzureStorageBlobCopy错误

来自分类Dev

Power BI和Power Automation中的Python脚本

来自分类Dev

Selenium Automation:根据@BeforeMethod中的条件跳过测试的执行

来自分类Dev

Drupal 7 jQuery问题,上下文链接,LightBox 2,Bootstrap组件“轮播”和“标签”

来自分类Dev

在UIActionSheet中添加UIPickerView时,iOS 7上的上下文错误无效?

来自分类Dev

Windows 7中我的Open-With gVim上下文菜单选项在哪里?

来自分类Dev

无法将新项目添加到Windows 7“新”上下文菜单中

来自分类Dev

Windows 7中缺少“刻录图像”上下文菜单项

来自分类Dev

无法选择Windows 7中通过上下文菜单打开的默认程序形式

来自分类Dev

drupal 7中的上下文过滤器视图

来自分类Dev

Windows 7上下文菜单中的条目重新排序和分组

来自分类Dev

如何从Windows 7的上下文菜单中删除“使用Nero刻录”

来自分类Dev

如何在Windows 7/8/10上下文菜单中更改默认格式工具?

来自分类Dev

在 apache tomcat 7 中监听上下文路径的变化

来自分类Dev

更改Vaadin 7应用程序的根上下文

来自分类Dev

80080005使用Word Automation时服务器执行失败

来自分类Dev

UIImage的resizableImageWithCapInsets在iOS 7下带来多个CoreGraphics“无效上下文0x0”错误

来自分类Dev

在Excel中运行时Powerpoint VBA Automation变慢

来自分类Dev

如何访问Taiko Automation中的Downloads文件夹

来自分类Dev

错误429:在Power Automation中启动批准错误

来自分类Dev

如何使用UI Automation从ListView或类似控件中获取文本?

来自分类Dev

使用JavaScript for Automation取消在Finder中的所有选择

来自分类Dev

如何知道 Automation Anywhere 中的页面是否已完全加载?

来自分类Dev

在哪里可以找到 Automation Anywhere 中的 goto 语句?

Related 相关文章

  1. 1

    在vRealize Orchestrator API中为Chef工作流传递CHEF:ChefHost参数时出现问题

  2. 2

    交互模式下的PLSQL Automation

  3. 3

    Maximo Automation脚本记录脚本崩溃

  4. 4

    用于集成的Maximo Automation脚本-JSON

  5. 5

    Running automation tests on 2 TeamCity agents in parallel

  6. 6

    Automation Runbook中的Start-AzureStorageBlobCopy错误

  7. 7

    Power BI和Power Automation中的Python脚本

  8. 8

    Selenium Automation:根据@BeforeMethod中的条件跳过测试的执行

  9. 9

    Drupal 7 jQuery问题,上下文链接,LightBox 2,Bootstrap组件“轮播”和“标签”

  10. 10

    在UIActionSheet中添加UIPickerView时,iOS 7上的上下文错误无效?

  11. 11

    Windows 7中我的Open-With gVim上下文菜单选项在哪里?

  12. 12

    无法将新项目添加到Windows 7“新”上下文菜单中

  13. 13

    Windows 7中缺少“刻录图像”上下文菜单项

  14. 14

    无法选择Windows 7中通过上下文菜单打开的默认程序形式

  15. 15

    drupal 7中的上下文过滤器视图

  16. 16

    Windows 7上下文菜单中的条目重新排序和分组

  17. 17

    如何从Windows 7的上下文菜单中删除“使用Nero刻录”

  18. 18

    如何在Windows 7/8/10上下文菜单中更改默认格式工具?

  19. 19

    在 apache tomcat 7 中监听上下文路径的变化

  20. 20

    更改Vaadin 7应用程序的根上下文

  21. 21

    80080005使用Word Automation时服务器执行失败

  22. 22

    UIImage的resizableImageWithCapInsets在iOS 7下带来多个CoreGraphics“无效上下文0x0”错误

  23. 23

    在Excel中运行时Powerpoint VBA Automation变慢

  24. 24

    如何访问Taiko Automation中的Downloads文件夹

  25. 25

    错误429:在Power Automation中启动批准错误

  26. 26

    如何使用UI Automation从ListView或类似控件中获取文本?

  27. 27

    使用JavaScript for Automation取消在Finder中的所有选择

  28. 28

    如何知道 Automation Anywhere 中的页面是否已完全加载?

  29. 29

    在哪里可以找到 Automation Anywhere 中的 goto 语句?

热门标签

归档