Using the powershell script to – HP ProLiant DL980 G7 Server User Manual

Page 76

Advertising
background image

NOTE:

Before running any PowerShell script, you should set the PowerShell execution policy to

either RemoteSigned or Unrestricted, as follows:
1.

Set the systemwide PowerShell execution policy (32-bit)
a.

Select Start

→All Programs→Accessories (or Administrative Tools in Windows Server 2012

or later)

→Windows PowerShell→Windows PowerShell ISE (x86)

b.

In the bottom pane of the PowerShell ISE (x86) window, enter either of the following
commands:

set-executionpolicy RemoteSigned

The RemoteSigned policy requires that downloaded scripts be signed by a trusted
publisher before they can be run.

set-executionpolicy Unrestricted

The Unrestricted policy removes all restrictions; all Windows PowerShell scripts
can be run.

To run the command, press Enter on your keyboard.

2.

Set the systemwide PowerShell execution policy (64-bit)
a.

Select Start

→All Programs→Accessories (or Administrative Tools in Windows Server 2012

or later)

→Windows PowerShell→Windows PowerShell ISE

b.

In the bottom pane of the PowerShell ISE window, enter either of the following commands:

set-executionpolicy RemoteSigned

The RemoteSigned policy requires that downloaded scripts be signed by a trusted
publisher before they can be run.

set-executionpolicy Unrestricted

The Unrestricted policy removes all restrictions; all Windows PowerShell scripts
can be run.

To run the command, press Enter on your keyboard.

Should you want to restore your original execution policy, use the following command:

set-executionpolicy

After you finish using the HP ESO PowerShell script, HP strongly recommends setting security back
to the default by using the set-executionpolicy Restricted command. This prevents
unsecured scripts from being run and restricts use of Windows PowerShell to interactive mode.

NOTE:

HP recommends using PowerShell ISE (64-bit) to edit and run PowerShell scripts generated

by HP ESO. PowerShell ISE (32-bit) may not have access to some registry settings. If you are logged
into the OS through a domain account, run ISE as an Administrator. (Right click Windows
PowerShell; in the menu, click Run ISE as Administrator.

Using the PowerShell script to apply HP ESO optimization recommendations for all
settable parameters

The PowerShell Script downloaded from the HP ESO Summary page contains recommended values
for settable parameters. The recommended values are gathered from all the optimization pages.

You can edit and run the PowerShell script in the PowerShell ISE on the current local client.

Figure 67

(page 77)

shows an example of such a PowerShell script.

76

Using HP ESO

Advertising