Skip to Content
Windows Server 2016 Administration Cookbook
book

Windows Server 2016 Administration Cookbook

by Jordan Krause
April 2018
Intermediate to advanced content levelIntermediate to advanced
248 pages
7h 18m
English
Packt Publishing
Content preview from Windows Server 2016 Administration Cookbook

How it works...

In this recipe, we created a fun little script that asks for a server name and outputs the last boot information for the server entered. One of PowerShell's greatest attributes is its ability to grab information, both locally on the machine where you are running the script and on remote machines. This saves time, since you don't have to log into those servers to accomplish tasks, and makes your work environment more efficient.

One note on this particular script that we created, you don't have to run it as a first step and then take a second step in order to enter the server name. You are able to place the ServerName variable into your initial command when you launch the script. For example, open PowerShell and input the following ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Server 2016 Cookbook

Windows Server 2016 Cookbook

Jordan Krause

Publisher Resources

ISBN: 9781789135930Other