New-SCSMIncident and affected user

Nov 16, 2010 at 6:49 PM


When I use

New-SCSMIncident -Title $SMObject.Title -Description $desc -Impact low -Urgency low -Classification Other

Everything OK, Incident created.

When I try add -AffectedUser 'Display Name Real User'

New-SCSMIncident -Title $SMObject.Title -Description $desc -Impact low -Urgency low -Classification Other -AffectedUser 'Display Name Real User'

I recieve error
Index was outside the bounds of the array.

-AffectedUser  <String>

What I do wrong?

Nov 16, 2010 at 7:36 PM

with affected user (and assigned), you can use the following formats:
    DistinguishedName: CN=Phil Otten,CN=Users,DC=woodgrove,DC=com
    SID: S-1-5-21-2548544548-3952215810-4123597018-1130
    Domain\UserName: WOODGROVE\potten


Nov 17, 2010 at 9:26 AM

Yes, when I use DistinguishedName everything work perfect!

Mar 11, 2013 at 8:22 PM
How do you know what the ID of the incident you created, using new-scsmincident ?