Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在我的rails应用程序上执行PowerShell脚本_Ruby On Rails_Shell_Powershell_Active Directory - Fatal编程技术网

Ruby on rails 在我的rails应用程序上执行PowerShell脚本

Ruby on rails 在我的rails应用程序上执行PowerShell脚本,ruby-on-rails,shell,powershell,active-directory,Ruby On Rails,Shell,Powershell,Active Directory,我到处寻找如何在我的rails应用程序上设置脚本,但都不准确。 实际上,我想通过我应用程序上的表单在Active Directory上创建新用户 其想法是让用户在应用程序上创建个人资料(姓名、电子邮件、密码),然后脚本将在Active Directory上添加凭据 你有什么想法吗?检查此链接,可能会帮助你达到目的: 我已经对它进行了一些测试,您可以使用一个需要参数的脚本。比如: system('powershell -File C:\Temp\CreateADUser.ps1 -Name "N

我到处寻找如何在我的rails应用程序上设置脚本,但都不准确。 实际上,我想通过我应用程序上的表单在Active Directory上创建新用户

其想法是让用户在应用程序上创建个人资料(姓名、电子邮件、密码),然后脚本将在Active Directory上添加凭据


你有什么想法吗?

检查此链接,可能会帮助你达到目的:

我已经对它进行了一些测试,您可以使用一个需要参数的脚本。比如:

system('powershell -File C:\Temp\CreateADUser.ps1 -Name "Name" -Email "Email" -Password "Password"')

所有繁重的工作都将由脚本完成,假设它将在与正确的代表团的账户中运行

检查此链接,可能有助于您到达目的地:

我已经对它进行了一些测试,您可以使用一个需要参数的脚本。比如:

system('powershell -File C:\Temp\CreateADUser.ps1 -Name "Name" -Email "Email" -Password "Password"')
所有繁重的工作都将由脚本完成,假设它将在与正确的代表团的账户中运行