
{"id":301,"date":"2026-06-17T14:38:00","date_gmt":"2026-06-17T14:38:00","guid":{"rendered":"https:\/\/tylergaytan.com\/?p=301"},"modified":"2026-06-17T14:38:00","modified_gmt":"2026-06-17T14:38:00","slug":"introduction-into-powershell-and-rsat","status":"publish","type":"post","link":"https:\/\/tylergaytan.com\/?p=301","title":{"rendered":"Introduction into powerShell and RSAT"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Start by logging into the DC server as the administrator. Press the Windows button and search PowerShell. Right click it and run as administrator. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starting off, lets notice that we can use some similar commands in PowerShell.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"719\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-094500.png\" alt=\"\" class=\"wp-image-302\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-094500.png 1015w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-094500-300x213.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-094500-768x544.png 768w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">PowerShell uses cmdlets. These can be powerful tools for using enhanced functions of the operating system into effect. They use a capitalized verb-and-noun pair conjoined with a dash for the syntax. We can find a list of all the cmdlets with the following: Get-Command -Module Microsoft.Powershell.Management<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"719\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095117.png\" alt=\"\" class=\"wp-image-304\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095117.png 1025w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095117-300x210.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095117-768x539.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"700\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095128.png\" alt=\"\" class=\"wp-image-306\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095128.png 1008w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095128-300x208.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095128-768x533.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, we can find information on cmdlets with the Get-Help command. This is similar to bash &#8211;help and info command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"713\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095838.png\" alt=\"\" class=\"wp-image-308\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095838.png 1009w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095838-300x212.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-095838-768x543.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8220;New-Item&#8221; cmdlet creates a file. As you seen in the command below, I used this to create a text file. You can use the &#8220;Get-Item&#8221; cmdlet to see information on the file and the &#8220;Get-Content&#8221; cmdlet to display the file&#8217;s information. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"37\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100211.png\" alt=\"\" class=\"wp-image-309\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100211.png 1019w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100211-300x11.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100211-768x28.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"279\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100332.png\" alt=\"\" class=\"wp-image-310\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100332.png 1019w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100332-300x82.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100332-768x210.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, we will download RSAT. Go to Setting, System, scroll to the bottom and click Optional features. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"716\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100428.png\" alt=\"\" class=\"wp-image-311\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100428.png 1012w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100428-300x212.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-100428-768x543.png 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Search available features. I know in the screenshot that I am searching added features, but RSAT did not populate for me. If it does for you, add the feature. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"722\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-105003.png\" alt=\"\" class=\"wp-image-313\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-105003.png 1014w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-105003-300x214.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-105003-768x547.png 768w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If RSAT did not populate for you, open control panel and select &#8220;Turn Windows features on or off&#8221; under Programs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"715\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104826.png\" alt=\"\" class=\"wp-image-314\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104826.png 1019w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104826-300x211.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104826-768x539.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This will take you to the Add Roles and Features Wizard. keep the defaults for everything until you get to features. Select all the features under Feature Administration Tools. I kept the defaults for the rest of the installation. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"715\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104731.png\" alt=\"\" class=\"wp-image-315\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104731.png 1012w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104731-300x212.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-16-104731-768x543.png 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once they have finished installing, we can run &#8220;Get-Module -Name ActiveDirectory -ListAvailable&#8221; to confirm that we have the module downloaded. We can look at all the cmdlets associated with this as well by running &#8220;Get-Module -Name ActiveDirectory -ListAvailable&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"713\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092136.png\" alt=\"\" class=\"wp-image-318\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092136.png 934w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092136-300x229.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092136-768x586.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">One usefule command is the Get-ADUser command. This can show a lot of details about users such as when there account was made, when they last logged in, when their password expires, etc. The command in the following screenshot is Get-ADUser jackreacher -Properties *<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep in mind that the &#8220;*&#8221; will grab all the result pertaining to properties and jackreacher. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"575\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092240.png\" alt=\"\" class=\"wp-image-319\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092240.png 903w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092240-300x191.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092240-768x489.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We can build on this command by piping the results to select specific details. In the screenshot below I used Get-ADUser jackreacher -Properties * | select name, pass*<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will give us the name and everything that starts with &#8220;pass&#8221;. This is useful to look up information on password details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"988\" height=\"233\" src=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092617.png\" alt=\"\" class=\"wp-image-320\" srcset=\"https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092617.png 988w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092617-300x71.png 300w, https:\/\/tylergaytan.com\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-17-092617-768x181.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for reviewing this lab! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Start by logging into the DC server as the administrator. Press the Windows button and search PowerShell. Right click it and run as administrator. Starting off, lets notice that we can use some similar commands in PowerShell. PowerShell uses cmdlets. These can be powerful tools for using enhanced functions of the operating system into effect. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-active-directory-home-lab"],"_links":{"self":[{"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=301"}],"version-history":[{"count":2,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":321,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=\/wp\/v2\/posts\/301\/revisions\/321"}],"wp:attachment":[{"href":"https:\/\/tylergaytan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tylergaytan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}