This guide provides several simple examples for how to use this module. For more information on the commands in this module, please see the Module Documentation.
Import-WinModule Microsoft.PowerShell.Management
Get-EventLog -Newest 5 -LogName "Application"
$Credential = Get-Credential
Initialize-WinSession -ComputerName SQLSERVER01 -Credential $Credential
Import-WinModule Microsoft.PowerShell.Management
Get-EventLog -Newest 5 -LogName "Application"
Add-WinFunction -FunctionName Get-WinPSVersion -ScriptBlock {
$PSVersionTable
}
Get-WinPSVersion
Invoke-WinCommand -ScriptBlock { $PSVersionTable }
Compare-WinModule