[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

I want a webpage to create accounts using powershellASP

I am trying to setup a web site for the creation of new user accounts.  I wrote the powershell scripts that rely on user input and then produce the account and add it to the correct groups.  What I am trying to do is change from user entry in a Powershell script to a web form that will place the information into the powershell script.  I found PowershellASP ans I have it working but it only outputs informatio nto a web page not accepts input from a webpage.  has anyone done this before?
0
Denver_IT
Asked:
Denver_IT
  • 4
  • 3
1 Solution
 
abhaighCommented:
this should assist you

How do I execute a DOS command / batch file / exe from ASP?
http://classicasp.aspfaq.com/general/how-do-i-execute-a-dos-command/batch-file/exe-from-asp.html
0
 
abhaighCommented:
0
 
Denver_ITAuthor Commented:
Will I be able to pass along varriable's?  I need to be able to input information such as display name, First & Last names into the webpage and then have it pass those items along to the script.

Thanks for the sites I will check them out.
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
abhaighCommented:
yes, you can pass along variables
0
 
Denver_ITAuthor Commented:
Can you give me an example of how you would pass along the varriables?

Thanks so much for the assistance.
0
 
abhaighCommented:
you'd be creating the command line arguement on the fly - so you'd have to escape the text with " marks

it's be something like oShell.Run "some_command.exe " + variable1 + " " + variable2 + " " + variable3 + " " + ...

you'd need the " " in the string to put the spaces in - else the command would look like this

some_command.exevariable1variable2variable3...

which of course wouldn't run
0
 
Denver_ITAuthor Commented:
I still require a lot of work to figure this out but I believe you got me on the right track...
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now