15.6. Summary
Windows PowerShell allows you to explore aspects of the system on which it is running. You can work with locations in multiple providers. I introduced the following cmdlets:
get-location — Returns the current location
push-location — Pushes a location on to the default stack or a named stack
pop-location — Retrieves a location from the default stack or a named stack
You can explore aliases, functions, variables, and environment variables.
PowerShell provides several cmdlets that allow you to work with services that are registered on a system:
get-service — Allows you to retrieve information about registered services
new-service — Registers a service
restart-service — Restarts a service
set-service — Changes one or more properties of a service
start-service — Starts a service
stop-service — Stops a service
suspend-service — Pauses a service
restart-service — Restarts a paused service
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.
Read now
Unlock full access