經過一段時間的追捕,我發現顯然一些蓮花腳本工作在powershell
,但我試圖創建一個用戶,沒有人似乎有任何職位。用Powershell創建Notes用戶5
我開始與
$notes = New-Object -ComObject Lotus.NotesSession
$notes.Initialize()
但是從那裏我卡住任何提示或想法,將不勝感激,如果你知道如何指定組,以及那太好了。
我開發腳本這一點
$notes = New-Object -ComObject Lotus.NotesSession
$notes.Initialize()
Set notesRegistration.RegisterNewUser "Test User"
Set reg.RegistrationServer "NotesServer"
Set reg.CreateMailDb "True"
Set reg.CertifierIDFile "\\IdStore\LOTUS\ids\Servers\cert.id"
Set reg.Expiration "dt"
Set reg.IDType "ID_HIERARCHICAL"
Set reg.MinPasswordLength "0"
Set reg.OrgUnit "Domain.com"
Set reg.RegistrationLog "log.nsf"
Set reg.UpdateAddressBook "True"
Set reg.StoreIDInAddressBook "True"
Set reg.RegisterNewUser "Test User"
Set Reg.IdLocation "\\Idstore\data\lotus\Ids\tuser.id"
"CN=NotesServer",
"Test",
"",
"Certifierpassword",
""
"",
"tuser.nsf",
"",
"Domain.com"
我越來越沒有錯誤,但我還沒有得到成功有什麼昭然若揭了,我很想念?
我已經開發了這個腳本 – TonyBird