ASP.net, how can I access a remote machine and create a user account and create and share a folder

87 views Asked by At

I'm creating an ASP.net (C#) website and I need to achieve some interesting tasks like accessing a remote machine, creating a user account and creating and sharing a folder.

Please guide me with this?

1

There are 1 answers

1
Dave On

Sounds like Powershell might be the solution given the range of tasks that you're looking to achieve

http://www.powershellpro.com/powershell-tutorial-introduction/ http://devinfra-us.blogspot.com/2011/02/using-powershell-20-from-aspnet-part-1.html

and in essence you'll be referencing the System.Management.Automation assembly, creating a powershell object, and executing dynamic scripts through it.