Chapter 28. Creating and Running PowerShell Scripts

This chapter provides information and commands concerning the following topics:

Setting the security context

Creating a PowerShell profile

Creating and modifying the Global PowerShell profile

Running PowerShell Scripts

Flushing the DNS cache

Creating a list of domain computers

Logging processes with a get-process script

Testing for the existence of a file

Creating output as HTML

Running a script against multiple computers

Creating a PowerShell message box

Scheduling PowerShell scripts

Setting the Security Context

PowerShell has different levels of security set by an execution policy. If you don’t modify the execution policy, you won’t be able to run any scripts. These ...

Get Windows 7 Portable Command Guide: MCTS 70-680, and MCITP 70-685 and 70-686 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.