Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ctx = System.Web.HttpContext.Current;
- var file = ctx.Server.MapPath("~/Content/Powershell/psStoreLive.ps1"); #activate a store
- var shell = PowerShell.Create();
- shell.AddCommand(file);
- shell.AddArgument(o.DBName); # which store should we activate
- var results = shell.Invoke(); # and then process the results....display output of script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement