Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/240.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
Vbscript Powershell跨域控制_Vbscript - Fatal编程技术网

Vbscript Powershell跨域控制

Vbscript Powershell跨域控制,vbscript,Vbscript,访问AD中的另一个域并创建用户的代码是什么样子的 非CMDLET的。NET或VB脚本 我在另一个域上有一个帐户,我可以使用它在另一个域上创建此帐户。请查看此处 在powershell中,您需要加载程序集才能使用它: [reflection.assembly]::LoadWithPartialName("System.DirectoryServices.AccountManagement") 代码与msdn链接中的代码类似。PowerShell不运行VBScript。

访问AD中的另一个域并创建用户的代码是什么样子的

非CMDLET的。NET或VB脚本

我在另一个域上有一个帐户,我可以使用它在另一个域上创建此帐户。

请查看此处

在powershell中,您需要加载程序集才能使用它:

[reflection.assembly]::LoadWithPartialName("System.DirectoryServices.AccountManagement")

代码与msdn链接中的代码类似。

PowerShell不运行VBScript。