Guest User

Untitled

a guest
Aug 9th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. appcmd code in C#?
  2. var Proc = new Process();
  3. Proc.StartInfo.FileName = CredentialBatFile;
  4. Proc.StartInfo.Arguments = WebSiteName + " " + Apppool_Username + " " + Apppool_Password;
  5. Proc.Start();
  6.  
  7. C:Windowssystem32inetsrvappcmd.exe set site "%1" -virtualDirectoryDefaults.userName:%2 -virtualDirectoryDefaults.password:%3
Add Comment
Please, Sign In to add comment