From 9b4ded37e8137a635cafa85b5e6d38918911f407 Mon Sep 17 00:00:00 2001 From: NoPreserveRoot Date: Sat, 23 Oct 2021 22:25:21 -0400 Subject: [PATCH] get-history: add page (#7126) --- pages/windows/get-history.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/windows/get-history.md diff --git a/pages/windows/get-history.md b/pages/windows/get-history.md new file mode 100644 index 0000000000..8ae85292de --- /dev/null +++ b/pages/windows/get-history.md @@ -0,0 +1,16 @@ +# Get-History + +> Display PowerShell command history. +> More information: . + +- Display the commands history list with ID: + +`Get-History` + +- Get PowerShell history item by ID: + +`Get-History -Id {{id}}` + +- Display the last N commands: + +`Get-History -Count {{count}}`