I want to create (not backup/restore, for a variety of reasons) Windows Credential Manager entries, for example Samba Share credentials, but others as well.
I do not want to set up PCs manually for this.
Is there a way to create the credentials programmatically? Specifically, I need them to actually show up in the Windows Credential Manager.
I've tried using New-StoredCredential in Powershell and Get-StoredCredential and while they both work, they aren't actually showing up in my credential manager (could this be security settig related?)
I am not opposed to doing this via Python outside of Powershell if there is a good library for it that my Googling has been unable to find.
Thanks.
Related
I have downloaded VisualSVN Server, version 5.1.1. In the left panel there is only Repositories and Jobs. I want to add new users for learing and testing purposes. However I can't see any settings to do so. I currently dont have a licence. Is this the main reason? If not, how can I enable Users and Groups folders or how can I reach to related settings? Keep in mind that I'm a completely newbie to this application. Any help is appreciated, thanks
I have tried to find related settings in autentication properties but I got confused and bogged down. I have tried to open the application as Administrator, still couldn't find or make sense of settings.
I also tried to find subversion authentication settings which is normally in the main page.
In the MMC snap-in, you should have a Users option down the left hand side of the tree. However, on the main Visual SVN page, you have various options, one of which should be Subversion Authentication. You can also add users and groups using the options here also (see below, for a screen shot of my SVN Server). Regarding the license, that shouldn't be an issue, as long as your requirement fits withing the "Community" licensing requirements.
If you don't see options to Create Users / Groups, use the Configure Authentication Options and set the Authentication Mode to Subversion Authentication. This will allow subversion to authenticate users based on a list that is setup within the server itself. Hope that Helps.
The Users and Groups folders are only available in the management console when your server is configured to use the standalone Subversion authentication mode. When this authentication mode is active, your server maintains a dedicated list of user and group accounts.
However, your screenshot shows that you've enabled Windows authentication. In this case, your server integrates with your Active Directory domain / Windows, and user and group accounts are maintained by Active Directory. I.e., you don't need to create users and groups in VisualSVN Server. They are already created in your domain and you can grant permissions to these accounts via the management console.
You can find more information about the authentication modes in the article KB182: VisualSVN Server authentication modes.
I'm using Amazon Workspace windows desktop client. Every time when I wish to start the workspace I need to login into the workspace manually. My Id and password is bit long and I want to write the script that automates this process.
I have tried pywinauto for this purpose but since the Amazon workspace have a login form which is web form. So im not able to automate it.
Any other solution or improvement in my solution is appriciated
It's not a completely automatic solution, but if you use a password manager many of them have an auto-fill option that will work with the Amazon WorkSpaces client.
I've used AHK (AutoHotKey) to automate the login procedure before.
I am developing a Windows service that uses a config.json file to store its configuration. When I developed it without a service, I stored the data in %APPDATA%\companyname\product.
Now I am switching to real Windows service. When is run it as a service, the path points to C:\Windows\system32\config\systemprofile\AppData\Roaming\company\product. But I can't find my file in there. I tested it with the Explorer and a command prompt (as administrator). How can I access my configuration.
Is that the best place to put my configuration file?
I ended up putting my configuration in C:\ProgramData.
I have a computer that is used for getting database information from the server in the same domain, and this computer is used by employees who don't have the server admin information.
When the computer restarts, I'd like it to automatically log in to Windows Server so that it can access the database files. Is it possible to write a script for this that runs on boot?
Thanks in advance
I solved this by adding the credentials to the Credentials Manager in Windows, along with disabling the Windows Server dashboard program. This makes Windows automatically log in to the server with the stored credentials on boot.
Since your question really isn't specific, I'd like to suggest two ways of accomplishing your goal.
Since you'd like to access database information, why not use some kind of database management software (like SSMS if you're using MSSQL) and set up proper permissions for the user/computer that will need to obtain information from that particular server/database.
If you need access to raw files (which doesn't make much sense in case of MSSQL for accessing purposes), why not set up proper permissions on the file or parent folder, giving the user that is logged to the client PC proper permissions to access the files that are of interest.
I need to create a temporary folder that will be accessed from the application only.
It means that even current user and system administrator are not able to open it from the Explorer.
While application is running, there'll be some files put into it. Once it's terminated, folder and all its content are deleted (again programmatically, no manual delete ability).
P.S. I found few posts here but there are no proper solution given yet.
Thanks in advance.
Windows security does not work that way. You cannot restrict access by application, only by user. If you want only your app to have access to a given resource then you have to create a new user account, configure the resource to grant access to only that user, and then run your app using that user, or at least have your app impersonate that user when needed. Files/folders are securable objects, and Windows security is based on user accounts.