{"id":20361,"date":"2024-05-30T13:54:04","date_gmt":"2024-05-30T17:54:04","guid":{"rendered":"https:\/\/kevinjustin.com\/blog\/?p=20361"},"modified":"2024-05-30T14:05:47","modified_gmt":"2024-05-30T18:05:47","slug":"test-snow-script","status":"publish","type":"post","link":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/","title":{"rendered":"Test SNOW script"},"content":{"rendered":"<figure id=\"attachment_20362\" aria-describedby=\"caption-attachment-20362\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-20362\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png\" alt=\"Test SNOW script - Testing, attention please!\" width=\"300\" height=\"189\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics.png 648w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-20362\" class=\"wp-caption-text\">Test SNOW script &#8211; Testing, attention please!<\/figcaption><\/figure>\n<p>Time to &#8216;Test SNOW script&#8217; for event or incident injection.\u00a0 As long as the prerequisites are verified, to include network connectivity, URL, ID, Password, etc., we&#8217;re ready to go!<\/p>\n<p>Once the CredentialManager piece has been completed, by the same token you can begin testing the script.\u00a0 Testing can begin, whether to the SCOM Admin SA account, or to the SCOM Notifications account, or even hard coding the values into your PowerShell session.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Begin script testing<\/h2>\n<p>The testing leverages that you&#8217;ve downloaded various integration scripts first, then being saved on SCOM MS (management servers).\u00a0 The following blog posts, GitHub repo&#8217;s will set up multiple methods to test from PowerShell (command line) as SA or SVC accounts.<\/p>\n<h1 style=\"margin: 0in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;\">Create new SCOM Command Channels<\/h1>\n<p style=\"text-align: center;\">LogAlert.ps1 from Kevin Holman&#8217;s blog <a href=\"https:\/\/kevinholman.com\/2021\/08\/25\/what-account-will-command-channel-notifications-run-as-in-scom\/\" target=\"_blank\" rel=\"noopener\">https:\/\/kevinholman.com\/2021\/08\/25\/what-account-will-command-channel-notifications-run-as-in-scom\/<\/a><\/p>\n<p style=\"text-align: center;\">New-SNowEvent GitHub repository <a href=\"https:\/\/github.com\/theKevinJustin\/New-SNowEvent\">https:\/\/github.com\/theKevinJustin\/New-SNowEvent<\/a><\/p>\n<p style=\"text-align: center;\">New-SNowIncident.ps1 GitHub repository <a href=\"https:\/\/github.com\/theKevinJustin\/New-SNOWIncidents\">https:\/\/github.com\/theKevinJustin\/New-SNOWIncidents<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Once files are saved, copy to SCOM MS (noting path for later tests).<\/p>\n<p style=\"text-align: center;\">Preferred choice is non-system disk (i.e. D:)<\/p>\n<p style=\"text-align: center;\">Lab example is C:\\MonAdmin\\Scripts<\/p>\n<p>RDP to server with SVC or SCOM Admin SA account<\/p>\n<p>Open PowerShell as administrator<\/p>\n<ul>\n<li>Change directory to script directory on SCOM MS<\/li>\n<\/ul>\n<p style=\"text-align: center;\">cd \\ ; cd MonAdmin\/scripts<\/p>\n<figure id=\"attachment_20363\" aria-describedby=\"caption-attachment-20363\" style=\"width: 364px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/PowerShellPath.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20363 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/PowerShellPath.png\" alt=\"cd to path; CD PowerShell path\" width=\"364\" height=\"42\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/PowerShellPath.png 364w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/PowerShellPath-300x35.png 300w\" sizes=\"auto, (max-width: 364px) 85vw, 364px\" \/><\/a><figcaption id=\"caption-attachment-20363\" class=\"wp-caption-text\">cd to path; CD PowerShell path<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<ul>\n<li>Inventory saved files via dir (gci):<\/li>\n<\/ul>\n<p style=\"text-align: center;\">gci New-SNOW[ie]*.ps1<\/p>\n<p style=\"text-align: center;\">gci LogAlert.ps1<\/p>\n<figure id=\"attachment_20364\" aria-describedby=\"caption-attachment-20364\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWie.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20364 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWie.png\" alt=\"dir gci New-SNow[ie]*.ps1\" width=\"610\" height=\"231\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWie.png 610w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWie-300x114.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-20364\" class=\"wp-caption-text\">dir gci New-SNow[ie]*.ps1<\/figcaption><\/figure>\n<ul>\n<li>Grab Critical alert from $Alerts array<\/li>\n<\/ul>\n<p style=\"text-align: center;\">$Alerts = get-scomalert -ResolutionState 0 -severity 2<\/p>\n<p style=\"text-align: center;\"># Test warning events with Severity 1<\/p>\n<p style=\"text-align: center;\"># $Alerts = get-scomalert -ResolutionState 0 -severity 1<\/p>\n<p style=\"text-align: center;\">$AlertID = $Alerts[0].ID<\/p>\n<p style=\"text-align: center;\">$AlertName = $Alerts[0].Name<\/p>\n<p style=\"text-align: center;\">$AssignmentGroup = &#8220;JustinTime Infra&#8221;<\/p>\n<figure id=\"attachment_20365\" aria-describedby=\"caption-attachment-20365\" style=\"width: 862px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/AssumedSCOMAlertVariables.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20365 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/AssumedSCOMAlertVariables.png\" alt=\"PowerShell SCOM alert variables assumed for script to run from PowerShell\" width=\"862\" height=\"135\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/AssumedSCOMAlertVariables.png 862w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/AssumedSCOMAlertVariables-300x47.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/AssumedSCOMAlertVariables-768x120.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20365\" class=\"wp-caption-text\">PowerShell SCOM alert variables assumed for script to run from PowerShell<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<ul>\n<li>Test script supplying variables<\/li>\n<\/ul>\n<p style=\"text-align: center;\">.\\New-SNowEvent.ps1 -AlertID $AlertID -AlertName $AlertName -AssignmentGroup $AssignmentGroup -Team SYM<\/p>\n<p style=\"text-align: center;\">.\\New-SNowIncident.ps1 -AlertID $AlertID -AlertName $AlertName -AssignmentGroup $AssignmentGroup -Team SYM<\/p>\n<figure id=\"attachment_20366\" aria-describedby=\"caption-attachment-20366\" style=\"width: 859px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWEventPowerSHellOutput.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20366 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWEventPowerSHellOutput.png\" alt=\"New-SNOWEventPowerSHellOutput for REST Event injection.\" width=\"859\" height=\"691\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWEventPowerSHellOutput.png 859w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWEventPowerSHellOutput-300x241.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/New-SNOWEventPowerSHellOutput-768x618.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20366\" class=\"wp-caption-text\">New-SNOWEventPowerSHellOutput for REST Event injection.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Verify SCOM alert updated for ServiceNow REST injection<\/h2>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Check SCOM console\/web console for SCOM alert updates to ResolutionState, TicketID, Owner fields, where\u00a0TEAM = SYM, and\u00a0Assignment Group = JustinTime Infra specified<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_20371\" aria-describedby=\"caption-attachment-20371\" style=\"width: 1267px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20371 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput.png\" alt=\"SCOM Monitoring tab Active Alerts output view showing Owner, ResolutionState, and TicketId fields updated.\" width=\"1267\" height=\"144\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput.png 1267w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput-1200x136.png 1200w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput-300x34.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput-768x87.png 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SCOMAlertOutput-1024x116.png 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20371\" class=\"wp-caption-text\">SCOM Monitoring tab Active Alerts output view showing Owner, ResolutionState, and TicketId fields updated.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h2>Be aware of issues<\/h2>\n<p>Indicator of Certificate\/trust issue<\/p>\n<figure id=\"attachment_20367\" aria-describedby=\"caption-attachment-20367\" style=\"width: 847px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/Invoke-RestMethod-Cert.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20367 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/Invoke-RestMethod-Cert.png\" alt=\"Invoke-RestMethod error seen when organization cert not installed, making server sending REST injection NOT trusted.\" width=\"847\" height=\"129\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/Invoke-RestMethod-Cert.png 847w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/Invoke-RestMethod-Cert-300x46.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/Invoke-RestMethod-Cert-768x117.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20367\" class=\"wp-caption-text\">Invoke-RestMethod error seen when organization cert not installed, making server sending REST injection NOT trusted.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Indicator when SNOW alert rule not configured or matching &#8211; excessive retry&#8217;s.\u00a0 Also note output shows summary of tests, ServiceNow SNOW detail, and SCOM alert updates.<\/p>\n<figure id=\"attachment_20368\" aria-describedby=\"caption-attachment-20368\" style=\"width: 861px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SNOWAlertRuleNOTMatching.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20368 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SNOWAlertRuleNOTMatching.png\" alt=\"New-SNOWEvent.ps1 failures when SNOW Alert rule not matching or created.\" width=\"861\" height=\"523\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SNOWAlertRuleNOTMatching.png 861w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SNOWAlertRuleNOTMatching-300x182.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/SNOWAlertRuleNOTMatching-768x467.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20368\" class=\"wp-caption-text\">New-SNOWEvent.ps1 failures when SNOW Alert rule not matching or created.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Logging to Operations Manager Event Log for addtional troubleshooting or debug.\u00a0 Unless otherwise updated, the script logs to the &#8216;Operations Manager&#8217; event log, EventID = 710-712<\/p>\n<p>Single Starting event indicates failed pre-requisite (pre-req NOT met)<\/p>\n<figure id=\"attachment_20359\" aria-describedby=\"caption-attachment-20359\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/711New-SNowEventSingleEvent.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-20359\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/711New-SNowEventSingleEvent-300x274.png\" alt=\"SCOM OperationsManager events logging integration script status, as well as whoami and additional debug.\" width=\"300\" height=\"274\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/711New-SNowEventSingleEvent-300x274.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/711New-SNowEventSingleEvent.png 595w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-20359\" class=\"wp-caption-text\">SCOM OperationsManager events logging integration script status, as well as whoami and additional debug.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Additional information<\/h2>\n<blockquote class=\"wp-embedded-content\" data-secret=\"Tr9PBSVfev\"><p><a href=\"https:\/\/kevinjustin.com\/blog\/2024\/03\/27\/servicenow-event-integration\/\">ServiceNow Event integration<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;ServiceNow Event integration&#8221; &#8212; Kevin Justin&#039;s Blog\" src=\"https:\/\/kevinjustin.com\/blog\/2024\/03\/27\/servicenow-event-integration\/embed\/#?secret=wK7n6dFbPQ#?secret=Tr9PBSVfev\" data-secret=\"Tr9PBSVfev\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"UbloDOsW8I\"><p><a href=\"https:\/\/kevinjustin.com\/blog\/2024\/03\/27\/servicenow-incident-integration\/\">ServiceNow Incident Integration<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;ServiceNow Incident Integration&#8221; &#8212; Kevin Justin&#039;s Blog\" src=\"https:\/\/kevinjustin.com\/blog\/2024\/03\/27\/servicenow-incident-integration\/embed\/#?secret=JtMzLbrt0X#?secret=UbloDOsW8I\" data-secret=\"UbloDOsW8I\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to &#8216;Test SNOW script&#8217; for event or incident injection.\u00a0 As long as the prerequisites are verified, to include network connectivity, URL, ID, Password, etc., we&#8217;re ready to go! Once the CredentialManager piece has been completed, by the same token you can begin testing the script.\u00a0 Testing can begin, whether to the SCOM Admin SA &hellip; <a href=\"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Test SNOW script&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,880,545,530,502,881,742],"tags":[888,883,143,874,684,267,310,686,875,342,714,872,873,887],"class_list":["post-20361","post","type-post","status-publish","format-standard","hentry","category-administration","category-best-practice","category-itsm","category-powershell","category-scom","category-security","category-servicenow-snow","category-windows","tag-account","tag-connector","tag-event","tag-incident","tag-integration","tag-notifications","tag-powershell","tag-rest","tag-restapi","tag-scom","tag-script","tag-servicenow","tag-snow","tag-svc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Test SNOW script - Kevin Justin&#039;s Blog<\/title>\n<meta name=\"description\" content=\"Time to &#039;Test SNOW script&#039;s for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Test SNOW script - Kevin Justin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Time to &#039;Test SNOW script&#039;s for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Justin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-30T17:54:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-30T18:05:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png\" \/>\n<meta name=\"author\" content=\"WordPress Administrator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WordPress Administrator\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/\"},\"author\":{\"name\":\"WordPress Administrator\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"headline\":\"Test SNOW script\",\"datePublished\":\"2024-05-30T17:54:04+00:00\",\"dateModified\":\"2024-05-30T18:05:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/\"},\"wordCount\":551,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/testingLyrics-300x189.png\",\"keywords\":[\"account\",\"Connector\",\"event\",\"incident\",\"integration\",\"notifications\",\"powershell\",\"REST\",\"restapi\",\"SCOM\",\"script\",\"ServiceNow\",\"SNOW\",\"svc\"],\"articleSection\":[\"Administration\",\"Best Practice\",\"ITSM\",\"PowerShell\",\"SCOM\",\"Security\",\"ServiceNow SNOW\",\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/\",\"name\":\"Test SNOW script - Kevin Justin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/testingLyrics-300x189.png\",\"datePublished\":\"2024-05-30T17:54:04+00:00\",\"dateModified\":\"2024-05-30T18:05:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"description\":\"Time to 'Test SNOW script's for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/testingLyrics.png\",\"contentUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/testingLyrics.png\",\"width\":648,\"height\":409,\"caption\":\"Test SNOW script - Testing, attention please!\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2024\\\/05\\\/30\\\/test-snow-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Test SNOW script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\",\"name\":\"Kevin Justin&#039;s Blog\",\"description\":\"Operational monitoring tools including System Center, Azure Monitor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\",\"name\":\"WordPress Administrator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"caption\":\"WordPress Administrator\"},\"sameAs\":[\"https:\\\/\\\/kevinjustin.com\"],\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/author\\\/wordpress_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Test SNOW script - Kevin Justin&#039;s Blog","description":"Time to 'Test SNOW script's for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/","og_locale":"en_US","og_type":"article","og_title":"Test SNOW script - Kevin Justin&#039;s Blog","og_description":"Time to 'Test SNOW script's for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!","og_url":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/","og_site_name":"Kevin Justin&#039;s Blog","article_published_time":"2024-05-30T17:54:04+00:00","article_modified_time":"2024-05-30T18:05:47+00:00","og_image":[{"url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png","type":"","width":"","height":""}],"author":"WordPress Administrator","twitter_card":"summary_large_image","twitter_misc":{"Written by":"WordPress Administrator","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#article","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/"},"author":{"name":"WordPress Administrator","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"headline":"Test SNOW script","datePublished":"2024-05-30T17:54:04+00:00","dateModified":"2024-05-30T18:05:47+00:00","mainEntityOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/"},"wordCount":551,"commentCount":0,"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png","keywords":["account","Connector","event","incident","integration","notifications","powershell","REST","restapi","SCOM","script","ServiceNow","SNOW","svc"],"articleSection":["Administration","Best Practice","ITSM","PowerShell","SCOM","Security","ServiceNow SNOW","Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/","url":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/","name":"Test SNOW script - Kevin Justin&#039;s Blog","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#primaryimage"},"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics-300x189.png","datePublished":"2024-05-30T17:54:04+00:00","dateModified":"2024-05-30T18:05:47+00:00","author":{"@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"description":"Time to 'Test SNOW script's for SNOW integration whether as SNOW events or incidents, ServiceNow watch out!","breadcrumb":{"@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#primaryimage","url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics.png","contentUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2024\/05\/testingLyrics.png","width":648,"height":409,"caption":"Test SNOW script - Testing, attention please!"},{"@type":"BreadcrumbList","@id":"https:\/\/kevinjustin.com\/blog\/2024\/05\/30\/test-snow-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevinjustin.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Test SNOW script"}]},{"@type":"WebSite","@id":"https:\/\/kevinjustin.com\/blog\/#website","url":"https:\/\/kevinjustin.com\/blog\/","name":"Kevin Justin&#039;s Blog","description":"Operational monitoring tools including System Center, Azure Monitor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kevinjustin.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508","name":"WordPress Administrator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","caption":"WordPress Administrator"},"sameAs":["https:\/\/kevinjustin.com"],"url":"https:\/\/kevinjustin.com\/blog\/author\/wordpress_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/comments?post=20361"}],"version-history":[{"count":6,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20361\/revisions"}],"predecessor-version":[{"id":20375,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20361\/revisions\/20375"}],"wp:attachment":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/media?parent=20361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/categories?post=20361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/tags?post=20361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}