Using PowerShell to set ExpirationTime on a FIM User Object
Hello, I have been using Markus' powershell script to create users and it works great. One field I would like to set is ExpirationTime and I can't seem to figure out what type and format the Portal is looking for. Has anyone actually set this attribute using PowerShell? If so I would appreciate any help. Thanks! Paul
April 29th, 2010 6:25pm

This is right now not possible. The current plan is to add it in FP1. Cheers, MarkusMarkus Vilcinskas, Knowledge Engineer, Microsoft Corporation
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2010 9:45pm

Markus is correct, but you can make it work quite easily with the cmdlets from Quest. The commands would look something like this: PS C:\> $u = Get-FIMResource -Filter "/Person[DisplayName='testdt']" -Session $session PS C:\> $u.SetValue("EmployeeStartDate", (Get-Date)) PS C:\> $u | Set-FIMResource -Session $session Just adding detail to this. I found a blog post by Joe where he states the issue: "Final note about the sample client: internally we treat all data as strings so the data type doesn’t have a direct impact on you explorations. However, please note that the server enforces data types on all values sent. These failures result in invalid representation faults." So if you find youself troubleshooting Invalid Representation Faults, you know where to go. CraigMartin – Edgile, Inc. – http://identitytrench.com
April 30th, 2010 5:41am

Hi, My query is perhaps stupid, but I have downloaded cmdlets from quest (indeed I need it for my attribute birthdate wih is a dateTime object) , I have 4 files, and I don't know what have I to do with these files. Have I to put the name in my own file (but how)? Have I to write a command to make to file understandable by the system ? Or another thing. Could you tell me. Thanks in advance. Jean-Michel
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2011 6:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics