Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By : Thomas Lee, Ed Goad
Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By: Thomas Lee, Ed Goad

Overview of this book

This book showcases several ways that Windows administrators can use to automate and streamline their job. You'll start with the PowerShell and Windows Server fundamentals, where you'll become well versed with PowerShell and Windows Server features. In the next module, Core Windows Server 2016, you'll implement Nano Server, manage Windows updates, and implement troubleshooting and server inventories. You'll then move on to the Networking module, where you'll manage Windows network services and network shares. The last module covers Azure and DSC, where you will use Azure on PowerShell and DSC to easily maintain Windows servers.
Table of Contents (21 chapters)
Title Page
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Accessing SMB shares


In the recipe Creating and securing SMB shares, you set up the shared files on the FS1 server. In this recipe, you access and use the shared folders.

Getting ready

This recipe uses two servers—on one (FS1) you previously shared a few folders. In this recipe, you also utilize those shared files from server DC1. As with all recipes in this book, feel free to change the servers and folders being shared and used. Ensure you have a C:\Foo folder on FS1 created and populated with a few test files.

This recipe also uses a file on the C:\Foo folder on FS1Marsinstaller.exe. This executable is created using the Creating an Azure backup recipe in Chapter 5, Managing Server Backup chapter. Feel free to use a different file and update step 8 appropriately.

How to do it...

  1. Examine the SMB client's configuration:
Get-SmbClientConfiguration
  1. You will require SMB signing from the client. You must run this command from an elevated console on the client computer:
Set-SmbClientConfiguration `
...