ITOM forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Passing an array into a powershell activity

I'm looking for the syntax on how to pass an array of users to add to an ad group using the powershell activity.I've created an input called "userList" with a type of "Array". I've got a for loop in my powershell command line:Import-Module "C:\Progra...

huntj06 by Tera Guru
  • 1991 Views
  • 4 replies
  • 0 helpfuls

Resolved! Activity Designer Powershell Failing Credentials

I first was attempting to use the Run PowerShell functionality within the workflow editor to execute a sample script that writes a text file on a remote server. This script executes perfectly on the test MID server using the same credentials supplied...

TylerTeter by Kilo Guru
  • 2372 Views
  • 2 replies
  • 1 helpfuls

Active Directory and Locations

Good Afternoon!I have been successful in setting up Contract Management and Vendors within ServiceNow.   Except now.   I need to enter in all of our real estate leases and ownership documents within Contract Management for all of our 71 locations.   ...

buckhill2 by Giga Contributor
  • 2167 Views
  • 3 replies
  • 0 helpfuls

Resolved! How does Discovery assign computers to specific users?

We use ServiceNow Discovery to populate our CMDB with computers, laptops, servers, and other gear. I notice that from the very start it seems to automatically identify the primary user of computers and assigns them in the CMDB, which is very useful f...

Run Powershell command changing values of variable

I am testing a few powershell commands and one of these needs to pass through a file path so that we can check the permissions on it.   Currently I have a variable in which I enter my file path but when this gets passed through to the "Run Powershell...

Powershell Issue.JPG
jfinn by Kilo Expert
  • 3319 Views
  • 11 replies
  • 1 helpfuls

Resolved! How to pass JSON to PowerShell MID server script

I am trying to pass JSON from my workflow to a PowerShell MID server script through a Run Powershell activity. The JSON string is being created in a Run Script activity:var dataObj = {};dataObj.displayName = workflow.scratchpad.displayName;dataObj.em...

SNMP Network Scan Issue

Hi All,I'm trying to discover one of our switches and it keeps trying to connect via SSH even though i have no credentials defined and have switched the SNMP & SSH probe orders around.I have SNMP credentials defined, but looking at the discovery payl...

arobertson by Tera Guru
  • 1338 Views
  • 3 replies
  • 3 helpfuls