Hallo,
ich wollte für meine Lab Umgbung ein PowerSell Skript schreiben welches automatisiert das AD ausliest und nur die Relevanten Systeme in die XML für ASGRD hinzufügt. Damit ich mein kleines Voraben realisieren kann, muss ich mit der ASGRD-PSAPI.dll warm werden doch das gelingt mir nicht. Es ist nicht möglich die DLL als Modul zu importieren.
Ich habe folgende Zeilen hier im Forum gefunden:
Jemand einen Vorschlag wie ich die Datei importiert bekomme oder sogar einen Link zu einer Dokumentation wo ich nicht nur Informationen zum Import finde sondern auch die Möglichkeiten die ich mit dem Modul habe?
EN:
Hello,
I wanted to write a PowerSell script for my Lab environment which automatically reads the AD and adds only the relevant systems to the XML for ASGRD. To realize my little project I have to get familiar with the ASGRD-PSAPI.dll but this is not possible. It is not possible to import the DLL as a module.
I have found the following lines here in the forum:
Anyone have a suggestion on how to get the file imported or even a link to documentation where I can find not only information on importing but also the options I have with the module?
Cheers
ich wollte für meine Lab Umgbung ein PowerSell Skript schreiben welches automatisiert das AD ausliest und nur die Relevanten Systeme in die XML für ASGRD hinzufügt. Damit ich mein kleines Voraben realisieren kann, muss ich mit der ASGRD-PSAPI.dll warm werden doch das gelingt mir nicht. Es ist nicht möglich die DLL als Modul zu importieren.
Ich habe folgende Zeilen hier im Forum gefunden:
Code:
$workingdir = "C:\Program Files (x86)\ASG-Remote Desktop 2020\"
Set-Location $workingdir
[Environment]::CurrentDirectory = Get-Location -PSProvider FileSystem
$path = $workingdir + "ASGRD-PSAPI.dll"
Add-Type -path $path
[reflection.assembly]::LoadFrom($path) | Import-Module
Connect-RDEnvironment -Environment Test -PassThrough
Jemand einen Vorschlag wie ich die Datei importiert bekomme oder sogar einen Link zu einer Dokumentation wo ich nicht nur Informationen zum Import finde sondern auch die Möglichkeiten die ich mit dem Modul habe?
EN:
Hello,
I wanted to write a PowerSell script for my Lab environment which automatically reads the AD and adds only the relevant systems to the XML for ASGRD. To realize my little project I have to get familiar with the ASGRD-PSAPI.dll but this is not possible. It is not possible to import the DLL as a module.
I have found the following lines here in the forum:
Code:
$workingdir = "C:\Program Files (x86)\ASG-Remote Desktop 2020\"
Set-Location $workingdir
[Environment]::CurrentDirectory = Get-Location -PSProvider FileSystem
$path = $workingdir + "ASGRD-PSAPI.dll"
Add-Type -path $path
[reflection.assembly]::LoadFrom($path) | Import-Module
Connect-RDEnvironment -Environment Test -PassThrough
Anyone have a suggestion on how to get the file imported or even a link to documentation where I can find not only information on importing but also the options I have with the module?
Cheers