Windows Server 2022 & Powershell All-in-One For Dummies. Sara Perrott

Читать онлайн книгу.

Windows Server 2022 & Powershell All-in-One For Dummies - Sara Perrott


Скачать книгу
to find other commands even if y...FIGURE 1-5: The PowerShell ISE is a very powerful tool for writing PowerShell s...FIGURE 1-6: The Select Additional Tasks screen allows you to customize how and ...FIGURE 1-7: After VS Code is installed, you can install the PowerShell extensio...FIGURE 1-8: The PowerShell Command Explorer windows shows you PowerShell cmdlet...FIGURE 1-9: Creating an array variable and displaying an array variable are ver...FIGURE 1-10: Using a pipeline with $_ to pass on the output of the first cmdlet...FIGURE 1-11: Viewing the available modules in PowerShell gives you an idea of h...FIGURE 1-12: If you’re trying to determine whether one object matches another, ...FIGURE 1-13: Adding -NoEnumerate tells PowerShell to treat arrays differently t...FIGURE 1-14: The ConvertTo-Html cmdlet can be used to convert the output of a p...FIGURE 1-15: The output of Get-Process is normally in a table format.FIGURE 1-16: Get-Process formatted into a list rather than the usual table form...FIGURE 1-17: You can use Format-Wide to nicely format and present data in table...FIGURE 1-18: Interacting with a remote server is intuitive after connecting to ...FIGURE 1-19: Updating the help pages for your PowerShell modules.FIGURE 1-20: Signing a script allows it to run even in a restrictive environmen...FIGURE 1-21: A demonstration of what you see when running an unsigned script, s...

      30 Book 6 Chapter 2FIGURE 2-1: The .NET Framework expands the functionality of PowerShell greatly ...FIGURE 2-2: You can view the contents of the GAC with the Developer Command Pro...FIGURE 2-3: You need to use PowerShell to view the assembly properties in Windo...

      31 Book 6 Chapter 3FIGURE 3-1: The Reference page from Microsoft’s website contains hundreds of cm...FIGURE 3-2: Checking the properties of COM objects is similar to checking the p...FIGURE 3-3: Get-SmbShare is a very powerful cmdlet that gives you the ability t...FIGURE 3-4: Creating a user in PowerShell is quick, and the user shows up almos...FIGURE 3-5: Running your query and having the information on the screen can be ...

      32 Book 6 Chapter 4FIGURE 4-1: PowerShell Gallery is an excellent resource to download or see exam...FIGURE 4-2: Using CSV files to import data sets for scripts is a simple way to ...FIGURE 4-3: The basic anatomy of an advanced function includes [CmdletBinding()...FIGURE 4-4: Testing your function is important to do, and it’s simple from with...FIGURE 4-5: You can run your advanced function in your PowerShell console.

      33 Book 6 Chapter 5FIGURE 5-1: The service name is displayed within the services.msc panel for eac...FIGURE 5-2: Checking the current settings for LCM is simple to do in PowerShell...FIGURE 5-3: Compiling the PS1 into an MOF file is done by running the PowerShel...FIGURE 5-4: The DSC script has been compiled and has been run; you can see the ...

      34 Book 7 Chapter 1FIGURE 1-1: You must select a network adapter for the virtual switch to use. Yo...FIGURE 1-2: To enable live migration of VMs, select the check box to allow them...FIGURE 1-3: The menu for the host in Hyper-V Manager presents you with your con...FIGURE 1-4: NUMA Spanning can be helpful in lab and development environments wh...FIGURE 1-5: Live Migration allows virtual machines to move between hosts with n...FIGURE 1-6: Configuring a Hyper-V Replica server is a great addition to your or...FIGURE 1-7: The Virtual Switch Manager allows you to configure virtual network ...FIGURE 1-8: Hyper-V offers support for Fibre Channel SANs, which is a huge bene...

      35 Book 7 Chapter 2FIGURE 2-1: Launching the New Virtual Machine Wizard.FIGURE 2-2: Selecting a virtual switch allows your virtual machine to connect o...FIGURE 2-3: To create the virtual hard disk, you specify the name, size, and lo...FIGURE 2-4: Your newly created virtual machine is listed in the Virtual Machine...FIGURE 2-5: The Firmware screen allows you to change the boot order of the devi...FIGURE 2-6: The Memory screen allows you to adjust how memory is handled by the...FIGURE 2-7: Each SCSI device has a configuration page that allows you to config...

      36 Book 7 Chapter 3FIGURE 3-1: Under Connection Type, you need to select External Network and sele...FIGURE 3-2: Creating an external virtual switch requires finding the name of th...FIGURE 3-3: All your virtual switches will show up in the Virtual Switch Manage...FIGURE 3-4: To enable VLAN tagging on the virtual switch, you need to select th...FIGURE 3-5: To enable VLAN tagging on the VM, select the check box and set the ...FIGURE 3-6: Setting a maximum amount of bandwidth for a VM can prevent the VM f...FIGURE 3-7: To support NIC teaming, you must create two virtual switches connec...FIGURE 3-8: The NIC Teaming screen is where you can set up the network adapters...FIGURE 3-9: Configuring the team can be simple, or it can be a bit more advance...FIGURE 3-10: The configured NIC Team gives you the health status and statistics...FIGURE 3-11: You must enable SR-IOV on the virtual switch before you can enable...FIGURE 3-12: The option to enable SR-IOV is in the Hardware Acceleration sectio...

      37 Book 7 Chapter 4FIGURE 4-1: After the disks are installed, they must be brought online and init...FIGURE 4-2: With the storage added to the server, initialized, and formatted, i...FIGURE 4-3: The default save location for my virtual hard disks is now the G:\ ...FIGURE 4-4: Creating a disk in a Generation 1 VM gives you the option of an IDE...FIGURE 4-5: Expanding a disk is done by selecting Edit when the hard drive is s...FIGURE 4-6: You need to verify that you have an available disk that is showing ...FIGURE 4-7: When you select physical hard disk, the offline disk that was added...FIGURE 4-8: Converting a VHD file to a VHDX file in PowerShell involves far few...

      38 Book 7 Chapter 5FIGURE 5-1: You must set up the replica server first, before you can replicate ...FIGURE 5-2: Hyper-V Replica communications need to be allowed through the firew...FIGURE 5-3: Make sure that the connection parameters match what you set on the ...FIGURE 5-4: Setting the initial replication parameters gets the replication sta...FIGURE 5-5: This message indicates that the initial replication was successful ...FIGURE 5-6: You must grant permissions on the source system for the destination...FIGURE 5-7: Live migration does not impact the uptime of the machine.FIGURE 5-8: It’s always a good idea to run the cluster validation tools to ensu...FIGURE 5-9: The failover cluster has been created and has been assigned the Hyp...FIGURE 5-10: You have several options for configuring a quorum witness.

      39 Book 8 Chapter 1FIGURE 1-1: Container architecture on Windows Server involves several layers an...FIGURE 1-2: The GitHub repository where Microsoft stores examples of Dockerfile...

      40 Book 8 Chapter 2FIGURE 2-1: The search box on Docker Hub makes it simple to find public contain...FIGURE 2-2: You can filter for just verified publishers in Docker Hub, which en...FIGURE 2-3: You can see how many times a container image has been pulled.FIGURE 2-4: You can get started with Docker Hub with very minimal information —...FIGURE 2-5: Your repository is empty when you first create it, but it contains ...FIGURE 2-6: You can use the Docker commands to push images to your private repo...FIGURE 2-7: My tagged container image, ltsc2022, shows up in Docker Hub after I...

      41 Book 8 Chapter 3FIGURE 3-1: To use Windows Containers, you only need to install the Containers ...FIGURE 3-2: When setting up Hyper-V, you can provision the virtual switch at th...FIGURE 3-3: It takes two PowerShell cmdlets to install Docker on Windows Server...FIGURE 3-4: The simple hello world container can be used to quickly test your D...FIGURE 3-5: Downloading the sample container from Docker Hub is simple using th...FIGURE 3-6: You get an error if you try to run a container image that does not ...FIGURE 3-7: The container image was used to create a container named quizzical_...

      42 Book 8 Chapter 4FIGURE 4-1: Creating the dockerfile with no extension in Notepad.FIGURE 4-2: The docker build command allows you to build a container from the i...FIGURE 4-3: The docker inspect command allows you to view the metadata of a con...

      43 Book 8 Chapter 5FIGURE 5-1: Creating the container is as simple as identifying the container im...FIGURE 5-2: After you connect to a container, you can make changes to it like a...FIGURE 5-3: After you stop the container, you can commit the changes you have m...FIGURE 5-4: You can use the docker push command to push to your private reposit...FIGURE 5-5: Docker Hub makes it easy to get started pulling container images be...FIGURE 5-6: You can use tags to track version numbers on your container images.

      44 Book 8 Chapter 6FIGURE 6-1: When you run the Docker Engine for the first time, a NAT network co...FIGURE 6-2: You can check to see which virtual switches are defined on your con...FIGURE 6-3: You can create a NAT network for container hosts with the docker ne...FIGURE 6-4: Creating a transparent network connection automatically creates the...FIGURE 6-5: The creation of the l2bridge is very


Скачать книгу