Click here to Skip to main content
15,354,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Cannot establish local connection to SQL SERVER Pin
Richard MacCutchan25-Nov-21 0:37
mveRichard MacCutchan25-Nov-21 0:37 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 1:15
mveRichard Deeming25-Nov-21 1:15 
GeneralRe: Cannot establish local connection to SQL SERVER Pin
Richard MacCutchan25-Nov-21 1:18
mveRichard MacCutchan25-Nov-21 1:18 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 1:19
mveRichard Deeming25-Nov-21 1:19 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
jsc4225-Nov-21 2:56
professionaljsc4225-Nov-21 2:56 
GeneralRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 3:33
mveRichard Deeming25-Nov-21 3:33 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
Alex Dunlop25-Nov-21 9:02
MemberAlex Dunlop25-Nov-21 9:02 
Questioncall a server side Powershell script? Pin
Joseline Riker19-Nov-21 6:44
MemberJoseline Riker19-Nov-21 6:44 
I am trying to allow my users to check if they have ActiveSync enabled for email and if they do return you are good to go, else tell them they need to complete a form. So a simple test I setup tried to start with a powershell.asp page containing:

<form action="doPowershell.asp" method="post">
    Network Username: <input type="textbox" name="userName"/>
    <input type="submit"/>
</form>


Then the resulting doPowershell.asp page I have for testing:

<%
Dim userName
userName = Request.Form("userName")
response.write(userName)

Server.Execute("activesync.ps1")
%>


the activesync.ps1 file contains

(Get-CASMailbox -Identity <username>).ActiveSyncEnabled


On the screen it outputs the value the user entered and then outputs the content of the ps1 file. Doesn't physically run anything. Thoughts?

Note: The current form doesn't really effect the PowerShell script. Just a shell I wrote to see if I could run it. The PS1 right now is just hardcoded with a physical username.
AnswerRe: call a server side Powershell script? Pin
Richard Deeming21-Nov-21 22:52
mveRichard Deeming21-Nov-21 22:52 
GeneralRe: call a server side Powershell script? Pin
Joseline Riker3-Dec-21 7:34
MemberJoseline Riker3-Dec-21 7:34 
GeneralRe: call a server side Powershell script? Pin
Richard Deeming5-Dec-21 21:43
mveRichard Deeming5-Dec-21 21:43 
QuestionIs it possible to use SQLite instead of MSSQL SERVER in ASP.NET projects? Pin
Alex Dunlop17-Nov-21 21:29
MemberAlex Dunlop17-Nov-21 21:29 
AnswerRe: Is it possible to use SQLight instead of MSSQL SERVER in ASP.NET projects? Pin
Richard Deeming17-Nov-21 21:45
mveRichard Deeming17-Nov-21 21:45 
Questioncheckbox inserting null value in a custom templatefield (vb.net) Pin
Oliver Freeman27-Oct-21 2:56
MemberOliver Freeman27-Oct-21 2:56 
QuestionCan shell32.dll be used in IIS environment? Pin
Member 35932620-Oct-21 10:11
MemberMember 35932620-Oct-21 10:11 
AnswerRe: Can shell32.dll be used in IIS environment? Pin
Richard Deeming20-Oct-21 22:17
mveRichard Deeming20-Oct-21 22:17 
GeneralRe: Can shell32.dll be used in IIS environment? Pin
Member 35932620-Oct-21 23:54
MemberMember 35932620-Oct-21 23:54 
GeneralRe: Can shell32.dll be used in IIS environment? Pin
Richard Deeming21-Oct-21 1:09
mveRichard Deeming21-Oct-21 1:09 
GeneralRe: Can shell32.dll be used in IIS environment? Pin
Member 35932621-Oct-21 22:46
MemberMember 35932621-Oct-21 22:46 
Questionweb config asp.net project of sql server Pin
Member 1101590512-Sep-21 19:20
MemberMember 1101590512-Sep-21 19:20 
AnswerRe: web config asp.net project of sql server Pin
Richard MacCutchan12-Sep-21 22:08
mveRichard MacCutchan12-Sep-21 22:08 
AnswerRe: web config asp.net project of sql server Pin
Dave Kreskowiak13-Sep-21 1:18
mveDave Kreskowiak13-Sep-21 1:18 
QuestionGet a Field value for recovery a password Pin
Luis M. Rojas3-Sep-21 5:17
MemberLuis M. Rojas3-Sep-21 5:17 
AnswerRe: Get a Field value for recovery a password Pin
Richard Deeming3-Sep-21 5:34
mveRichard Deeming3-Sep-21 5:34 
GeneralRe: Get a Field value for recovery a password Pin
Luis M. Rojas3-Sep-21 5:55
MemberLuis M. Rojas3-Sep-21 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.