{"id":91333,"date":"2020-08-11T19:42:31","date_gmt":"2020-08-11T17:42:31","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell"},"modified":"2020-08-11T19:42:31","modified_gmt":"2020-08-11T17:42:31","slug":"avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell","status":"publish","type":"post","link":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell","title":{"rendered":"Arvutiklassi hooldust automatiseerimine Powershellis","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2020\/08\/5ec67d826fb5797891a49ee4b9a245ab.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 10 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Microsoft Windows 8.1. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u041f\u041e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0438 \u0421\u0442\u0443\u0434\u0435\u043d\u0442. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443 \u0421\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0442\u0440\u0443\u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0447\u0438\u0441\u0442\u043a\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0421\u0442\u0443\u0434\u0435\u043d\u0442, \u044d\u0442\u0430 \u0443\u0447\u0435\u0442\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e. \u042d\u0442\u043e \u0432\u043b\u0435\u0447\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0440\u0435\u0448\u0438\u043b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e PowerShell \u0431\u0435\u0437 ActiveDirectory \u0438 \u0441\u043e\u0431\u0440\u0430\u043b \u0432 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0446\u0435\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u044b\u0441\u043a\u0430\u043b \u0432 \u0441\u0435\u0442\u0438.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h2>\n<p>\n\u0421\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0430\u043d\u0446\u0438\u044f\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d PS 4 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u0432\u0441\u0435\u0437\u043d\u0430\u044e\u0449\u0435\u0433\u043e \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n<ol>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.microsoft.com\/ru-ru\/powershell\/scripting\/windows-powershell\/install\/installing-windows-powershell?view=powershell-7#upgrading-existing-windows-powershell\" rel=\"nofollow\"> Windows Management Framework 5.1<\/a><\/noindex> <\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0438\u0441\u0438\u044e <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\" rel=\"nofollow\">PowerShell<\/a><\/noindex> <\/li>\n<\/ol>\n<p><\/p>\n<h2>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/h2>\n<p><\/p>\n<ol>\n<li> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <\/li>\n<li> \u0410\u0432\u0442\u043e\u0432\u0445\u043e\u0434 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <\/li>\n<li> \u0417\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <\/li>\n<\/ol>\n<p><\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\n\u041d\u0430\u0447\u0430\u043b \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c 2 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (<noindex><a rel=\"nofollow\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.localaccounts\/new-localuser?view=powershell-5.1&amp;viewFallbackFrom=powershell-7.1\" rel=\"nofollow\">New-LocalUser<\/a><\/noindex>) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 (<noindex><a rel=\"nofollow\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.localaccounts\/get-localgroupmember?view=powershell-5.1&amp;viewFallbackFrom=powershell-7.1\" rel=\"nofollow\">Add-LocalGroupMember)<\/a><\/noindex>. \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u044d\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"powershell\">Function New-User {\n    &lt;#\n    .SYNOPSIS\n        \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\n    .EXAMPLE\n        #New-User &quot;Student&quot; &quot;Student&quot;\n    .PARAMETER Name\n        \u0418\u043c\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Password\n        \u041f\u0430\u0440\u043e\u043b\u044c (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Name,\n        [PARAMETER(Mandatory=$True)][String]$Password\n        )\n\n    $Pwd = convertto-securestring $Password -asplaintext -force\n    $GroupSID = &quot;S-1-5-32-545&quot;\n    New-LocalUser -User $Name -AccountNeverExpires:$true -FullName $Name -Password $Pwd -PasswordNeverExpires:$true\n    Add-LocalGroupMember -SID $GroupSID -Member $Name\n\n    Write-Host &quot;-- \u0421\u043e\u0437\u0434\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c $Name \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c $Password&quot; -foregroundcolor Green\n}\n<\/code><\/pre>\n<p>\n\u0412 \u0433\u0440\u0443\u043f\u043f\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043f\u043e SID, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b, \u0447\u0442\u043e SID \u0433\u0440\u0443\u043f\u043f\u044b \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432\u0435\u0437\u0434\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u2014 S-1-5-32-545.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443: \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e WMI \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 Win32_UserProfile \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<pre><code class=\"powershell\">Function Remove-Users {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438\n        \u0423\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\n    .EXAMPLE\n        #Remove-Users\n    #&gt;\n    [CmdletBinding()]\n\n    $UsersProfiles = Get-WMIObject -class Win32_UserProfile -ComputerName $env:COMPUTERNAME | Where {!($_.Loaded) -and !($_.Special)}\n    foreach($Usr in $UsersProfiles) {\n       \t$UsrName = $Usr.LocalPath.Split(&quot;&quot;)[2]\n       \tWrite-Host &quot;-- \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $UsrName ...&quot; -foregroundcolor Green\n       \tRemove-LocalUser -Name $UsrName\n\tRemove-WmiObject -Path $Usr.__PATH\n        Write-Host &quot;-- \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c $UsrName \u0443\u0434\u0430\u043b\u0435\u043d&quot; -foregroundcolor Green\n    }\n}\n<\/code><\/pre>\n<p><\/p>\n<h3>\u0410\u0432\u0442\u043e\u0432\u0445\u043e\u0434 (\u0430\u0432\u0442\u043e\u043b\u043e\u0433\u0438\u043d) \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\n\u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0440\u0435\u0435\u0441\u0442\u0440\u0430 HKEY_LOCAL_MACHINE. \u042d\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u0432 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"powershell\">Function Set-AutoLogon {\n    &lt;#\n    .SYNOPSIS\n        \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u0432\u0445\u043e\u0434 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-AutoLogon  &quot;Student&quot; &quot;Student&quot;\n    .PARAMETER Name\n        \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Password\n        \u041f\u0430\u0440\u043e\u043b\u044c (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Name,\n        [PARAMETER(Mandatory=$True)][String]$Password\n        )\n\n    $PathToWinlogon = &quot;HKLM:SoftwareMicrosoftWindows NTCurrentVersionWinlogon&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name AutoAdminLogon  -Value 1 -PropertyType &quot;String&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name DefaultUserName -Value $Name -PropertyType &quot;String&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name DefaultPassword -Value $Password -PropertyType &quot;String&quot;\n}\n<\/code><\/pre>\n<p><\/p>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\n\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430:<\/p>\n<ol>\n<li> \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438 <\/li>\n<li> \u0417\u0430\u043f\u0440\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 <\/li>\n<li> \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <\/li>\n<\/ol>\n<p>\n\u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043d\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0430\u0441\u043a. \u041d\u043e \u0442\u0430\u0441\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 PS \u043c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0432\u0435\u0441\u0442\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0448\u0435\u043b \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u043f\u0438\u043d\u043a\u043e\u0439:<\/p>\n<pre><code class=\"powershell\">schtasks \/create \/tn LogonUserSettings \/tr &quot;pwsh C:ScriptsSettings.ps1&quot; \/sc onlogon \/ru $env:USERDOMAIN$UserName \/rp $Password \/f\n<\/code><\/pre>\n<p>\n\u041d\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u2014 Windows \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u0445\u043e\u0434 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f (SeBatchLogonRight). \u041f\u043e\u0438\u0441\u043a\u0438 \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 <noindex><a rel=\"nofollow\" href=\"https:\/\/stackoverflow.com\/a\/10188472\" rel=\"nofollow\">\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443<\/a><\/noindex>:<\/p>\n<p>                        <b class=\"spoiler_title\">LsaWrapper<\/b><\/p>\n<pre><code class=\"powershell\">$Source = @'\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace MyLsaWrapper\n{\n    using System.Runtime.InteropServices;\n    using System.Security;\n    using System.Management;\n    using System.Runtime.CompilerServices;\n    using System.ComponentModel;\n\n    using LSA_HANDLE = IntPtr;\n\n    [StructLayout(LayoutKind.Sequential)]\n    struct LSA_OBJECT_ATTRIBUTES\n    {\n        internal int Length;\n        internal IntPtr RootDirectory;\n        internal IntPtr ObjectName;\n        internal int Attributes;\n        internal IntPtr SecurityDescriptor;\n        internal IntPtr SecurityQualityOfService;\n    }\n    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]\n    struct LSA_UNICODE_STRING\n    {\n        internal ushort Length;\n        internal ushort MaximumLength;\n        [MarshalAs(UnmanagedType.LPWStr)]\n        internal string Buffer;\n    }\n    sealed class Win32Sec\n    {\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern uint LsaOpenPolicy(\n        LSA_UNICODE_STRING[] SystemName,\n        ref LSA_OBJECT_ATTRIBUTES ObjectAttributes,\n        int AccessMask,\n        out IntPtr PolicyHandle\n        );\n\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern uint LsaAddAccountRights(\n        LSA_HANDLE PolicyHandle,\n        IntPtr pSID,\n        LSA_UNICODE_STRING[] UserRights,\n        int CountOfRights\n        );\n\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern int LsaLookupNames2(\n        LSA_HANDLE PolicyHandle,\n        uint Flags,\n        uint Count,\n        LSA_UNICODE_STRING[] Names,\n        ref IntPtr ReferencedDomains,\n        ref IntPtr Sids\n        );\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaNtStatusToWinError(int NTSTATUS);\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaClose(IntPtr PolicyHandle);\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaFreeMemory(IntPtr Buffer);\n\n    }\n    \/\/\/ &lt;summary&gt;\n    \/\/\/ This class is used to grant &quot;Log on as a service&quot;, &quot;Log on as a batchjob&quot;, &quot;Log on localy&quot; etc.\n    \/\/\/ to a user.\n    \/\/\/ &lt;\/summary&gt;\n    public sealed class LsaWrapper : IDisposable\n    {\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_TRUST_INFORMATION\n        {\n            internal LSA_UNICODE_STRING Name;\n            internal IntPtr Sid;\n        }\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_TRANSLATED_SID2\n        {\n            internal SidNameUse Use;\n            internal IntPtr Sid;\n            internal int DomainIndex;\n            uint Flags;\n        }\n\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_REFERENCED_DOMAIN_LIST\n        {\n            internal uint Entries;\n            internal LSA_TRUST_INFORMATION Domains;\n        }\n\n        enum SidNameUse : int\n        {\n            User = 1,\n            Group = 2,\n            Domain = 3,\n            Alias = 4,\n            KnownGroup = 5,\n            DeletedAccount = 6,\n            Invalid = 7,\n            Unknown = 8,\n            Computer = 9\n        }\n\n        enum Access : int\n        {\n            POLICY_READ = 0x20006,\n            POLICY_ALL_ACCESS = 0x00F0FFF,\n            POLICY_EXECUTE = 0X20801,\n            POLICY_WRITE = 0X207F8\n        }\n        const uint STATUS_ACCESS_DENIED = 0xc0000022;\n        const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;\n        const uint STATUS_NO_MEMORY = 0xc0000017;\n\n        IntPtr lsaHandle;\n\n        public LsaWrapper()\n            : this(null)\n        { }\n        \/\/ \/\/ local system if systemName is null\n        public LsaWrapper(string systemName)\n        {\n            LSA_OBJECT_ATTRIBUTES lsaAttr;\n            lsaAttr.RootDirectory = IntPtr.Zero;\n            lsaAttr.ObjectName = IntPtr.Zero;\n            lsaAttr.Attributes = 0;\n            lsaAttr.SecurityDescriptor = IntPtr.Zero;\n            lsaAttr.SecurityQualityOfService = IntPtr.Zero;\n            lsaAttr.Length = Marshal.SizeOf(typeof(LSA_OBJECT_ATTRIBUTES));\n            lsaHandle = IntPtr.Zero;\n            LSA_UNICODE_STRING[] system = null;\n            if (systemName != null)\n            {\n                system = new LSA_UNICODE_STRING[1];\n                system[0] = InitLsaString(systemName);\n            }\n\n            uint ret = Win32Sec.LsaOpenPolicy(system, ref lsaAttr,\n            (int)Access.POLICY_ALL_ACCESS, out lsaHandle);\n            if (ret == 0)\n                return;\n            if (ret == STATUS_ACCESS_DENIED)\n            {\n                throw new UnauthorizedAccessException();\n            }\n            if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))\n            {\n                throw new OutOfMemoryException();\n            }\n            throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));\n        }\n\n        public void AddPrivileges(string account, string privilege)\n        {\n            IntPtr pSid = GetSIDInformation(account);\n            LSA_UNICODE_STRING[] privileges = new LSA_UNICODE_STRING[1];\n            privileges[0] = InitLsaString(privilege);\n            uint ret = Win32Sec.LsaAddAccountRights(lsaHandle, pSid, privileges, 1);\n            if (ret == 0)\n                return;\n            if (ret == STATUS_ACCESS_DENIED)\n            {\n                throw new UnauthorizedAccessException();\n            }\n            if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))\n            {\n                throw new OutOfMemoryException();\n            }\n            throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));\n        }\n\n        public void Dispose()\n        {\n            if (lsaHandle != IntPtr.Zero)\n            {\n                Win32Sec.LsaClose(lsaHandle);\n                lsaHandle = IntPtr.Zero;\n            }\n            GC.SuppressFinalize(this);\n        }\n        ~LsaWrapper()\n        {\n            Dispose();\n        }\n        \/\/ helper functions\n\n        IntPtr GetSIDInformation(string account)\n        {\n            LSA_UNICODE_STRING[] names = new LSA_UNICODE_STRING[1];\n            LSA_TRANSLATED_SID2 lts;\n            IntPtr tsids = IntPtr.Zero;\n            IntPtr tdom = IntPtr.Zero;\n            names[0] = InitLsaString(account);\n            lts.Sid = IntPtr.Zero;\n            \/\/Console.WriteLine(&quot;String account: {0}&quot;, names[0].Length);\n            int ret = Win32Sec.LsaLookupNames2(lsaHandle, 0, 1, names, ref tdom, ref tsids);\n            if (ret != 0)\n                throw new Win32Exception(Win32Sec.LsaNtStatusToWinError(ret));\n            lts = (LSA_TRANSLATED_SID2)Marshal.PtrToStructure(tsids,\n            typeof(LSA_TRANSLATED_SID2));\n            Win32Sec.LsaFreeMemory(tsids);\n            Win32Sec.LsaFreeMemory(tdom);\n            return lts.Sid;\n        }\n\n        static LSA_UNICODE_STRING InitLsaString(string s)\n        {\n            \/\/ Unicode strings max. 32KB\n            if (s.Length &gt; 0x7ffe)\n                throw new ArgumentException(&quot;String too long&quot;);\n            LSA_UNICODE_STRING lus = new LSA_UNICODE_STRING();\n            lus.Buffer = s;\n            lus.Length = (ushort)(s.Length * sizeof(char));\n            lus.MaximumLength = (ushort)(lus.Length + sizeof(char));\n            return lus;\n        }\n    }\n    public class LsaWrapperCaller\n    {\n        public static void AddPrivileges(string account, string privilege)\n        {\n            using (LsaWrapper lsaWrapper = new LsaWrapper())\n            {\n                lsaWrapper.AddPrivileges(account, privilege);\n            }\n        }\n    }\n}\n'@\n\nAdd-Type -TypeDefinition $Source\n[MyLsaWrapper.LsaWrapperCaller]::AddPrivileges($Identity, &quot;SeBatchLogonRight&quot;)\n<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<h3> \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438<\/h3>\n<p>\n\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. <noindex><a rel=\"nofollow\" href=\"https:\/\/winitpro.ru\/index.php\/2017\/04\/13\/powershell-cherez-proksi\/\" rel=\"nofollow\">\u0420\u0430\u0431\u043e\u0447\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a><\/noindex> \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0448\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"powershell\">Function Set-Proxy {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u043e\u043a\u0441\u0438\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u043a\u0441\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-Proxy a.cproxy.ru 8080\n    .PARAMETER Server\n        \u0410\u0434\u0440\u0435\u0441 \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Port\n        \u041f\u043e\u0440\u0442 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Server,\n        [PARAMETER(Mandatory=$True)][Int]$Port\n        )\n\n    If ((Test-NetConnection -ComputerName $Server -Port $Port).TcpTestSucceeded) {\n        Set-ItemProperty -Path 'HKCU:SoftwareMicrosoftWindowsCurrentVersionInternet Settings' -name ProxyServer -Value &quot;$($Server):$($Port)&quot;\n        Set-ItemProperty -Path 'HKCU:SoftwareMicrosoftWindowsCurrentVersionInternet Settings' -name ProxyEnable -Value 1\n    } Else {\n        Write-Error -Message &quot;-- Invalid proxy server address or port:  $($Server):$($Port)&quot;\n    }\n}\n<\/code><\/pre>\n<p><\/p>\n<h3>\u0417\u0430\u043f\u0440\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 <\/h3>\n<p>\n\u0421 \u0437\u0430\u043f\u0440\u0435\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0441 \u0441\u0435\u0442\u044c\u044e. \u0412\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043f\u0430\u043f\u043a\u0443 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0442\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a \u0432 *nix \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445. \u041d\u043e \u0438 \u0442\u0443\u0442 \u043d\u0430\u0448\u043b\u0438\u0441\u044c \u043e\u0442\u0432\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u043e\u0434 \u0441\u0435\u0431\u044f:<\/p>\n<pre><code class=\"powershell\">Function Set-AccessRule {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0430\u0432 \u043d\u0430 \u043f\u0430\u043f\u043a\u0443\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e\n    .EXAMPLE\n        #Set-AccessRule -Folder $env:USERPROFILEDesktop  -UserName $env:USERNAME -Rules CreateFiles,AppendData -AccessControlType Deny\n    .PARAMETER Folder\n        \u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER UserName\n        \u0418\u043c\u044f \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Rules\n        \u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER AccessControlType\n        \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: Allow \u0438\u043b\u0438 Deny\n    #&gt;\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][Path]$Folder,\n        [PARAMETER(Mandatory=$True)][String]$UserName,\n        [PARAMETER(Mandatory=$True)][String]$Rules,\n        [PARAMETER(Mandatory=$True)][String]$AccessControlType\n        )\n\n    #\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a ACL \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430\n    $acl = Get-Acl $Folder\n    #\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438\n    $fileSystemRights = [System.Security.AccessControl.FileSystemRights]&quot;$Rules&quot;\n    #C\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0442\u0438\u043f\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\n    $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($UserName, $fileSystemRights, $AccessControlType)\n    #\u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432 \u043a\u043b\u0430\u0441\u0441 FileSystemAccessRule \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\n    $acl.SetAccessRule($AccessRule)\n    #\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a \u043f\u0430\u043f\u043a\u0435\n    $acl | Set-Acl $Folder\n}\n\nSet-AccessRule -Folder $env:USERPROFILEDesktop  -UserName $env:USERNAME -Rules CreateFiles,AppendData,Delete -AccessControlType Deny\n<\/code><\/pre>\n<p>\n\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 FileSystemRights \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.microsoft.com\/ru-ru\/dotnet\/api\/system.security.accesscontrol.filesystemrights?view=netframework-4.8\" rel=\"nofollow\">\u0441\u0430\u0439\u0442\u0435<\/a><\/noindex>. <\/p>\n<h3> \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <\/h3>\n<p>\n\u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043a\u0440\u0443\u0442\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c, \u0441 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438. \u041e\u0442\u0432\u0435\u0442 \u043d\u0430\u0448\u0435\u043b\u0441\u044f <noindex><a rel=\"nofollow\" href=\"http:\/\/gpo-planet.com\/?p=4203\" rel=\"nofollow\">\u0442\u0443\u0442<\/a><\/noindex>.<\/p>\n<p>                        <b class=\"spoiler_title\">PinnedApplication<\/b><\/p>\n<pre><code class=\"powershell\">function Set-PinnedApplication\n{\n    &lt;#\n    .SYNOPSIS\n        \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0440\u043b\u044b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u044f\u0440\u043b\u044b\u043a\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-PinnedApplication -Action UnpinfromTaskbar -FilePath &quot;$env:ProgramFilesInternet Exploreriexplore.exe&quot;\n    .EXAMPLE\n        #Set-PinnedApplication -Action PintoTaskbar -FilePath &quot;${env:ProgramFiles(x86)}Mozilla Firefoxfirefox.exe&quot;\n    .PARAMETER Action\n        \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: UnpinfromTaskbar \u0438\u043b\u0438 PintoTaskbar\n    .PARAMETER FilePath\n        \u0418\u043c\u044f \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$True)][String]$Action, \n        [Parameter(Mandatory=$True)][String]$FilePath\n   \t)\n    if(-not (test-path $FilePath)) { \n   \tthrow &quot;FilePath does not exist.&quot;  \n    }\n    function InvokeVerb {\n   \tparam([string]$FilePath,$verb)\n\t$verb = $verb.Replace(&quot;&amp;&quot;,&quot;&quot;)\n\t$path = split-path $FilePath\n\t$shell = new-object -com &quot;Shell.Application&quot; \n\t$folder = $shell.Namespace($path)   \n\t$item = $folder.Parsename((split-path $FilePath -leaf))\n\t$itemVerb = $item.Verbs() | ? {$_.Name.Replace(&quot;&amp;&quot;,&quot;&quot;) -eq $verb}\n\tif($itemVerb -eq $null){\n\t\tthrow &quot;Verb $verb not found.&quot;\t\t\t\n\t} else {\n\t\t$itemVerb.DoIt()\n\t}\n   }\n    function GetVerb {\n\tparam([int]$verbId)\n\ttry {\n\t\t$t = [type]&quot;CosmosKey.Util.MuiHelper&quot;\n\t} catch {\n\t    $def = [Text.StringBuilder]&quot;&quot;\n\t    [void]$def.AppendLine('[DllImport(&quot;user32.dll&quot;)]')\n\t    [void]$def.AppendLine('public static extern int LoadString(IntPtr h,uint id, System.Text.StringBuilder sb,int maxBuffer);')\n\t    [void]$def.AppendLine('[DllImport(&quot;kernel32.dll&quot;)]')\n\t    [void]$def.AppendLine('public static extern IntPtr LoadLibrary(string s);')\n\t    Add-Type -MemberDefinition $def.ToString() -name MuiHelper -namespace CosmosKey.Util\t\t\t\n\t}\n\tif($global:CosmosKey_Utils_MuiHelper_Shell32 -eq $null){\t\t\n\t    $global:CosmosKey_Utils_MuiHelper_Shell32 = [CosmosKey.Util.MuiHelper]::LoadLibrary(&quot;shell32.dll&quot;)\n\t}\n\t$maxVerbLength=255\n\t$verbBuilder = New-Object Text.StringBuilder &quot;&quot;,$maxVerbLength\n\t[void][CosmosKey.Util.MuiHelper]::LoadString($CosmosKey_Utils_MuiHelper_Shell32,$verbId,$verbBuilder,$maxVerbLength)\n\treturn $verbBuilder.ToString()\n    }\n    $verbs = @{ \n\t&quot;PintoTaskbar&quot;=5386\n\t&quot;UnpinfromTaskbar&quot;=5387\n    }\n    if($verbs.$Action -eq $null){\n   \tThrow &quot;Action $action not supported`nSupported actions are:`n`tPintoTaskbar`n`tUnpinfromTaskbar&quot;\n    }\n    InvokeVerb -FilePath $FilePath -Verb $(GetVerb -VerbId $verbs.$action)\n}\n<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\n\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c, \u0446\u0435\u043b\u044c \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u0430. \u0414\u043b\u044f \u043c\u0435\u043d\u044f, \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Linux, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Windows \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c. \u0412 \u043f\u043b\u0430\u043d\u0430\u0445 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u041f\u041e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u0437\u0430\u043f\u0443\u0441\u043a \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u0430.<\/p>\n<p>                        <b class=\"spoiler_title\">\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435<\/b><\/p>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430<\/h4>\n<p><\/p>\n<pre><code class=\"powershell\">Function New-User {\n    &lt;#\n    .SYNOPSIS\n        \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\n    .EXAMPLE\n        #New-User &quot;Student&quot; &quot;Student&quot;\n    .PARAMETER Name\n        \u0418\u043c\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Password\n        \u041f\u0430\u0440\u043e\u043b\u044c (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Name,\n        [PARAMETER(Mandatory=$True)][String]$Password\n        )\n\n    $Pwd = convertto-securestring $Password -asplaintext -force\n    $GroupSID = &quot;S-1-5-32-545&quot;\n    New-LocalUser -User $Name -AccountNeverExpires:$true -FullName $Name -Password $Pwd -PasswordNeverExpires:$true\n    Add-LocalGroupMember -SID $GroupSID -Member $Name\n\n    Write-Host &quot;-- \u0421\u043e\u0437\u0434\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c $Name \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c $Password&quot; -foregroundcolor Green\n}\n\nFunction Remove-Users {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438\n        \u0423\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\n    .EXAMPLE\n        #Remove-Users\n    #&gt;\n    [CmdletBinding()]\n\n    $UsersProfiles = Get-WMIObject -class Win32_UserProfile -ComputerName $env:COMPUTERNAME | Where {!($_.Loaded) -and !($_.Special)}\n\tforeach($Usr in $UsersProfiles) {\n        $UsrName = $Usr.LocalPath.Split(&quot;&quot;)[2]\n        Write-Host &quot;-- \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $UsrName ...&quot; -foregroundcolor Green\n        Remove-LocalUser -Name $UsrName\n\t\tRemove-WmiObject -Path $Usr.__PATH\n        Write-Host &quot;-- \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c $UsrName \u0443\u0434\u0430\u043b\u0435\u043d&quot; -foregroundcolor Green\n\t}\n}\n\nFunction Set-AutoLogon {\n    &lt;#\n    .SYNOPSIS\n        \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u0432\u0445\u043e\u0434 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-AutoLogon  &quot;Student&quot; &quot;Student&quot;\n    .PARAMETER Name\n        \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Password\n        \u041f\u0430\u0440\u043e\u043b\u044c (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Name,\n        [PARAMETER(Mandatory=$True)][String]$Password\n        )\n\n    $PathToWinlogon = &quot;HKLM:SoftwareMicrosoftWindows NTCurrentVersionWinlogon&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name AutoAdminLogon  -Value 1 -PropertyType &quot;String&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name DefaultUserName -Value $Name -PropertyType &quot;String&quot;\n    New-ItemProperty -Path $PathToWinlogon -Name DefaultPassword -Value $Password -PropertyType &quot;String&quot;\n}\n\n$Source = @'\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace MyLsaWrapper\n{\n    using System.Runtime.InteropServices;\n    using System.Security;\n    using System.Management;\n    using System.Runtime.CompilerServices;\n    using System.ComponentModel;\n\n    using LSA_HANDLE = IntPtr;\n\n    [StructLayout(LayoutKind.Sequential)]\n    struct LSA_OBJECT_ATTRIBUTES\n    {\n        internal int Length;\n        internal IntPtr RootDirectory;\n        internal IntPtr ObjectName;\n        internal int Attributes;\n        internal IntPtr SecurityDescriptor;\n        internal IntPtr SecurityQualityOfService;\n    }\n    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]\n    struct LSA_UNICODE_STRING\n    {\n        internal ushort Length;\n        internal ushort MaximumLength;\n        [MarshalAs(UnmanagedType.LPWStr)]\n        internal string Buffer;\n    }\n    sealed class Win32Sec\n    {\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern uint LsaOpenPolicy(\n        LSA_UNICODE_STRING[] SystemName,\n        ref LSA_OBJECT_ATTRIBUTES ObjectAttributes,\n        int AccessMask,\n        out IntPtr PolicyHandle\n        );\n\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern uint LsaAddAccountRights(\n        LSA_HANDLE PolicyHandle,\n        IntPtr pSID,\n        LSA_UNICODE_STRING[] UserRights,\n        int CountOfRights\n        );\n\n        [DllImport(&quot;advapi32&quot;, CharSet = CharSet.Unicode, SetLastError = true),\n        SuppressUnmanagedCodeSecurityAttribute]\n        internal static extern int LsaLookupNames2(\n        LSA_HANDLE PolicyHandle,\n        uint Flags,\n        uint Count,\n        LSA_UNICODE_STRING[] Names,\n        ref IntPtr ReferencedDomains,\n        ref IntPtr Sids\n        );\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaNtStatusToWinError(int NTSTATUS);\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaClose(IntPtr PolicyHandle);\n\n        [DllImport(&quot;advapi32&quot;)]\n        internal static extern int LsaFreeMemory(IntPtr Buffer);\n\n    }\n    \/\/\/ &lt;summary&gt;\n    \/\/\/ This class is used to grant &quot;Log on as a service&quot;, &quot;Log on as a batchjob&quot;, &quot;Log on localy&quot; etc.\n    \/\/\/ to a user.\n    \/\/\/ &lt;\/summary&gt;\n    public sealed class LsaWrapper : IDisposable\n    {\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_TRUST_INFORMATION\n        {\n            internal LSA_UNICODE_STRING Name;\n            internal IntPtr Sid;\n        }\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_TRANSLATED_SID2\n        {\n            internal SidNameUse Use;\n            internal IntPtr Sid;\n            internal int DomainIndex;\n            uint Flags;\n        }\n\n        [StructLayout(LayoutKind.Sequential)]\n        struct LSA_REFERENCED_DOMAIN_LIST\n        {\n            internal uint Entries;\n            internal LSA_TRUST_INFORMATION Domains;\n        }\n\n        enum SidNameUse : int\n        {\n            User = 1,\n            Group = 2,\n            Domain = 3,\n            Alias = 4,\n            KnownGroup = 5,\n            DeletedAccount = 6,\n            Invalid = 7,\n            Unknown = 8,\n            Computer = 9\n        }\n\n        enum Access : int\n        {\n            POLICY_READ = 0x20006,\n            POLICY_ALL_ACCESS = 0x00F0FFF,\n            POLICY_EXECUTE = 0X20801,\n            POLICY_WRITE = 0X207F8\n        }\n        const uint STATUS_ACCESS_DENIED = 0xc0000022;\n        const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;\n        const uint STATUS_NO_MEMORY = 0xc0000017;\n\n        IntPtr lsaHandle;\n\n        public LsaWrapper()\n            : this(null)\n        { }\n        \/\/ \/\/ local system if systemName is null\n        public LsaWrapper(string systemName)\n        {\n            LSA_OBJECT_ATTRIBUTES lsaAttr;\n            lsaAttr.RootDirectory = IntPtr.Zero;\n            lsaAttr.ObjectName = IntPtr.Zero;\n            lsaAttr.Attributes = 0;\n            lsaAttr.SecurityDescriptor = IntPtr.Zero;\n            lsaAttr.SecurityQualityOfService = IntPtr.Zero;\n            lsaAttr.Length = Marshal.SizeOf(typeof(LSA_OBJECT_ATTRIBUTES));\n            lsaHandle = IntPtr.Zero;\n            LSA_UNICODE_STRING[] system = null;\n            if (systemName != null)\n            {\n                system = new LSA_UNICODE_STRING[1];\n                system[0] = InitLsaString(systemName);\n            }\n\n            uint ret = Win32Sec.LsaOpenPolicy(system, ref lsaAttr,\n            (int)Access.POLICY_ALL_ACCESS, out lsaHandle);\n            if (ret == 0)\n                return;\n            if (ret == STATUS_ACCESS_DENIED)\n            {\n                throw new UnauthorizedAccessException();\n            }\n            if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))\n            {\n                throw new OutOfMemoryException();\n            }\n            throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));\n        }\n\n        public void AddPrivileges(string account, string privilege)\n        {\n            IntPtr pSid = GetSIDInformation(account);\n            LSA_UNICODE_STRING[] privileges = new LSA_UNICODE_STRING[1];\n            privileges[0] = InitLsaString(privilege);\n            uint ret = Win32Sec.LsaAddAccountRights(lsaHandle, pSid, privileges, 1);\n            if (ret == 0)\n                return;\n            if (ret == STATUS_ACCESS_DENIED)\n            {\n                throw new UnauthorizedAccessException();\n            }\n            if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))\n            {\n                throw new OutOfMemoryException();\n            }\n            throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));\n        }\n\n        public void Dispose()\n        {\n            if (lsaHandle != IntPtr.Zero)\n            {\n                Win32Sec.LsaClose(lsaHandle);\n                lsaHandle = IntPtr.Zero;\n            }\n            GC.SuppressFinalize(this);\n        }\n        ~LsaWrapper()\n        {\n            Dispose();\n        }\n        \/\/ helper functions\n\n        IntPtr GetSIDInformation(string account)\n        {\n            LSA_UNICODE_STRING[] names = new LSA_UNICODE_STRING[1];\n            LSA_TRANSLATED_SID2 lts;\n            IntPtr tsids = IntPtr.Zero;\n            IntPtr tdom = IntPtr.Zero;\n            names[0] = InitLsaString(account);\n            lts.Sid = IntPtr.Zero;\n            \/\/Console.WriteLine(&quot;String account: {0}&quot;, names[0].Length);\n            int ret = Win32Sec.LsaLookupNames2(lsaHandle, 0, 1, names, ref tdom, ref tsids);\n            if (ret != 0)\n                throw new Win32Exception(Win32Sec.LsaNtStatusToWinError(ret));\n            lts = (LSA_TRANSLATED_SID2)Marshal.PtrToStructure(tsids,\n            typeof(LSA_TRANSLATED_SID2));\n            Win32Sec.LsaFreeMemory(tsids);\n            Win32Sec.LsaFreeMemory(tdom);\n            return lts.Sid;\n        }\n\n        static LSA_UNICODE_STRING InitLsaString(string s)\n        {\n            \/\/ Unicode strings max. 32KB\n            if (s.Length &gt; 0x7ffe)\n                throw new ArgumentException(&quot;String too long&quot;);\n            LSA_UNICODE_STRING lus = new LSA_UNICODE_STRING();\n            lus.Buffer = s;\n            lus.Length = (ushort)(s.Length * sizeof(char));\n            lus.MaximumLength = (ushort)(lus.Length + sizeof(char));\n            return lus;\n        }\n    }\n    public class LsaWrapperCaller\n    {\n        public static void AddPrivileges(string account, string privilege)\n        {\n            using (LsaWrapper lsaWrapper = new LsaWrapper())\n            {\n                lsaWrapper.AddPrivileges(account, privilege);\n            }\n        }\n    }\n}\n'@\n\nAdd-Type -TypeDefinition $Source | Out-Null\n\n\n# -------------------------\n# \u041f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n# -------------------------\n$UserName    = &quot;Student&quot;\n$Password    = &quot;Student&quot;\n\nRemove-Users | Out-Null\nNew-User $UserName $Password | Out-Null\nSet-AutoLogon $UserName $Password | Out-Null\n[MyLsaWrapper.LsaWrapperCaller]::AddPrivileges($UserName, &quot;SeBatchLogonRight&quot;) | Out-Null\nwrite-host &quot;-- \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d \u0432\u0445\u043e\u0434 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $UserName&quot; -foregroundcolor Green\nschtasks \/create \/tn LogonUserSettings \/tr &quot;pwsh C:ScriptsSetupUser.ps1&quot; \/sc onlogon \/ru $env:USERDOMAIN$UserName \/rp $Password \/f\n<\/code><\/pre>\n<p><\/p>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0439 \u0438\u0437 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Student<\/h4>\n<p><\/p>\n<pre><code class=\"powershell\">Function Set-Proxy {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u043e\u043a\u0441\u0438\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u043a\u0441\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-Proxy a.cproxy.ru 8080\n    .PARAMETER Server\n        \u0410\u0434\u0440\u0435\u0441 \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Port\n        \u041f\u043e\u0440\u0442 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Server,\n        [PARAMETER(Mandatory=$True)][Int]$Port\n        )\n\n\tIf ((Test-NetConnection -ComputerName $Server -Port $Port).TcpTestSucceeded) {\n\t\tSet-ItemProperty -Path 'HKCU:SoftwareMicrosoftWindowsCurrentVersionInternet Settings' -name ProxyServer -Value &quot;$($Server):$($Port)&quot;\n\t\tSet-ItemProperty -Path 'HKCU:SoftwareMicrosoftWindowsCurrentVersionInternet Settings' -name ProxyEnable -Value 1\n\t} Else {\n\t\tWrite-Error -Message &quot;-- Invalid proxy server address or port:  $($Server):$($Port)&quot;\n\t}\n}\n\nFunction Set-AccessRule {\n    &lt;#\n    .SYNOPSIS\n        \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0430\u0432\u043a \u043d\u0430 \u043f\u0430\u043f\u043a\u0443\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0434\u0438\u0440\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e\n    .EXAMPLE\n        #Set-AccessRule -Folder $env:USERPROFILEDesktop  -UserName $env:USERNAME -Rules CreateFiles,AppendData -AccessControlType Deny\n    .PARAMETER Folder\n        \u0414\u0438\u0440\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER UserName\n        \u0418\u043c\u044f \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER Rules\n        \u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e(\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    .PARAMETER AccessControlType\n        \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u043c\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: Allow \u0438\u043b\u0438 Deny\n    #&gt;\n    [CmdletBinding()]\n    param (\n        [PARAMETER(Mandatory=$True)][String]$Folder,\n        [PARAMETER(Mandatory=$True)][String]$UserName,\n        [PARAMETER(Mandatory=$True)][String]$Rules,\n        [PARAMETER(Mandatory=$True)][String]$AccessControlType\n        )\n\n    #\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a ACL \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430\n    $acl = Get-Acl $Folder\n    #\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044e \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438\n    $fileSystemRights = [System.Security.AccessControl.FileSystemRights]&quot;$Rules&quot;\n    #C\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0442\u0438\u043f\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\n    $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($UserName, $fileSystemRights, $AccessControlType)\n    #\u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432 \u043a\u043b\u0430\u0441\u0441 FileSystemAccessRule \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\n    $acl.SetAccessRule($AccessRule)\n    #\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a \u043f\u0430\u043f\u043a\u0435\n    $acl | Set-Acl $Folder\n}\n\nfunction Set-PinnedApplication\n{\n    &lt;#\n    .SYNOPSIS\n        \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0440\u043b\u044b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\n    .DESCRIPTION\n        \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u044f\u0440\u043b\u044b\u043a\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n    .EXAMPLE\n        #Set-PinnedApplication -Action UnpinfromTaskbar -FilePath &quot;$env:ProgramFilesInternet Exploreriexplore.exe&quot;\n    .EXAMPLE\n        #Set-PinnedApplication -Action PintoTaskbar -FilePath &quot;${env:ProgramFiles(x86)}Mozilla Firefoxfirefox.exe&quot;\n    .PARAMETER Action\n        \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: UnpinfromTaskbar \u0438\u043b\u0438 PintoTaskbar\n    .PARAMETER FilePath\n        \u0418\u043c\u044f \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440)\n    #&gt;\n    [CmdletBinding()]\n    param(\n            [Parameter(Mandatory=$True)][String]$Action, \n            [Parameter(Mandatory=$True)][String]$FilePath\n    )\n    if(-not (test-path $FilePath)) { \n        throw &quot;FilePath does not exist.&quot;  \n    }\n    function InvokeVerb {\n        param([string]$FilePath,$verb)\n        $verb = $verb.Replace(&quot;&amp;&quot;,&quot;&quot;)\n        $path = split-path $FilePath\n        $shell = new-object -com &quot;Shell.Application&quot; \n        $folder = $shell.Namespace($path)   \n        $item = $folder.Parsename((split-path $FilePath -leaf))\n        $itemVerb = $item.Verbs() | ? {$_.Name.Replace(&quot;&amp;&quot;,&quot;&quot;) -eq $verb}\n        if($itemVerb -eq $null){\n            throw &quot;Verb $verb not found.&quot;           \n        } else {\n            $itemVerb.DoIt()\n        }\n    }\n    function GetVerb {\n        param([int]$verbId)\n        try {\n            $t = [type]&quot;CosmosKey.Util.MuiHelper&quot;\n        } catch {\n            $def = [Text.StringBuilder]&quot;&quot;\n            [void]$def.AppendLine('[DllImport(&quot;user32.dll&quot;)]')\n            [void]$def.AppendLine('public static extern int LoadString(IntPtr h,uint id, System.Text.StringBuilder sb,int maxBuffer);')\n            [void]$def.AppendLine('[DllImport(&quot;kernel32.dll&quot;)]')\n            [void]$def.AppendLine('public static extern IntPtr LoadLibrary(string s);')\n            Add-Type -MemberDefinition $def.ToString() -name MuiHelper -namespace CosmosKey.Util            \n        }\n        if($global:CosmosKey_Utils_MuiHelper_Shell32 -eq $null){        \n            $global:CosmosKey_Utils_MuiHelper_Shell32 = [CosmosKey.Util.MuiHelper]::LoadLibrary(&quot;shell32.dll&quot;)\n        }\n        $maxVerbLength=255\n        $verbBuilder = New-Object Text.StringBuilder &quot;&quot;,$maxVerbLength\n        [void][CosmosKey.Util.MuiHelper]::LoadString($CosmosKey_Utils_MuiHelper_Shell32,$verbId,$verbBuilder,$maxVerbLength)\n        return $verbBuilder.ToString()\n    }\n    $verbs = @{ \n        &quot;PintoTaskbar&quot;=5386\n        &quot;UnpinfromTaskbar&quot;=5387\n    }\n    if($verbs.$Action -eq $null){\n        Throw &quot;Action $action not supported`nSupported actions are:`n`tPintoTaskbar`n`tUnpinfromTaskbar&quot;\n    }\n    InvokeVerb -FilePath $FilePath -Verb $(GetVerb -VerbId $verbs.$action)\n}\n\nSet-Proxy cproxy.udsu.ru 8080\nSet-AccessRule -Folder $env:USERPROFILEDesktop  -UserName $env:USERNAME -Rules &quot;CreateFiles,AppendData,Delete&quot; -AccessControlType Deny\n\nSet-PinnedApplication -Action UnpinfromTaskbar -FilePath &quot;$env:ProgramFilesInternet Exploreriexplore.exe&quot;\nSet-PinnedApplication -Action PintoTaskbar -FilePath &quot;${env:ProgramFiles(x86)}Mozilla Firefoxfirefox.exe&quot;\nSet-PinnedApplication -Action PintoTaskbar -FilePath &quot;$env:ProgramDataMicrosoftWindowsStart MenuProgramsMicrosoft Office 2013Excel 2013.lnk&quot;\nSet-PinnedApplication -Action PintoTaskbar -FilePath &quot;$env:ProgramDataMicrosoftWindowsStart MenuProgramsMicrosoft Office 2013Word 2013.lnk&quot;\nSet-PinnedApplication -Action PintoTaskbar -FilePath &quot;$env:ProgramDataMicrosoftWindowsStart MenuProgramsMicrosoft Office 2013PowerPoint 2013.lnk&quot;\nSet-PinnedApplication -Action PintoTaskbar -FilePath &quot;$env:ProgramDataMicrosoftWindowsStart MenuPrograms\u0410\u0421\u041a\u041e\u041d\u041a\u041e\u041c\u041f\u0410\u0421-3D V16\u041a\u041e\u041c\u041f\u0410\u0421-3D V16.lnk&quot;\n\n# \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043f\u043e\u0441\u043b\u0435 \u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\nUnregister-ScheduledTask -TaskName UdSUSettingStudent -Confirm:$false\n<\/code><\/pre>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/514590\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 10 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Microsoft Windows 8.1. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u041f\u041e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0438 \u0421\u0442\u0443\u0434\u0435\u043d\u0442. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443 \u0421\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0442\u0440\u0443\u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u044f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":91334,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-91333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 10 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Microsoft Windows 8.1. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u041f\u041e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0438 \u0421\u0442\u0443\u0434\u0435\u043d\u0442. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443 \u0421\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0442\u0440\u0443\u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u044f\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"et_EE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0430 Powershell | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 10 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Microsoft Windows 8.1. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u041f\u041e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0438 \u0421\u0442\u0443\u0434\u0435\u043d\u0442. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443 \u0421\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0442\u0440\u0443\u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u044f\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-11T17:42:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-11T17:42:31+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Klassiruumi haldamise automatiseerimine PowerShelli abil | ProHoster","description":"Olen juba mitu aastat \u00fclikoolis toetanud 10 t\u00f6\u00f6jaama, mis t\u00f6\u00f6tavad Microsoft Windows 8.1 operatsioonis\u00fcsteemil. Toetuse peamine sisu on vajalik \u00f5ppeprotsessiks vajalike programmid installimine ja \u00fcldise t\u00f6\u00f6korrasoleku tagamine. Igal jaamal on 2 kasutajat: administraator ja \u00fcli\u00f5pilane. Administratooril on t\u00e4ielik juhtimis\u00f5igus, \u00fcli\u00f5pilasel puudub tarkvara installimise v\u00f5imalus. Et end mitte koormata,","canonical_url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"et_EE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0430 Powershell | ProHoster","og:description":"\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 10 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Microsoft Windows 8.1. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u041f\u041e \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0438 \u0421\u0442\u0443\u0434\u0435\u043d\u0442. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443 \u0421\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041f\u041e. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0442\u0440\u0443\u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u044f","og:url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/avtomatizacziya-obsluzhivaniya-kompyuternogo-klassa-na-powershell","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-08-11T17:42:31+00:00","article:modified_time":"2020-08-11T17:42:31+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"91333","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:29:23","updated":"2022-09-29 02:13:46"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/91333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/comments?post=91333"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/91333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media\/91334"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media?parent=91333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/categories?post=91333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/tags?post=91333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}