Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

Granfeldt Powershell MA Export not doing anything

$
0
0

I'm sure i'm doing something wrong that is a simple error.

I have a powershell MA that connects to eDirectory, and successfully imports the user and group objects I want with the needed attributes.

I am running into issues with the Export process.

I am running the 5.5 management agent.

I am just trying to do some simple tests to see how the export script handles the attributes, and am using simple objects. In my current export script I just have it attempt to dump the attributes passed to is in a text file to see what they are, but I've run into a roadblock.

When I format the script as shown in all the examples I see, none of it runs. So the following will produce no text file:

PARAM (
    $Username,
    $Password
)

BEGIN
{
write-output "begin section" | Out-File c:\test.txt -Append
}


PROCESS
{
write-output "process section" | Out-File c:\test.txt -Append
}

END
{
write-output "end section" | Out-File c:\test.txt -Append
}


however if I comment out the begin, process, and end blocks, it will create the text file.

PARAM (
    $Username,
    $Password
)

#BEGIN
#{
write-output "begin section" | Out-File c:\test.txt -Append
#}


#PROCESS
#{
write-output "process section" | Out-File c:\test.txt -Append
#}

#END
#{
write-output "end section" | Out-File c:\test.txt -Append
#}

I of course in my first go-arounds with this had scripting in there to grab the needed attributes using the PSCustom object formatting, but since I can't seem to get past this part of the process, i figured i'd just share this?

what am I missing?

thanks for any suggestions!


Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>