Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Description
Back up your Hyper-V VMs Easy & Fast. 100% built for Hyper-V. Free for 2 VMs, forever.
Usage
Options
-Path string
The path to the console file (*.psc1).
-force
Override restrictions that prevent the command from succeeding, apart
from security settings. e.g. Force will override a files read-only attribute,
but will attempt to reset the read-only attribute when the command completes.
-noClobber
Do not overwrite the contents of an existing file.
The default is to overwrite without warning.
-whatIf
Describe what would happen if you executed the command without actually
executing the command.
-confirm
Prompt for confirmation before executing the command.
CommonParameters:
-Verbose, -Debug,-ErrorAction,-ErrorVariable, -OutVariable.
Example(s)
Export the current console configuration:
PS C:>export-console -path $pshome\Consoles\ConsoleS1.psc1
The $pshome variable holds the path to the PowerShell home (installation) folder.
Start a Windows PowerShell session with a set of stored console settings:
PS C:>powershell.exe -PsConsoleFile $pshome\Consoles\ConsoleS1.psc1