Managing Domino Users with PowerShell

Some of my colleagues created a really nice Domino Application to manage users with browsers using XPages.

With their application, they provide many useful functions also as web services.

The nice “side effect” is that these web services can be used from any other applicable system.

For example you can use PowerShell to create Domino Users with a few lines of code:

$wsdl = "http://dominoserver/service.nsf/DominoUserManager?wsdl"
$username = "testuser"
$passwd = "passwort" | convertto-securestring -AsPlainText -Force    
#Password should be stored in the script only for testing!
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $passwd

$DUM = New-WebServiceProxy -Uri $wsdl -Credential $cred -Class 'Proxy' -Namespace "DominoUserManagerService"
$user = New-Object DominoUserManagerService.REGISTRATIONREQUESTDATA
$user.FIRSTNAME = "Stephan"
$user.LASTNAME = "Kopp"
$user.SHORTNAME = "skopp"
$user.MIDDLEINITIAL = ""
$user.CERTIFIER = "/ACME/COM"
$user.INTERNETADDRESS = "skopp@acme.com"
$user.PASSWORD = "myNewPassword"
$user.QUOTASIZE = '0'
$user.QUOTAWARNING = '0'
$user.MAILACCESS = '2'
$user.IDVALIDITY = '-1'
$reply = $DUM.PROCESSUSERREGISTRATION($user)

We can’t make all this open source, but if someone is interested and wants more information, please contact me!

Advertisements
This entry was posted in IBM Notes/Domino and tagged , , , , . Bookmark the permalink.

2 Responses to Managing Domino Users with PowerShell

  1. elfworld says:

    Interesting. I have used PowerShell to make it possible to send email from Lync2013 via Lotus Notes. This is very easy since you only need to use the mailto:-functionality.

    However, do you know if it’s possible to right click on a contact in Lync 2013, choose a menu option that I’ve added called “Create meeting in Lotus Notes” and then open the Meeting form in Lotus Notes and put the name of the contact I right clicked on in the To-field?

Comments are closed.