Exemple #1
0
 public bool ExportTask()
 {
     return(StartTask("Running Export",
                      () =>
     {
         PropertyInfo pi = Export.GetProperty("Name");
         IExport export = PingCastleFactory.LoadExport(Export);
         string name = pi.GetValue(export, null) as string;
         DisplayAdvancement("Running export " + name);
         export.Initialize(Server, Port, Credential);
         string file = "ad_export_" + name + "_" + Server + ".txt";
         export.Export(file);
         DisplayAdvancement("Results saved to " + new FileInfo(file).FullName);
     }
                      ));
 }