Powershell和Lotus Notes-如何使用员工编号提取用户名? [英] Powershell and Lotus Notes - How to extract user names with employees numbers?

查看:70
本文介绍了Powershell和Lotus Notes-如何使用员工编号提取用户名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有具体问题.我需要从活动目录中提取域名,并将其与Lotus Notes中的员工编号结合在一起.我使用Get-QADUser(来自quest.com的snapin)获取域名,这没问题,但是如何获取员工编号并将其组合起来呢?谢谢

I have specific problem. I need to extract domain names from active directory and combine them with employees numbers which are in Lotus Notes. I get the domain names with Get-QADUser (snapin from quest.com), that was no problem, but how to get the employees numbers and combine them? Thank you

Edit(18.5.11:5​​6):现在,我正在使用此脚本(由Christian发布),并且想出了如何获取LN数据库的名称-右键单击Lotus Notes工作区中的DB,然后单击application/属性.

Edit(18.5. 11:56): Now I'm using this script (posted by Christian) and I figured out how to get the name of LN database - right-click on DB in Lotus notes workspace, then application/properties.

# Create LN Object
$DomSession = New-Object -ComObject Lotus.NotesSession

# Initialize LN Object
# You'll be asking for LN password to your id
$DomSession.Initialize()

# Connect to Server, select db and display the name
$DomDatabase = $DomSession.GetDatabase("LN007","IT\HW.nsf")
Write-Host "Database open : " $DomDatabase.Title

# Open specific View (By Serial Number)
$DomView = $DomDatabase.GetView('Serial Number')
Write-Host "View read : " $DomView.Name

# Show number of documents
$DomNumOfDocs = $DomView.AllEntries.Count
Write-Host "Num of Docs : " $DomNumOfDocs

# Get First Document in the View
$DomDoc = $DomView.GetFirstDocument()

推荐答案

您可以使用com object从Lotus Notes检索数据.

You can retrieve data from Lotus Notes using com object.

建议的链接:

http://davidmoravec.blogspot. it/2008/08/retrieve-data-from-lotus-notes-with.html

莲花笔记comobject

这篇关于Powershell和Lotus Notes-如何使用员工编号提取用户名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆