简体   繁体   English

Powershell Active Directory Web服务

[英]Powershell activedirectory web services

I am looking to have a webservice that makes a powershell call to add users to active directory. 我正在寻找一个web服务,可以通过powershell调用将用户添加到活动目录。 I have the PowerShell call but dont know how to make a webservice to issue the call. 我有PowerShell呼叫,但不知道如何使Web服务发出呼叫。 Below you will find the powershell script. 在下面,您将找到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>…]

I'm running windows 2008 R2. 我正在运行Windows 2008 R2。

You could implement a solution using PHP and HTML forms to call Powershell scripts to do the work. 您可以使用PHP和HTML表单来实现解决方案,以调用Powershell脚本来完成工作。 Please see my basic guide on getting started with this here: http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/ 请在此处查看我的入门基本指南: http : //theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM