Last time I looked at using other characters it was something like this
$file = join-path $env:windir "msagent\chars\Peedy.acs"
$agent = new -com agent.control.2
$agent.connected=$true
$agent.characters.load("Peedy", $file)
$character = $agent.Characters.Item("Peedy")
$action = $character.Show()
Theres an example here
http://bartdesmet.net/blogs/bart/arc...M-objects.aspx
and on page 412 of PowerShell in Action
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog:
http://richardsiddaway.spaces.live.com/
PowerShell User Group:
http://www.get-psuguk.org.uk
"Ryan" wrote:
Quote:
> PS can't load other characters other than merlin
>
> several .acs are installed in c:\windows\msagent\chars
>
> which also has merlin.acs
>
> the last function call always return "Merlin"
>
> what should be done beside putting .acs in the default location
> mentioned above
>
> $agent = new -com agent.control.2
> $agent.connected=1
> $agent.characters.load("peedy")
> $peedy=$agent.characters.character("peedy")
> $peedy.name
>