{"id":746,"date":"2017-12-23T08:00:42","date_gmt":"2017-12-22T23:00:42","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=746"},"modified":"2021-09-30T08:59:39","modified_gmt":"2021-09-29T23:59:39","slug":"ps-get-localgroup","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/powershell\/ps-get-localgroup","title":{"rendered":"PowerShell &#8211; \u30ed\u30fc\u30ab\u30eb\u30b0\u30eb\u30fc\u30d7\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>\u69cb\u6210\u3092\u7ba1\u7406\u3059\u308b\u4e0a\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u540c\u69d8\u306b\u30ed\u30fc\u30ab\u30eb\u30b0\u30eb\u30fc\u30d7\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u7ba1\u7406\u306f\u89b3\u70b9\u304b\u3089\u3082\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30b0\u30eb\u30fc\u30d7\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Get-WmiObject Win32_Group | ? { $_.LocalAccount -eq $true }<\/code><\/pre>\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Caption                                             Domain          Name                                SID\r\n-------                                             ------          ----                                ---\r\nDESKTOP-4QPJVAK\\Access Control Assistance Operators DESKTOP-4QPJVAK Access Control Assistance Operators S-1-5-32-579\r\nDESKTOP-4QPJVAK\\Administrators                      DESKTOP-4QPJVAK Administrators                      S-1-5-32-544\r\nDESKTOP-4QPJVAK\\Backup Operators                    DESKTOP-4QPJVAK Backup Operators                    S-1-5-32-551\r\nDESKTOP-4QPJVAK\\Cryptographic Operators             DESKTOP-4QPJVAK Cryptographic Operators             S-1-5-32-569\r\nDESKTOP-4QPJVAK\\Distributed COM Users               DESKTOP-4QPJVAK Distributed COM Users               S-1-5-32-562\r\nDESKTOP-4QPJVAK\\Event Log Readers                   DESKTOP-4QPJVAK Event Log Readers                   S-1-5-32-573\r\nDESKTOP-4QPJVAK\\Guests                              DESKTOP-4QPJVAK Guests                              S-1-5-32-546\r\nDESKTOP-4QPJVAK\\Hyper-V Administrators              DESKTOP-4QPJVAK Hyper-V Administrators              S-1-5-32-578\r\nDESKTOP-4QPJVAK\\IIS_IUSRS                           DESKTOP-4QPJVAK IIS_IUSRS                           S-1-5-32-568\r\nDESKTOP-4QPJVAK\\Network Configuration Operators     DESKTOP-4QPJVAK Network Configuration Operators     S-1-5-32-556\r\nDESKTOP-4QPJVAK\\Performance Log Users               DESKTOP-4QPJVAK Performance Log Users               S-1-5-32-559\r\nDESKTOP-4QPJVAK\\Performance Monitor Users           DESKTOP-4QPJVAK Performance Monitor Users           S-1-5-32-558\r\nDESKTOP-4QPJVAK\\Power Users                         DESKTOP-4QPJVAK Power Users                         S-1-5-32-547\r\nDESKTOP-4QPJVAK\\Remote Desktop Users                DESKTOP-4QPJVAK Remote Desktop Users                S-1-5-32-555\r\nDESKTOP-4QPJVAK\\Remote Management Users             DESKTOP-4QPJVAK Remote Management Users             S-1-5-32-580\r\nDESKTOP-4QPJVAK\\Replicator                          DESKTOP-4QPJVAK Replicator                          S-1-5-32-552\r\nDESKTOP-4QPJVAK\\System Managed Accounts Group       DESKTOP-4QPJVAK System Managed Accounts Group       S-1-5-32-581\r\nDESKTOP-4QPJVAK\\Users                               DESKTOP-4QPJVAK Users                               S-1-5-32-545<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5217\u5e45\u306e\u8abf\u6574\u3057\u3066\u8868\u793a\u3059\u308b\u5834\u5408\u306e\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Get-WmiObject Win32_Group | ? { $_.LocalAccount -eq $true } | Format-table -autosize -wrap<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h4><strong>\u88dc\u8db3<\/strong><\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3059\u308b\u5834\u5408\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Get-WmiObject Win32_Group | ? { $_.LocalAccount -eq $true } | Format-table -autosize -wrap | Out-File -encoding Default GroupAccount.txt<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u69cb\u6210\u3092\u7ba1\u7406\u3059\u308b\u4e0a\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u540c\u69d8\u306b\u30ed\u30fc\u30ab\u30eb\u30b0\u30eb\u30fc\u30d7\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u7ba1\u7406\u306f\u89b3\u70b9\u304b\u3089\u3082\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002 \u4eca\u56de\u306f\u30b0\u30eb\u30fc\u30d7\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u307e\u3059\u3002 &nbsp; &#038;nbsp&#8230;<\/p>\n","protected":false},"author":3,"featured_media":806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[81],"tags":[82],"class_list":["post-746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-82"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo-powershell.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-c2","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=746"}],"version-history":[{"count":15,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/746\/revisions"}],"predecessor-version":[{"id":2620,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/746\/revisions\/2620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/806"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}