Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
? deploy/Import only one server per batch/powershell
#1
Hi

in our IT team we were taking about "deploying" a server in ASG using the same workflow we use to install a servernand deploy the active directory objects.

When I had a look at Delete and import servers  and "asgrd.exe /?" i saw that i can do an import from a csv file into ASD-Database.

---------------------------
ASG-RemoteDesktop 2018
---------------------------
Command line options:
/instance:<InstanceName>       Starts the program with the given environment
/profilefile:<Profilefile>     Open the specified 'profile file'
/configfile:<Configfile>       Open the specified 'environment configuration file'
/settingsfile:<Settingsfile>   Open the specified 'application settings file'
/dcs:<connection string>       Open the specified database with the given database connection string
/noenv                         Prevents launch of environment wizard
/novideo                       Prevents recording of videos
/onlyoneinstance               Only one instance of the program is allowed to start
/loginusername:<username>      Set 'username' in login dialog
/loginpassword:<password>      Set 'password' in login dialog
/logindomain:<domain>          Set 'domain' in login dialog
/loginintegrated:<true/false>  Set option 'Integrated' in login dialog
/loginmethod:<0/1>             Set login method option (database mode) 0 - Domain User login / 1 - Internal Username/Password login
/loginsubmit                   Submit the login informations to automatically log in
/passthrough:<true/false>      Starts the application and overrides 'Pass-through' setting
---------------------------

Is it possible to do this without storing the information in a csv file and do it on a more direct way?
e.g
[b]ConnectionValues= ConnectionName;ConnectionDestination;ConnectionDescription;ConnectionPort;ConnectionIpAddress;ConnectionProtocol;FolderName[/b]

ASGRD.exe /instance:MyEnvironment /loginintegrated:true /loginsubmit /importaction:ConnectionValues
/importoutput:c:\temp\log.txt /importid:00000000-0000-0000-0000-000000000000


Regards
Achim
Gruss
Achim.Z.
Reply
#2
Yes sure - you can do it via the PowerShell API - see the chapter for PowerShell API in the help file for some instructions and examples...
Regards/Gruss
Oliver
Reply
#3
Hi

maybe I am to silly for this, but i am no longer able to bunch import some servers from a CSV.


ASGRD.exe /instance:MyInstanceName /loginintegrated:true /loginsubmit /importaction:ConnectionsCsv /importsource:C:\temp\serverlist.csv /importoutput:c:\temp\log.txt  /importid:00000000-0000-0000-0000-000000000000

serverlist.csv:
ConnectionName,ConnectionDestination,ConnectionDescription,ConnectionExternalId,ConnectionImageId,ConnectionPort,ConnectionUrl,ConnectionIpAddress,ConnectionMACAddress,ConnectionProtocol,FolderName
servername,server.fqdn,DFS_R 2019 (OS2016) in use 2019.04.,,00000000-0000-0000-0000-000000000000,3389,,,,RDP,DFS-R 2019

can you tell me, where i made the mistake?

Regards
Achim
Gruss
Achim.Z.
Reply
#4
You are right - we found an issue in silent login - fixed it - and will publish a new patch version asap (planned for tomorrow)
Regards/Gruss
Oliver
Reply




Users browsing this thread: 1 Guest(s)