Test User Accounts Work on Servers using an Action

I need to create a fixlet which will run as a specific user on windows. The fixlet is really just to test if the username / password for that specific user works on that server so it needs to contain input parameters for the user and a secure one for the password.

I have some ideas on how to do this but wanted to check if anyone has anything pre-made or any experience with a similar style of fixlet before I spend time creating it and testing it.

My idea is to create a fixlet which will create a txt file on the server by using the credentials of the user passed in the parameters. If the txt file is created with success then the fixlet will pass but if not then the filet will fail indicating that the username and password used didn’t work.