This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Launch Powershell script from ARS Web Interface

Sorry if I'm missing something obvious (we've just recently deployed ActiveRoles Server), but I cant seem to find an easy way to launch a standalone powershell script from within the ActiveRoles server Web Interface.

I have a simple script which exports a list of user objects from our Deprovisioned Users OU to a CSV file, and I'd like our Help Desk staff to be able to launch this script from the WEB UI by clicking a custom menu item like "Generate Deprovisioned Users Report"

Can anyone point me in the direction of any existing documents that show me how to do this?

Parents
  • Hmm, then I'm stuck again - unfortunately as I'm working with user properties in that script.
    Please find excerpts following.


    # get user mail address
    $usermail = (Get-QADUser $Request.GUID -IncludedProperties PrimarySMTPAddress -DontUseDefaultIncludedProperties).PrimarySMTPAddress

    # get user URI
    $UserURI = (Get-QADUser $Request.GUID -IncludedProperties "msRTCSIP-PrimaryUserAddress" -DontUseDefaultIncludedProperties)."msRTCSIP-PrimaryUserAddress"

    #define E-Mail from
    $from = "<mail address>"

    #define relay server
    $smtpserver="<relay server>"

    #send Welcome-Email
    Set-CsPinSendCAWelcomeMail -UserEmailAddress $usermail -UserURI $UserURI -From $from -smtpserver $smtpserver -force
Reply
  • Hmm, then I'm stuck again - unfortunately as I'm working with user properties in that script.
    Please find excerpts following.


    # get user mail address
    $usermail = (Get-QADUser $Request.GUID -IncludedProperties PrimarySMTPAddress -DontUseDefaultIncludedProperties).PrimarySMTPAddress

    # get user URI
    $UserURI = (Get-QADUser $Request.GUID -IncludedProperties "msRTCSIP-PrimaryUserAddress" -DontUseDefaultIncludedProperties)."msRTCSIP-PrimaryUserAddress"

    #define E-Mail from
    $from = "<mail address>"

    #define relay server
    $smtpserver="<relay server>"

    #send Welcome-Email
    Set-CsPinSendCAWelcomeMail -UserEmailAddress $usermail -UserURI $UserURI -From $from -smtpserver $smtpserver -force
Children
No Data