Powershell to configure users in Pragma Fortress


Author
Message
rmassart
rmassart
Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)
Group: Forum Members
Posts: 21, Visits: 112
Hi,

Is there some way to use powershell (or some other scripting) to create SFTP users in Fortress?  We already generate users in the Active Directory, but we need to create individual entries for these users in Fortress. Ideally we would like to script this process. The reason for the individual users is because they have personalised home directories that are configured using two AD properties "msIIS-FTPRoot" and "msIIS-FTPDir".  These are used by IIS for user isolation.

So: is there anyway to script the addition of users to the Local Server Configuration?

Thanks,
Robin
bethredd
bethredd
Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)
Group: Administrators
Posts: 81, Visits: 176
Hello,

All of our configurations are stored in the registry, so you can write a script that would create the user configuration. I suggest you copy the settings under the key HKEY_LOCAL_MACHINE\SOFTWARE\PragmaSystems\SFTP\Users\Default to get all of the necessary values and their default values. You can then make the changes need to create the configuration you need.
 
We use a question mark (?) to separate domain\username.

Here is a quick example:

copy-item -Path HKLM:\SOFTWARE\PragmaSystems\SFTP\Users\Default HKLM:\SOFTWARE\PragmaSystems\SFTP\Users\domain?user1

set-itemproperty -path HKLM:\SOFTWARE\PragmaSystems\SFTP\Users\domain?user1 -name StartDir-value user_home_directory

Beth Redd
rmassart
rmassart
Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)Forum Member (31 reputation)
Group: Forum Members
Posts: 21, Visits: 112
Is there no way to import users using an XML file (other than the import settings file)?  Or via an API?

Thanks,
Robin
bethredd
bethredd
Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)Pragmateer (96 reputation)
Group: Administrators
Posts: 81, Visits: 176
We have the option to import settings at installation time or using the settings import file, but we do not provide an API for XML import from the command line.

Beth Redd
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search