{"id":158183,"date":"2012-11-11T09:08:03","date_gmt":"2012-11-11T05:08:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158183"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158183","title":{"rendered":"<span class=\"post_title\">\u0410\u0443\u0434\u0438\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 AD \u0447\u0435\u0440\u0435\u0437 VBS \u0441 \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u0435\u043c \u0432 SharePoint \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PowerShell<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h5>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u041d\u041b\u041e<\/h5>\n<p>  \u0425\u043e\u0442\u0435\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0438\u0437 AD \u0438 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430 SharePoint \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0438 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e \u0442\u043e\u043c, \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435 \u043d\u0443\u0436\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<br \/>  \u041e\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0451 \u043e\u043d\u043e \u0431\u044b\u043b\u043e\u2026<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 AD \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0438 \u0446\u0435\u043b\u0438.<br \/>  \u0418\u0437 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0438\u043c\u0435\u043b\u043e\u0441\u044c: \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d VBS \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0447\u0435\u0440\u0435\u0437 LDAP, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b (\u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0431\u043e\u0440 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439), \u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u0437\u0430\u0442\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PowerShell \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 SharePoint.<\/p>\n<pre><code class=\"vbscript\">On Error Resume Next Dim oQuery Dim objConnection Dim objCommand Dim objRecordSet Dim strMember Dim strAC Dim arrMember  ' \u0441\u044e\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 logfile = &quot;users-lvs.txt&quot; Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)   oQuery = &quot;&lt;LDAP:\/\/dc=my,dc=site&gt;;&quot; & _     &quot;(objectCategory=user)&quot; & _ &quot;;distinguishedName,name,sAMAccountname,mail,memberOf,userAccountControl,description;subtree&quot; ' \u0432\u044b\u0448\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u043f\u043e\u043b\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435  Set objConnection = CreateObject(&quot;ADODB.Connection&quot;) Set objCommand = CreateObject(&quot;ADODB.Command&quot;) objConnection.Open &quot;Provider=ADsDSOObject;&quot; objCommand.ActiveConnection = objConnection objCommand.CommandText = oQuery Set objRecordSet = objCommand.Execute   ' \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0444\u0430\u0439\u043b\u0430 - \u0441\u043e\u0437\u0434\u0430\u0435\u043c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c - \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c if objFSO.FileExists(logfile) then \tSet objFile = objFSO.OpenTextFile(logfile, 2) \tobjFile.Write &quot;&quot;  else \tSet objFile = objFSO.CreateTextFile(logfile)  \tobjFile.Close \tSet objFile = objFSO.OpenTextFile(logfile, 2)  \tobjFile.Write &quot;&quot;  end if objFile.Close   ' \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0431\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u044b While Not objRecordSet.EOF     strMember = objRecordSet.Fields(&quot;memberOf&quot;)    strStr = &quot;&quot;     For i = 0 To UBound(strMember)          ' \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0434\u043b\u0438\u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043e \u0437\u0430\u043f\u044f\u0442\u043e\u0439     liluka = InStr(2, strMember(i), &quot;,&quot;, vbTextCompare)     ' \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443     strStr = strStr & Right(Left(strMember(i), liluka - 1), liluka - 4) & &quot;, &quot;   Next    arrOpis = objRecordSet.Fields(&quot;description&quot;)  strOpis = &quot;&quot;    For i = 0 To UBound(arrOpis)     strOpis = strOpis & arrOpis(i) & &quot;, &quot;  Next  ' \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c  Select Case objRecordSet.Fields(&quot;userAccountControl&quot;)   Case 512     strAC = &quot;\u041d\u0435\u0442&quot;   Case 514     strAC = &quot;\u0414\u0430&quot;   Case 66048     strAC = &quot;\u041d\u0435\u0442&quot;   Case 66050     strAC = &quot;\u0414\u0430&quot;  End Select      ' \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0444\u0430\u0439\u043b   Set objFile = objFSO.OpenTextFile(logfile, 8)   objFile.WriteLine objRecordSet.Fields(&quot;sAMAccountname&quot;) & &quot;;1&quot; & _     objRecordSet.Fields(&quot;name&quot;) & &quot;;2&quot; &  _     objRecordSet.Fields(&quot;mail&quot;) & &quot;;3&quot; & _     strStr & &quot;;4&quot; & strAC & &quot;;5&quot; & strOpis & &quot;;6\u041b\u0412\u0421&quot;  objFile.Close       objRecordSet.MoveNext  Wend  objConnection.Close <\/code><\/pre>\n<p>  \u0418\u0437 \u043a\u043e\u0434\u0430 \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f &quot;;6\u041b\u0412\u0421&quot;, \u043a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432\u044b\u0448\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u041b\u0412\u0421. \u0421 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0441\u0442\u0430\u043b \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u0442\u044c \u0438 \u0432\u0437\u044f\u043b 4 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0443 \u043d\u0430\u0441 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c \u0438 \u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e \u0431\u0438\u0442\u0430\u043c \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u2026<br \/>  \u0427\u0442\u043e \u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 PowerShell \u043f\u043e\u043d\u0438\u043c\u0430\u043b \u0433\u0434\u0435 \u043a\u0430\u043a\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f, \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043d\u0438 \u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0446\u0438\u0444\u0440\u0443 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0443\u044e \u0438\u043d\u0434\u0435\u043a\u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. <br \/>  \u041d\u0435 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b, \u0430 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c \u043a\u043e\u0434\u0430 \u044f, \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u0430\u043a \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\/\u0440\u0430\u0437\u0431\u043e\u0440\u0430. <br \/>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u043a\u043e\u0434 PowerShell:  <\/p>\n<pre><code class=\"cpp\"># \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 \u0448\u0430\u0440\u0435\u043f\u043e\u0439\u043d\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0438\u0437 \u0442\u0445\u0442 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \t\twrite-host open Sharepoint from USERS \t\t# sharepoint \t\t$env:SPpath = &quot;${env:CommonProgramFiles}\\Microsoft Shared\\web server extensions\\12\\&quot; \t\t[System.Reflection.Assembly]::LoadFrom(&quot;$env:SPPath\\ISAPI\\Microsoft.SharePoint.dll&quot;)         write-host open web \t\t# \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c web \t\t$nsite=&quot;http:\/\/my_site\/sites\/MonitorUser&quot; \t\t$SpSite = New-Object -TypeName &quot;Microsoft.SharePoint.SPSite&quot; -ArgumentList $nsite; \t\t$spweb=$spsite.OpenWeb();         write-host open Sharepoint list \t\t# \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c  \u0441\u043f\u0438\u0441\u043e\u043a \t\t$nlist=&quot;http:\/\/my_site\/sites\/MonitorUser\/Lists\/List5\/AllItems.aspx&quot; \t\t$splist=$spweb.getlist($nlist); \t\t \t\t# \u043e\u0447\u0438\u0441\u0442\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \t\twrite-host clearing list... \t\t$iCnt = $splist.Items.Count; \t\t#$icnt; \t\tfor ($jj=1; $jj -le $iCnt; $jj++){ \t\t\t$splist.Items.Delete(0); \t\t} \t\twrite-host clearing list Done  # \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0445\u0442 \u0444\u0430\u0439\u043b\u0430\u0445, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u043f\u043e\u0434 \u043c\u0430\u0441\u043a\u0443 write-host Processing log files... foreach ($file in $(get-childitem 'D:\\scripts\\work\\' -include users*.txt -recurse))  \t{ \t$hostout = $file.FullName + &quot;...&quot; \tWrite-Host $hostout  \t$fl = get-content $file.FullName;         # $fl;  \tfor ($i=1; $i -lt $fl.Count; $i++) \t\t{ \t\t \t\t$st1 =$fl[$i];                                                # \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445         $ind1 = $st1.IndexOf(&quot;;1&quot;)         $ind2 = $st1.IndexOf(&quot;;2&quot;)         $ind3 = $st1.IndexOf(&quot;;3&quot;)         $ind4 = $st1.IndexOf(&quot;;4&quot;)         $ind5 = $st1.IndexOf(&quot;;5&quot;)         $ind6 = $st1.IndexOf(&quot;;6&quot;)\t \t\t\t  \t$stLogin = $st1.substring(0,$ind1) \t$stUserName = $st1.substring($ind1+2,$ind2-$ind1-2) \t$stMail = $st1.substring($ind2+2,$ind3-$ind2-2)   \t$ind7 = $ind4-$ind3 \tif ($ind7 -eq 2) \t{          $stGroup = &quot;\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f&quot; \t} \telse \t{          $stGroup = $st1.substring($ind3+2,$ind4-$ind3-4) \t}  \t$ind7 = $ind6-$ind5 \tif ($ind7 -eq 2) \t{          $stOpis = &quot;&quot; \t} \telse \t{ \t $stOpis = $st1.substring($ind5+2,$ind6-$ind5-4) \t}  \t$stBlock = $st1.substring($ind4+2,$ind5-$ind4-2) \t$stSeg = $st1.substring($ind6+2,3)                             # \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0448\u0430\u0440\u0435\u043f\u043e\u0439\u043d\u0442 \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438           $NewItem = $SpList.Items.Add();           $NewItem[&quot;\u041b\u043e\u0433\u0438\u043d&quot;] = $stLogin;           $NewItem[&quot;\u041f\u043e\u043b\u043d\u043e\u0435 \u0438\u043c\u044f&quot;] = $stUserName;           $NewItem[&quot;e-mail&quot;] = $stMail;           $NewItem[&quot;\u0413\u0440\u0443\u043f\u043f\u044b&quot;] = $stGroup;           $NewItem[&quot;\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d&quot;] = $stBlock;           $NewItem[&quot;\u0421\u0435\u0433\u043c\u0435\u043d\u0442&quot;] = $stSeg;           $NewItem[&quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435&quot;] = $stOpis;                      $NewItem.Update(); \t\t \t\t} }  write-host Processing log files DONE $spweb.Dispose(); $spsite.Dispose(); write-host Program END <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0442\u0445\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u0430\u0442\u043d\u0438\u043a  <\/p>\n<pre><code>cscript users-lvs.vbs %SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe &quot;& 'D:\\scripts\\work\\users.ps1'&quot; %SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe &quot;& 'D:\\scripts \\work\\pk.ps1'&quot; <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0448 \u0441\u0430\u0439\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 \u041b\u0412\u0421 \u0442\u043e \u0437\u0430\u043e\u0434\u043d\u043e \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443 \u043d\u0430\u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c. \u0418 \u043a\u0430\u043a \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c (\u041e\u0421, \u0432\u0435\u0440\u0441\u0438\u044f, \u043f\u0430\u043a, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f), \u043d\u043e \u0442\u0430\u043c \u0432\u0441\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u043a\u0430\u043a \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438.<br \/>  \u0421\u0430\u043c\u043e\u0435 \u0434\u043e\u043b\u0433\u043e\u0435, \u0447\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u043c, \u044d\u0442\u043e \u2013 \u043e\u0447\u0438\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 2-3 \u043c\u0438\u043d\u0443\u0442\u044b). \u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0447\u0438\u0441\u0442\u044b, \u0442\u043e \u0441\u0431\u043e\u0440 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 30 \u0441\u0435\u043a\u0443\u043d\u0434, 700-800 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.<br \/>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432 LDAP \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0441\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043b \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u043b \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u0440\u0430\u0439\u043d\u0438\u0439 \u0440\u0430\u0437. \u0412 WMI \u0435\u0441\u0442\u044c \u00abdirectory\\LDAP\u00bb \u0438 \u0442\u0430\u043c \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<\/p>\n<p>  P.S. \u041d\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0443\u043a\u0443 \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u043b, \u0440\u0430\u0434 \u0431\u0443\u0434\u0443 \u043b\u044e\u0431\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0435, \u0430 \u043b\u0443\u0447\u0448\u0435 \u0441\u043e\u0432\u0435\u0442\u0430\u043c \u043a\u0430\u043a \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c, \u0433\u0434\u0435 \u043a\u0430\u043a\u0438\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0438 \u043f\u043e\u0447\u0435\u043c\u0443, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u044d\u0442\u043e\u2026 \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/158183\/\"> http:\/\/habrahabr.ru\/post\/158183\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h5>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u041d\u041b\u041e<\/h5>\n<p>  \u0425\u043e\u0442\u0435\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0438\u0437 AD \u0438 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430 SharePoint \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0438 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e \u0442\u043e\u043c, \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435 \u043d\u0443\u0436\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<br \/>  \u041e\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0451 \u043e\u043d\u043e \u0431\u044b\u043b\u043e\u2026  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-158183","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158183"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158183\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}