{"id":345578,"date":"2023-02-17T09:02:36","date_gmt":"2023-02-17T09:02:36","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=345578"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2023-02-17T09:02:36","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=345578","title":{"rendered":"<span>Auto Provisioning \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u00abMicroSip\u00bb \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0430 Power Shell<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u043f\u043e\u0441\u0442\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/users\/StuxForce\/\" rel=\"noopener noreferrer nofollow\">@StuxForce<\/a> \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 MicroSIp \u043d\u0430\u00a0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434\u00a0\u0441\u0432\u043e\u044e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044e. <\/p>\n<p>\u0414\u043b\u044f\u00a0\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0442\u0435\u0438 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0421\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442 MicroSip (\u043a\u0430\u0447\u0430\u0435\u043c \u0441 <a href=\"https:\/\/www.microsip.org\/downloads\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a>)<\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0\u043f\u0430\u043f\u043a\u0435 MicroSip \u0431\u0443\u0434\u0443\u0442:<\/p>\n<ol>\n<li>\n<p>Distr\u00a0\u2014 \u0432\u00a0\u043d\u0435\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>Settings\u00a0\u2014 \u0442\u0443\u0434\u0430 \u043c\u044b \u043a\u043b\u0430\u0434\u0435\u043c \u0444\u0430\u0439\u043b\u044b Contacts.xml \u0438 microsip.ini;<\/p>\n<\/li>\n<li>\n<p>Users\u00a0\u2014 \u0432\u00a0\u043d\u0435\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u00a0\u043b\u0438\u0447\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0420\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u00a0\u043f\u0430\u043f\u043a\u0443 Distr \u0444\u0430\u0439\u043b\u0430 <a href=\"https:\/\/www.microsip.org\/translation\" rel=\"noopener noreferrer nofollow\">langpack_russian.txt<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 MicroSip \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:Netlogon).<\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a \u0432\u043e\u0442 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441\u00a0\u0438\u043c\u0435\u043d\u0435\u043c MicroSip \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0435\u0433\u043e \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c MicroSip $process = Get-Process -Name \"MicroSip\" -ErrorAction SilentlyContinue  # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u0440\u0430\u0432\u0435\u043d 0,\u0442\u043e if ($process -ne $null)      {     # \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip     Stop-Process -Name \"MicroSip\"      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!\"     echo \"\u041d\u0430\u0447\u0438\u043d\u0430\u0447\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b...\"      echo \"***********************************\"     } else {     # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     echo \"***********************************\"     echo \"\u0417\u0430\u043f\u0443\u0449\u0435\u043d\u0438\u044b\u0439 \u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d!\"      echo \"\u041d\u0430\u0447\u0438\u043d\u0430\u0447\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b MicroSip...\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 MicroSip:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 $dir_microsip = \"$env:APPDATA\\MicroSIP\" # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 $dir_microsip        if (!(Test-Path -Path $dir_microsip))      {     echo \"***********************************\"     echo \"\u0418\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Microsip...\"     echo \"***********************************\"     # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 Microsip       New-Item -Path \"$env:APPDATA\\MicroSIP\" -ItemType Directory     # \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Microsip \u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u0438 \u0432 AppData \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     Copy-Item -Path \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Distr\\*\" -Destination \"$env:APPDATA\\MicroSIP\" -Force      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430!\"     echo \"***********************************\" }  else {     # \u0418\u043d\u0430\u0447\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0431 \u0440\u0430\u043d\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0431\u044b\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0440\u0430\u043d\u0435\u0435!\"      echo \"***********************************\" }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438  \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u044f\u0440\u043b\u044b\u043a\u0430 $link_microsip = \"$env:USERPROFILE\\Desktop\\Microsip.lnk\"  # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435  if (!(Test-Path -Path $link_microsip))     {     # \u0421\u043e\u0437\u0434\u044f\u0435\u043c \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442     $target = \"$env:APPDATA\\MicroSIP\\microsip.exe\"     $file = \"$env:USERPROFILE\\Desktop\\Microsip.lnk\"     $shell = New-Object -comObject Wscript.Shell     $shortcut = $shell.CreateShortcut($file)     $shortcut.TargetPath = $target     $shortcut.Save()     echo \"\u042f\u0440\u043b\u044b\u043a Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d!\"     } else {     # \u0418\u043d\u0430\u0447\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u0435\u0441\u0442\u044c      echo \"***********************************\"     echo \"\u042f\u0440\u043b\u044b\u043a \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0440\u0430\u043d\u0435\u0435!\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432<\/p>\n<pre><code class=\"powershell\"># \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432  $contacts = \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Settings\\Contacts.xml\" Copy-Item -Path $contacts -Destination \"$env:APPDATA\\MicroSIP\" -Force echo \"***********************************\" echo \"\u0424\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!\" echo \"***********************************\"<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u043e\u00a0\u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u0432\u00a0\u2014 \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u00a0\u043d\u0435\u043c (\u043f\u043e\u043a\u0430 \u043d\u0435\u00a0\u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u043a\u0430\u043a\u00a0\u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438\u00a0\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435\u00a0\u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u044e)<\/p>\n<pre><code class=\"powershell\">#\u0427\u0438\u0441\u0442\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Remove-Item  -Path \"$env:APPDATA\\MicroSIP\\microsip.ini\"<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 $conf_user = \"$env:APPDATA\\MicroSIP\\microsip.ini\"  # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435  if (Test-Path -Path $conf_user)     {     echo \"***********************************\"     echo \"\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438!\"     echo \"\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f...\"     echo \"***********************************\"     } else     {     # \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0443\u0447\u0435\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f ActiveDirectiry     $UserName = $env:username     $Filter = \"(&amp;(objectCategory=User)(samAccountName=$UserName))\"     $Searcher = New-Object System.DirectoryServices.DirectorySearcher     $Searcher.Filter = $Filter     $ADUserPath = $Searcher.FindOne()     $ADUser = $ADUserPath.GetDirectoryEntry()     $ADDisplayName = $ADUser.DisplayName     $ADipPhone = $ADUser.ipPhone      # \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u0430     # \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d     if (($ADipPhone -ge 100) -eq ($ADipPhone -le 199))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }      elseif (($ADipPhone -ge 200) -eq ($ADipPhone -le 299))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 300) -eq ($ADipPhone -le 399))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 400) -eq ($ADipPhone -le 499))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 500) -eq ($ADipPhone -le 599))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 600) -eq ($ADipPhone -le 699))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 700) -eq ($ADipPhone -le 799))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }      # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     $conf_user = New-Item -Path \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Users\\$env:UserName.ini\" -ItemType File -Force     # \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0437 ActiveDirectory \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $txt     $txt =  \"[Account1]             label = $ADipPhone             AuthID = $ADipPhone             Username = $ADipPhone             DisplayName = $ADDisplayName             Password = $pass             Server = \u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410_PBX             Domain = \u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410_PBX              [Settings]             accountId = 1\"     # \u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0432\u043e\u0434 $txt \u0432 $conf_user     echo $txt | out-file $conf_user -encoding UTF8        # \u041f\u0443\u0441\u0442\u044c \u0434\u043e \u0444\u0430\u0439\u043b\u0430 \u0441 \u043e\u0431\u0449\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b MicroSip     $conf_simple = \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\MicroSip\\Settings\\microsip.ini\"     # \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0437 \u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0444\u0430\u0439\u043b \u043e\u0431\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     Copy-Item -Path $contacts -Destination \"$env:APPDATA\\MicroSIP\" -Force     echo \"***********************************\"     echo \"\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439!\"     echo \"***********************************\"      # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \u043e\u0431\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a (\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b\u044b - \u043e\u0431\u0449\u0438\u0439 + \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439)     Add-Content -Path \"$env:APPDATA\\MicroSIP\\microsip.ini\" -Value (Get-Content -Path \"$conf_user\") -Force     echo \"***********************************\"     echo \"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043a \u0431\u0430\u0437\u043e\u0432\u043e\u0439!\"     echo \"***********************************\"      # \u0417\u0430\u043f\u0443\u0441\u043a MicroSip \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439     Start-Process -FilePath \"$env:APPDATA\\MicroSIP\\microsip.exe\"     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430!\"     echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u043d\u0438\u044f!\"     echo \"***********************************\"          }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u00a0\u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c:<\/p>\n<pre><code class=\"powershell\"># \u0417\u0430\u043f\u0443\u0441\u043a MicroSip $process = Get-Process -Name \"MicroSip\" -ErrorAction SilentlyContinue  # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u0440\u0430\u0432\u0435\u043d 0,\u0442\u043e if ($process -ne $null)      {     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!\"     echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f...\"      echo \"***********************************\"     } else {     # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e     Start-Process -FilePath \"$env:APPDATA\\MicroSIP\\microsip.exe\"      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 microSip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430!\"      echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f...\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0432\u00a0AD \u0438 \u043f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. <\/p>\n<p>\u041f\u0440\u043e\u0448\u0443 \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0435\u00a0\u0441\u0443\u0434\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0447\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c (\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c) \u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445\u00a0\u2014 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/717540\/\"> https:\/\/habr.com\/ru\/post\/717540\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u043f\u043e\u0441\u0442\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/users\/StuxForce\/\" rel=\"noopener noreferrer nofollow\">@StuxForce<\/a> \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 MicroSIp \u043d\u0430\u00a0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u00a0\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434\u00a0\u0441\u0432\u043e\u044e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044e. <\/p>\n<p>\u0414\u043b\u044f\u00a0\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0442\u0435\u0438 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0421\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442 MicroSip (\u043a\u0430\u0447\u0430\u0435\u043c \u0441 <a href=\"https:\/\/www.microsip.org\/downloads\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a>)<\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0\u043f\u0430\u043f\u043a\u0435 MicroSip \u0431\u0443\u0434\u0443\u0442:<\/p>\n<ol>\n<li>\n<p>Distr\u00a0\u2014 \u0432\u00a0\u043d\u0435\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>Settings\u00a0\u2014 \u0442\u0443\u0434\u0430 \u043c\u044b \u043a\u043b\u0430\u0434\u0435\u043c \u0444\u0430\u0439\u043b\u044b Contacts.xml \u0438 microsip.ini;<\/p>\n<\/li>\n<li>\n<p>Users\u00a0\u2014 \u0432\u00a0\u043d\u0435\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u00a0\u043b\u0438\u0447\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0420\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u00a0\u043f\u0430\u043f\u043a\u0443 Distr \u0444\u0430\u0439\u043b\u0430 <a href=\"https:\/\/www.microsip.org\/translation\" rel=\"noopener noreferrer nofollow\">langpack_russian.txt<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 MicroSip \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:Netlogon).<\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a \u0432\u043e\u0442 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441\u00a0\u0438\u043c\u0435\u043d\u0435\u043c MicroSip \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0435\u0433\u043e \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c MicroSip $process = Get-Process -Name \"MicroSip\" -ErrorAction SilentlyContinue  # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u0440\u0430\u0432\u0435\u043d 0,\u0442\u043e if ($process -ne $null)      {     # \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip     Stop-Process -Name \"MicroSip\"      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!\"     echo \"\u041d\u0430\u0447\u0438\u043d\u0430\u0447\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b...\"      echo \"***********************************\"     } else {     # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     echo \"***********************************\"     echo \"\u0417\u0430\u043f\u0443\u0449\u0435\u043d\u0438\u044b\u0439 \u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d!\"      echo \"\u041d\u0430\u0447\u0438\u043d\u0430\u0447\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b MicroSip...\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 MicroSip:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 $dir_microsip = \"$env:APPDATA\\MicroSIP\" # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 $dir_microsip        if (!(Test-Path -Path $dir_microsip))      {     echo \"***********************************\"     echo \"\u0418\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Microsip...\"     echo \"***********************************\"     # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 Microsip       New-Item -Path \"$env:APPDATA\\MicroSIP\" -ItemType Directory     # \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Microsip \u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u0438 \u0432 AppData \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     Copy-Item -Path \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Distr\\*\" -Destination \"$env:APPDATA\\MicroSIP\" -Force      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430!\"     echo \"***********************************\" }  else {     # \u0418\u043d\u0430\u0447\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0431 \u0440\u0430\u043d\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0431\u044b\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0440\u0430\u043d\u0435\u0435!\"      echo \"***********************************\" }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438  \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u044f\u0440\u043b\u044b\u043a\u0430 $link_microsip = \"$env:USERPROFILE\\Desktop\\Microsip.lnk\"  # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435  if (!(Test-Path -Path $link_microsip))     {     # \u0421\u043e\u0437\u0434\u044f\u0435\u043c \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442     $target = \"$env:APPDATA\\MicroSIP\\microsip.exe\"     $file = \"$env:USERPROFILE\\Desktop\\Microsip.lnk\"     $shell = New-Object -comObject Wscript.Shell     $shortcut = $shell.CreateShortcut($file)     $shortcut.TargetPath = $target     $shortcut.Save()     echo \"\u042f\u0440\u043b\u044b\u043a Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d!\"     } else {     # \u0418\u043d\u0430\u0447\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u0435\u0441\u0442\u044c      echo \"***********************************\"     echo \"\u042f\u0440\u043b\u044b\u043a \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0440\u0430\u043d\u0435\u0435!\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432<\/p>\n<pre><code class=\"powershell\"># \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432  $contacts = \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Settings\\Contacts.xml\" Copy-Item -Path $contacts -Destination \"$env:APPDATA\\MicroSIP\" -Force echo \"***********************************\" echo \"\u0424\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e!\" echo \"***********************************\"<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u043e\u00a0\u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u0432\u00a0\u2014 \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u00a0\u043d\u0435\u043c (\u043f\u043e\u043a\u0430 \u043d\u0435\u00a0\u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u043a\u0430\u043a\u00a0\u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438\u00a0\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435\u00a0\u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u044e)<\/p>\n<pre><code class=\"powershell\">#\u0427\u0438\u0441\u0442\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Remove-Item  -Path \"$env:APPDATA\\MicroSIP\\microsip.ini\"<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"powershell\"># \u041f\u0443\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 $conf_user = \"$env:APPDATA\\MicroSIP\\microsip.ini\"  # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u044f\u0440\u043b\u044b\u043a \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435  if (Test-Path -Path $conf_user)     {     echo \"***********************************\"     echo \"\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438!\"     echo \"\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f...\"     echo \"***********************************\"     } else     {     # \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0443\u0447\u0435\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f ActiveDirectiry     $UserName = $env:username     $Filter = \"(&amp;(objectCategory=User)(samAccountName=$UserName))\"     $Searcher = New-Object System.DirectoryServices.DirectorySearcher     $Searcher.Filter = $Filter     $ADUserPath = $Searcher.FindOne()     $ADUser = $ADUserPath.GetDirectoryEntry()     $ADDisplayName = $ADUser.DisplayName     $ADipPhone = $ADUser.ipPhone      # \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u0430     # \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d     if (($ADipPhone -ge 100) -eq ($ADipPhone -le 199))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }      elseif (($ADipPhone -ge 200) -eq ($ADipPhone -le 299))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 300) -eq ($ADipPhone -le 399))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 400) -eq ($ADipPhone -le 499))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 500) -eq ($ADipPhone -le 599))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 600) -eq ($ADipPhone -le 699))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }     elseif (($ADipPhone -ge 700) -eq ($ADipPhone -le 799))         {          $pass = \u043f\u0430\u0440\u043e\u043b\u044c         }      # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     $conf_user = New-Item -Path \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\Microsip\\Users\\$env:UserName.ini\" -ItemType File -Force     # \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0437 ActiveDirectory \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $txt     $txt =  \"[Account1]             label = $ADipPhone             AuthID = $ADipPhone             Username = $ADipPhone             DisplayName = $ADDisplayName             Password = $pass             Server = \u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410_PBX             Domain = \u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410_PBX              [Settings]             accountId = 1\"     # \u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0432\u043e\u0434 $txt \u0432 $conf_user     echo $txt | out-file $conf_user -encoding UTF8        # \u041f\u0443\u0441\u0442\u044c \u0434\u043e \u0444\u0430\u0439\u043b\u0430 \u0441 \u043e\u0431\u0449\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b MicroSip     $conf_simple = \"\\\\\u0418\u041c\u042f_\u0421\u0415\u0420\u0412\u0415\u0420\u0410\\NETLOGON\\soft\\MicroSip\\Settings\\microsip.ini\"     # \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0437 \u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0444\u0430\u0439\u043b \u043e\u0431\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     Copy-Item -Path $contacts -Destination \"$env:APPDATA\\MicroSIP\" -Force     echo \"***********************************\"     echo \"\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439!\"     echo \"***********************************\"      # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \u043e\u0431\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a (\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b\u044b - \u043e\u0431\u0449\u0438\u0439 + \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439)     Add-Content -Path \"$env:APPDATA\\MicroSIP\\microsip.ini\" -Value (Get-Content -Path \"$conf_user\") -Force     echo \"***********************************\"     echo \"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043a \u0431\u0430\u0437\u043e\u0432\u043e\u0439!\"     echo \"***********************************\"      # \u0417\u0430\u043f\u0443\u0441\u043a MicroSip \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439     Start-Process -FilePath \"$env:APPDATA\\MicroSIP\\microsip.exe\"     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Microsip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430!\"     echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u043d\u0438\u044f!\"     echo \"***********************************\"          }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u00a0\u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c:<\/p>\n<pre><code class=\"powershell\"># \u0417\u0430\u043f\u0443\u0441\u043a MicroSip $process = Get-Process -Name \"MicroSip\" -ErrorAction SilentlyContinue  # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u0440\u0430\u0432\u0435\u043d 0,\u0442\u043e if ($process -ne $null)      {     echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 MicroSip \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!\"     echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f...\"      echo \"***********************************\"     } else {     # \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Microsip \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e     Start-Process -FilePath \"$env:APPDATA\\MicroSIP\\microsip.exe\"      echo \"***********************************\"     echo \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 microSip \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430!\"      echo \"\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f...\"     echo \"***********************************\" }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0432\u00a0AD \u0438 \u043f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. <\/p>\n<p>\u041f\u0440\u043e\u0448\u0443 \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0435\u00a0\u0441\u0443\u0434\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0447\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c (\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c) \u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445\u00a0\u2014 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/717540\/\"> https:\/\/habr.com\/ru\/post\/717540\/<\/a><br \/><\/br><\/br><\/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-345578","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/345578","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=345578"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/345578\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=345578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=345578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=345578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}