initial commit

This commit is contained in:
2024-07-16 01:25:46 -04:00
commit 139062a947
53 changed files with 8731 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
@echo off
set "folderPath=\\SMB\depts\Users\%username%"
set "folderPathprivate=\\SMB\depts\Users\%username%\Private"
if not exist "%folderPath%" (
md "%folderPath%"
md "%folderPathprivate%"
rem echo Folder created successfully!
) else (
echo Folder already exists!
)
exit

View File

@@ -0,0 +1,16 @@
echo "https://www.stefangordon.com/join-azure-batch-machines-active-directory/"
echo "Searching For Domain Status"
for /f "tokens=2" %%i in ('systeminfo ^| find "Domain"') do (set "DOMAIN=%%i")
if "%DOMAIN%" == "WORKGROUP" (
echo "Joining Domain"
netdom join /d:DOMAINNAME %COMPUTERNAME% /ud:USERNAME /pd:PASSWORD
echo "Rebooting"
shutdown.exe /r /t 00
) else (
echo "Already in Domain"
)
echo "https://michlstechblog.info/blog/windows-join-a-workgroup-or-domain-from-command-line/"