This project has moved. For the latest updates, please go here.

New-Resource

Description

The New-Resource cmdlet creates a new object template for creation in the FIM service.
The resource is not created in the FIM service itself, until the Save-Resource cmdlet is used.

Syntax

New-Resource -ObjectType <string> 

Parameters

ObjectType

The type of object to create

Examples

# Create a new person object 
$obj = New-Resource -ObjectType Person
$obj.AccountName = "testuser"
$obj.Domain = "fim-dev1"
$obj.DisplayName = "test user"
$obj.JobTitles = @("Test1", "Test2")
Save-Resource $obj

Last edited Sep 5, 2015 at 1:25 AM by ryannewington, version 2