Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. var ctx = System.Web.HttpContext.Current;
  2. var file = ctx.Server.MapPath("~/Content/Powershell/psStoreLive.ps1"); #activate a store
  3. var shell = PowerShell.Create();
  4. shell.AddCommand(file);
  5. shell.AddArgument(o.DBName); # which store should we activate
  6. var results = shell.Invoke(); # and then process the results....display output of script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement