View DominoIDVaultPWDChange.js
import java.util.Vector;
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
Log log = null;
Document parametersDocument = null;
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
View Domino Import.ps1
param (
$Username,
$Password,
$Credentials,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
View LDAP PowerShell Bind to Domino.ps1
$Server = "LDAP://servername:389/O=Customer-Aus"
$Username = "CN=Darren Kloud Robinson,OU=OrgU,O=Org-Aus"
$Password = "******"
$entry = New-Object System.DirectoryServices.DirectoryEntry($Server,$Username,$Password,"none")
$LDAPfilter = "(objectclass=*)"
$directorySearcher = New-Object System.DirectoryServices.DirectorySearcher($entry,$LDAPfilter)
$results = $directorySearcher.FindAll()
$results.Count
View Domino Schema.ps1
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-UID|String" -Value "bsmith"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "dominoPerson"
$obj | Add-Member -Type NoteProperty -Name "givenName|String" -Value "Bob"
$obj | Add-Member -Type NoteProperty -Name "displayName|String" -Value "Bob Smith/OrgU/Org-Aus"
$obj | Add-Member -Type NoteProperty -Name "mail|String" -Value "bsmith@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "surname|String" -Value "Smith"
$obj
View Connect-To-AzureGraphAPI-oAuth2&PowerShell.ps1
#Sample oAuth 2.0 Microsoft API Powershell AuthN/AuthZ Script
# Output Folder for the resultant Script
Function Get-Folder($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
$foldername = New-Object System.Windows.Forms.FolderBrowserDialog
$foldername.rootfolder = "MyComputer"
if($foldername.ShowDialog() -eq "OK")
{
$folder += $foldername.SelectedPath
View Lithnet Metaverse Query Builder.ps1
# Lithnet MIIS Automation Module
#https://github.com/lithnet/miis-powershell
Import-Module LithnetMiisAutomation
# Choose Operator for Metaverse Query
Function ChooseOperator ($attribute){
$title = "Search Attribute Operator Selection"
$message = "Which operator do you want to use for $attribute ?"
# Build the choices menu
View PopulateUserstoDevAD.ps1
Clear-Host
Write-Host "Create Declarative Provisioning Rules to populate Development AD Domain"
# -- Create Sync Rule ---
[xml]$SyncRuleXML = @'
<Lithnet.ResourceManagement.ConfigSync>
<!-- Sync Rule -->
<Operations>
<!-- Declare some Objects -->
<ResourceOperation operation="None" resourceType="ma-data" id="SyncRuleID">
<AnchorAttributes>
View CreateMIMMPR.ps1
# -- Create MPR ---
[xml]$MPRXML = @'
<Lithnet.ResourceManagement.ConfigSync>
<Operations>
<ResourceOperation operation="None" resourceType="Set" id="MPRID">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
View CreateMIMSet.ps1
# -- Create Set --
[xml]$SetXML = @'
<Lithnet.ResourceManagement.ConfigSync>
<Operations>
<!-- Create Set -->
<ResourceOperation operation="Add Update" resourceType="Set" id="SetID">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
View CreateMIMWorkflow.ps1
# -- WORKFLOW --
[xml]$WorkflowXML = @'
<Lithnet.ResourceManagement.ConfigSync>
<Operations>
<!-- Create Workflow -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="SyncRuleWorkflowID">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>