FIM Attribute Flow Precedence Viewer
NameLatest Version
FIM Attribute Flow Precedence Viewer
1.0
Description:
The FIM Attribute Flow Precedence Viewer is a script to display and document your metaverse attribute population:
Display because the script has a UI to render your configuration
Document because you can copy a displayed configuration to the clipboard and save it to a file.
The script is based on the HTA (HTML Application) framework a framework that enables you to develop scripts that look like Windows applications without the need of writing code in Visual Studio.
Important
It is highly recommended that you read the FIM ScriptBox Read Me First, before running this script on your computer.
If you have installed PowerShell on your FIM server, make sure that it is configured to allow running scripts. The command to verify this is get-executionpolicy. To enable all Windows PowerShell scripts to run, use the following command: "set-executionpolicy unrestricted". Please see the PowerShell documentation for more details.
When running the script, you need to retrieve data from your FIM server, first. To retrieve data, click Get Data:
To display the attribute flow precedence configuration for an object type, select the object type you care about, and then click Display:
Here is a screenshot a sample run:
To download this script, use this link.To get to the FIM ScriptBox, use this link.
Markus Vilcinskas, Technical Content Developer, Microsoft Corporation
August 2nd, 2009 7:19pm
When clicking on Get Data, it only returns an output box with the following URL: http://code.msdn.microsoft.com/FIMScriptbox/release/projectreleases.aspx?releaseid=3045
Free Windows Admin Tool Kit Click here and download it now
December 8th, 2010 9:36am
Hi Marcus,
Somehow this script returns an error.
"Line 149, Character 8
Invalid use of Null: retData".
Powershell ExecutionPolicy is Unrestricted and I have unblocked the zip-file before extracting it.
We are using Version 1.1
Any suggestions?
BR,
-Snendis
February 15th, 2011 2:35am
To me, this smells like an issue with the execution policy.
Line 149 reports an error with the PowerShell script execution.
However, it looks like, there is no error message, which is an indicator for general problem.
Open default.vbs, and then change the following line:
retCode = oShell.Run(appCmd, 0, true)
to
retCode = oShell.Run(appCmd, 4, true)
This displays the PowerShell console when running the PS script.
What is the console output?
Cheers,
Markus
Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 3:03am
Hi,
It's very difficult to read console output as it just blinks for half a second and then disappears.
I quickly tried to set pause-function into .vbs but I'm not an Expert at scripting :)
BR,
-Snendis
February 15th, 2011 3:43am
Managed to record Output. I will start to investigate this.
"GetData.ps1 cannot be loaded since execution of scripts are disabled on this system".
BR,
-Snendis
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 3:53am
Managed to record Output. I will start to investigate this.
"GetData.ps1 cannot be loaded since execution of scripts are disabled on this system".
BR,
-Snendis
February 15th, 2011 3:53am
You (temporarily) change the execution-policy:
Read the current policy:
get-executionpolicy
Set a new one:
set-executionpolicy RemoteSigned
or
set-executionpolicy Unrestrictedhttp://setspn.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 5:11am
You (temporarily) change the execution-policy:
Read the current policy:
get-executionpolicy
Set a new one:
set-executionpolicy RemoteSigned
or
set-executionpolicy Unrestrictedhttp://setspn.blogspot.com
February 15th, 2011 5:11am
Yeah, there is a (at least to me) known issue regarding setting the execution policy on Windows Server.
You might want to set it directly in the registry.
The following script code should help:
Dim oShell, bKey
Set oShell = CreateObject("WScript.Shell")
On Error Resume Next
bKey = oShell.RegRead("HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\ExecutionPolicy")
Select Case Err.Number
case 0 msgbox bKey
case -2147024894 msgbox "Execution policy is restricted"
case else msgbox Err.Description
End Select
Cheers,
MarkusMarkus Vilcinskas, Knowledge Engineer, Microsoft Corporation
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 4:36pm