Powershell活动目录Web服务

时间:2012-07-10 22:26:50

标签: windows powershell active-directory

我希望有一个web服务,可以通过PowerShell调用将用户添加到活动目录。我有PowerShell调用,但不知道如何建立Web服务来发出调用。您可以在下面找到powershell脚本。

New-Item -Path <drive>:\RightsPolicyTemplate\<template_ID>\UserRight -Name <e-mail_address> [-FullControl] [-View] [-Edit] [-Save] [-Export] [-Print] [-Forward] [-Reply] [-ReplyAll] [-Extract] [-AllowMacros] [-ViewRightsData] [-EditRightsData] [-CustomRight <custom_right>,<custom_right>…]

我正在运行Windows 2008 R2。

1 个答案:

答案 0 :(得分:0)

您可以使用PHP和HTML表单实现解决方案来调用Powershell脚本来完成工作。有关详细信息,请参阅我的基本指南:http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/