public void Start() { Debug.WriteLine("Main Operation Started"); LocalFunctions.CreadeAdGroup(gADServer, gOUpath, gFolderNamewWithFlag, @gfsloc, string.Empty); SwiftIO.CreateFolder(@gfsloc); acl.Set(@gfsloc, gFolderNamewWithFlag); Debug.WriteLine("Main Operation Finished"); }
/// <summary> /// Auto AD Grpup /// </summary> /// <param name="FileServerRootDirectory"></param> /// <param name="FolderName"></param> /// <param name="ADServer"></param> /// <param name="ActiveDirectoryOUPath"></param> public void DataSet(string FileServerRootDirectory, string FolderName, string ADServer, string ActiveDirectoryOUPath, string Owner) { #region StartEvents EngineEventArgs engineEventArgs = new EngineEventArgs { OriginName = name, OriginMessage = "DataSet Operation Started" }; DataSetStarted?.Invoke(this, engineEventArgs); #endregion // // Set access acl.Access = true; string FolderNamewWithFlag = ""; if (Accessflag == "R") { acl.Read = true; FolderNamewWithFlag = TBNameBuilder(FolderName, "R"); } else if (Accessflag == "RW") { acl.Write = true; FolderNamewWithFlag = TBNameBuilder(FolderName, "RW"); } else if (Accessflag == "RWX") { acl.Modify = true; FolderNamewWithFlag = TBNameBuilder(FolderName, "RWX"); } gADServer = ADServer; gOUpath = ActiveDirectoryOUPath; gFolderNamewWithFlag = FolderNamewWithFlag; @gfsloc = SwiftIO.BulldDir(FolderName, FileServerRootDirectory); gOwner = Owner; OriginalFolderName = FolderName; engineEventArgs.OriginMessage = "DataSet Operation Finished"; DataSetFinished?.Invoke(this, engineEventArgs); }