{"id":5635,"date":"2018-10-03T11:24:30","date_gmt":"2018-10-03T08:24:30","guid":{"rendered":"https:\/\/msbro.ru\/?p=5635"},"modified":"2018-10-03T11:25:41","modified_gmt":"2018-10-03T08:25:41","slug":"podschet-mesta-zanimaemogo-profilyami-polzovatelejj-v-domene","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/5635","title":{"rendered":"\u041f\u043e\u0434\u0441\u0447\u0435\u0442 \u043c\u0435\u0441\u0442\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0434\u043e\u043c\u0435\u043d\u0435."},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u00a0 \u0434\u043e\u043c\u0435\u043d\u0435.<\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Autoit.<\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442: \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 EXE. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0444\u0430\u0439\u043b.exe \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPO \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440. \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0430\u043f\u043e\u043a \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f (\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u044b\u0435 \u043f\u0430\u043f\u043a\u0438). \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 Excel &#8211; \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 (\u0443\u043a\u0430\u0437\u0430\u0432 \u044d\u0442\u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b), \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0430\u0442\/\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p><!--more--><br \/>\n\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<br \/>\n\\\\fileserver.firma.ru\\share$\\PF_Size\\db_pf_size.txt &#8211; \u0444\u0430\u0439\u043b \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043f\u0438\u0441\u0438 \u043b\u044e\u0431\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<br \/>\n\\\\firma.ru\\shares\\Home\\ &#8211; \u0442\u0443\u0442 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0434\u0438\u0441\u043a<br \/>\n\\\\firma.ru\\shares\\PF\\ &#8211; \u0442\u0443\u0442 \u043f\u0440\u043e\u0444\u0438\u043b\u044f<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre>;\r\n;\u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a\r\n;\r\n\r\n#include &lt;AutoItConstants.au3&gt;\r\n#include &lt;MsgBoxConstants.au3&gt;\r\n#include &lt;Array.au3&gt;\r\n\r\n$my_Name = @username\r\n$my_Comp = @ComputerName\r\n$my_Date = @MDAY&amp;\".\"&amp;@MON&amp;\".\"&amp;@YEAR\r\n$my_Time = @HOUR&amp;'.'&amp;@MIN&amp;'.'&amp;@SEC\r\n$my_Home = '\\\\firma.ru\\shares\\Home\\'&amp; $my_Name &amp; '\\'\r\n$my_Prof = '\\\\firma.ru\\shares\\PF\\' &amp; $my_Name &amp; '\\'\r\n\r\nLocal $my_Home_Size = 0\r\nLocal $my_Prof_Size = 0\r\n\r\n$my_ReportPath = '\\\\fileserver.firma.ru\\share$\\PF_Size\\db_pf_size.txt'\r\n\r\n$my_Home_Size = Round(DirGetSize($my_Home) \/ 1024 \/ 1024)\r\n$my_Prof_Size = Round(DirGetSize($my_Prof) \/ 1024 \/ 1024)\r\nLocal $my_DataString = $my_Name &amp;','&amp; $my_Comp &amp;','&amp; $my_Date &amp;','&amp; $my_Time &amp;','&amp; $my_Home &amp;','&amp; $my_Home_Size &amp;','&amp; $my_Prof &amp;','&amp; $my_Prof_Size\r\n\r\nConsoleWrite('HOME : ' &amp; $my_Home_Size &amp; @CRLF)\r\nConsoleWrite('PROF : ' &amp; $my_Prof_Size &amp; @CRLF)\r\nConsoleWrite('DATA : ' &amp; $my_DataString &amp; @CRLF)\r\n\r\n$hFile = FileOpen($my_ReportPath, 1)\r\n\r\nIf $hFile = -1 Then\r\n   ConsoleWrite('Error : ' &amp; '\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b.' &amp; @CRLF)\r\n   Exit\r\nEndIf\r\n\r\nFileWriteLine($hFile, $my_DataString &amp; @CRLF)\r\nFileClose($hFile)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u00a0 \u0434\u043e\u043c\u0435\u043d\u0435. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Autoit. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442: \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 EXE. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0444\u0430\u0439\u043b.exe \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPO \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440. \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0430\u043f\u043e\u043a \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f (\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u044b\u0435 \u043f\u0430\u043f\u043a\u0438). \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 Excel &#8230;<\/p>\n<p><a href=\"https:\/\/msbro.ru\/index.php\/archives\/5635\" class=\"more-link\">Continue reading &lsquo;\u041f\u043e\u0434\u0441\u0447\u0435\u0442 \u043c\u0435\u0441\u0442\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0434\u043e\u043c\u0435\u043d\u0435.&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[1833],"class_list":["post-5635","post","type-post","status-publish","format-standard","hentry","category-scripts","tag-autoit"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5635"}],"collection":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/comments?post=5635"}],"version-history":[{"count":2,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5635\/revisions"}],"predecessor-version":[{"id":5637,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5635\/revisions\/5637"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=5635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=5635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=5635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->