Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.12 KB

Powershell-ServiceWatch

Powershell functions for ServiceWatch (from ServiceNow) related tasks

The ServiceWatch Powershell module currently contains 4 functions:

PS C:\> Import-Module ServiceWatch
PS C:\> Get-Command -Module ServiceWatch

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Function        Export-ServiceWatchKnowledgebase                   ServiceWatch
Function        Get-ServiceWatchStatus                             ServiceWatch
Function        Get-ServiceWatchVersion                            ServiceWatch
Function        New-ServiceWatchSession                            ServiceWatch

Get-ServiceWatchVersion is the only function that can be run without having to create a session with New-ServiceWatchSession first.

Functions can be run as follows:

$session = New-ServiceWatchSession -cn srvmgt025 -credential (get-credential)
$session | Get-ServiceWatchVersion
$session | Get-ServiceWatchStatus 
$session | Export-ServiceWatchKnowledgebase -Destination D:\exports\