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 to do it...

Follow these steps to build and execute our first PowerShell script:

  1. Open the Start menu and type Windows PowerShell ISE. Right-click to launch this tool as an administrator. Windows PowerShell ISE is an editor for PowerShell scripts that is much more useful than opening a simple text editor such as Notepad in order to build our script:
  1. Navigate to File | New from the menus in order to open a blank .ps1 script file.
  2. In your first line, type the following: Write-Host "Hello! Here is the current date and time:".
  3. From the toolbar menu, click the green arrow that says Run Script. Alternatively, you can simply press the F5
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