Skip to content

Commit

Permalink
Version 0.18.0 (2023-03-13)
Browse files Browse the repository at this point in the history
see change log
  • Loading branch information
DavidGeeraerts committed Mar 13, 2023
1 parent 822e891 commit 6bd1e0f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
11 changes: 8 additions & 3 deletions ADDS_Tool.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
@Echo Off
@SETLOCAL enableextensions
SET $PROGRAM_NAME=Active_Directory_Domain_Services_Tool
SET $Version=0.17.0
SET $BUILD=2021-12-07 0930
SET $Version=0.18.0
SET $BUILD=2023-03-13 1145
Title %$PROGRAM_NAME%
Prompt ADT$G
color 8F
Expand Down Expand Up @@ -1857,6 +1857,7 @@ GoTo:EOF
:: Check results
FOR /F "tokens=3 delims=:" %%K IN ('FIND /I /C "=" "%$LogPath%\cache\var_Last_Search_DN.txt"') DO echo %%K> "%$LogPath%\cache\var_Last_Search_Count.txt"
:: remove leading space
:: Search Counter
FOR /F "tokens=1 delims= " %%P IN (%$LogPath%\cache\var_Last_Search_Count.txt) DO echo %%P> "%$LogPath%\cache\var_Last_Search_Count.txt"
SET /P $LAST_SEARCH_COUNT= < "%$LogPath%\cache\var_Last_Search_Count.txt"
call :SM
Expand All @@ -1867,6 +1868,7 @@ GoTo:EOF
@powershell Write-Host "Nothing found! Try again with broader wildcard" -ForegroundColor Red
GoTo skipSGN
)

:: Main output
echo Number of search results: %$LAST_SEARCH_COUNT% >> "%$LogPath%\%$LAST_SEARCH_LOG%"
echo Number of search results: %$LAST_SEARCH_COUNT%
Expand Down Expand Up @@ -1895,8 +1897,11 @@ GoTo:EOF
@powershell Write-Host '%%N' -ForegroundColor DarkGray
DSQUERY * %$AD_BASE% -scope %$AD_SCOPE% -limit %$sLimit% -filter "(distinguishedName=%%~N)" -attr name description displayName %$AD_SERVER_SEARCH% %$DOMAIN_CREDENTIALS% >> "%$LogPath%\%$LAST_SEARCH_LOG%"
echo %$SEARCH_TYPE% DN: %%N >> "%$LogPath%\%$LAST_SEARCH_LOG%"
DSGET Group -members %%N | FIND /I /C "CN="> "%$LogPath%\cache\var_Last_Search_Group_Members_Count.txt"
echo %$SEARCH_TYPE% Members Count: >> "%$LogPath%\%$LAST_SEARCH_LOG%"
type "%$LogPath%\cache\var_Last_Search_Group_Members_Count.txt" >> "%$LogPath%\%$LAST_SEARCH_LOG%"
echo %$SEARCH_TYPE% Members: >> "%$LogPath%\%$LAST_SEARCH_LOG%"
DSGET GROUP %%N -members %$AD_SERVER_SEARCH% %$DOMAIN_CREDENTIALS% 2> nul | DSGET USER -upn -samid -fn -mi -ln -display -email %$DOMAIN_CREDENTIALS% 2> nul >> "%$LogPath%\%$LAST_SEARCH_LOG%"
DSGET GROUP %%N -members %$AD_SERVER_SEARCH% %$DOMAIN_CREDENTIALS% 2> nul | DSGET USER -upn -samid -fn -mi -ln -display -email %$DOMAIN_CREDENTIALS% 2> nul >> "%$LogPath%\%$LAST_SEARCH_LOG%"
echo. >> "%$LogPath%\%$LAST_SEARCH_LOG%"
echo Details: >> "%$LogPath%\%$LAST_SEARCH_LOG%"
DSQUERY * -filter "(distinguishedName=%%~N)" -attr * %$AD_SERVER_SEARCH% %$DOMAIN_CREDENTIALS% >> "%$LogPath%\%$LAST_SEARCH_LOG%"
Expand Down
8 changes: 7 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@

---

## Version 0.18.0 Build: 2023-03-13
### Added
- Number of group members for Group search

---


## Version 0.17.0 Build: 2021-12-07
### Fixed
- Custom OU setting for AD Base
Expand All @@ -29,7 +36,6 @@
- abort to Search Menu
- Search settings menu

---

## Version 0.16.1 Build: 2021-11-09
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h1 align="center"> Active Directory Domain Services Tool (ADDS_Tool) </h1> <br>
![Microsoft Active Directory Logo](./images/MS_AD-logo.png)

![Main Banner](./images/ADDS_T_Main_Banner.png)
<h1 align="center"> Active Directory Domain Services Tool (ADDS_Tool) </h1> <br>

<h2 align="center"> :bangbang: :construction: :bangbang: UNDER DEVELOPMENT :bangbang: :construction: :bangbang: </h2> <br>


![Main Banner](./images/ADDS_T_Main_Banner.png)


## Table of Contents
Expand Down
Binary file added images/MS_AD-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6bd1e0f

Please sign in to comment.