Mastering Windows PowerShell for Automated Management: Hengyi Course AZ040 Recap and Notes

2023-12-06 06:19:30
Hengyi Course: Microsoft – AZ040 Using Windows PowerShell for Automated Management Preface: Organize your notes from classes at Hengyi Education and Training Center. Previous article: Day-2 course uses PowerShell for automated management (1) Next article: Day-2 course uses PowerShell for automated management (3) Notes are also divided into two halves in the morning and followingnoon for easy organization. The first half mainly describes how to use PowerShell to control Windows-related settings, create and operate User Account in Active Directory Server, perform Windows Server Network Config operations, perform Windows Server Firewall operations, introduce the purpose of Active Directory Server GPO, and perform IIS Web operations. 3. Perform Windows Server Firewall operations. Retrieve information regarding enabled (Enabled to True) firewall rules. Use Get-NetFirewallRule to retrieve information regarding enabled firewall rules. Get-NetFirewallRule -Enabled True and display the help information for the Get-NetFirewallRule cmdlet in a window. Help Get-NetFirewallRule –ShowWindow Enable (Enabled is True) firewall rule information, select specific attributes, then sort by the specified attributes, and finally display them in groups according to profiles. Personal opinion: It’s a pity that I didn’t practice the operation of New-NetFirewallRule here, and I passed it too quickly. You may have to make up for yourself later. 4. Introducing the use of Active Directory Server GPO. Personal opinion: This is the most regrettable thing. It is completely explained and has no actual operations and exercises. 5. Perform IIS Web operations to install the Web server (IIS) role on the server. Install the Web server role (Web Server) on the Windows server. The purpose of this command is to install IIS (Internet Information Services) as a role on the server to enable the Web server function. Install-WindowsFeature Web-Server creates a website file folder on the server. New-Item is a PowerShell command used to create a new file or directory. New-Item C:inetpubwwwrootLondon -Type directory Create IIS website New-IISSite is a PowerShell command for creating a new website in IIS. In this example, the purpose of the command is to create a website named “London” with the physical path C:inetpubwwwrootLondon and bind the website to the IP address 172.16.0.11 and port 8080. New-IISSite London -PhysicalPath C:inetpubwwwrootlondon -BindingInformation “172.16.0.11:8080:” What I gained this time: To be honest, I only used the part of operating GPO in my work, and I haven’t touched the rest yet, so This course is regarding feeling, understanding and getting started.
1701919335
#Day2 #PowerShell #automated #management #Fanggezi #vocus

Leave a Replay