Files
Zack Meier 1d304511b8 update
2026-04-15 15:45:50 -05:00

56 lines
1.4 KiB
PowerShell

<#
.SYNOPSIS
A short one-line action-based description, e.g. 'Tests if a function is valid'
.DESCRIPTION
A longer description of the function, its purpose, common use cases, etc.
.NOTES
Information or caveats about the function e.g. 'This function is not supported in Linux'
.LINK
Specify a URI to a help page, this will show when Get-Help -Online is used.
.EXAMPLE
Test-MyTestFunction -Verbose
Explanation of the function or its result. You can include multiple examples with additional .EXAMPLE lines
#>
function Get-ITDServiceNowTable {
[CmdletBinding()]
param (
[string]
$ItemType
)
begin {
}
process {
switch ($ItemType) {
'Incident' {
$Table = 'incident'
}
'Change Request' {
$Table = 'change_request'
}
'Request' {
$Table = 'sc_request'
}
'Request Item' {
$Table = 'sc_req_item'
}
'Catalog Task' {
$Table = 'sc_task'
}
'cmdb_ci_server_list' {
$Table = 'cmdb_ci_server_list'
}
'cmdb_ci_win_server' {
$Table = 'cmdb_ci_win_server'
}
}
}
end {
Write-Verbose $Table
Write-Output $Table
}
}