Quantcast
Viewing all articles
Browse latest Browse all 11924

Disable Windows 7 Administrator Accounts using Novell Script

Hello, is there a command line I can place in my log in script that will disable the windows 7 administrator account. Or auto log into the administrator account so that I can update the Zimbra connector for 600 users who are using Outlook 2007 and Outlook 2010. The script worked to update the Zimbra connector on 50 of the machines on the network that the users are administrators


Here are my scripts.
Zimbra Script
MAP DISPLAY OFF
MAP ERRORS OFF
#msiexec /quiet /i \\ARTEMIS\sys\zimbra32\ZimbraConnectorOLK_7.1.3.63 47_x86.msi
MAP DISPLAY ON
END


User Container_Script
WRITE "This is container login script"
WRITE "Good %GREETING_TIME: %CN"
WRITE "The Time is %HOUR24: %MINUTE"
DOS SET MAPROOTOFF="1"
;MAP F:=ARTEMIS\SYS:
MAP G:=ARTEMIS\COMMON:
MAP H:=ARTEMIS\USERS:%CN
MAP I:=ARTEMIS\APPS:


IF MEMBER OF "adminReset" THEN

#NET USE R: \\141.217.157.17\software\vmview5\client T3chsRc00l /user:lrctech
END

#G:\LoginScriptInstalls\Admin\changeAP.bat

IF MEMBER OF "Faculty_OSA_DB" THEN
#NET USE O: \\selene.nursing.wayne.edu\osa faculty /user:faculty
@O:\ePOW\k1ePOW.bat
;#command /c copy O:\ePOW\k1ePOW.mdb C:\ePOW\k1ePOW.mdb
;#command /c copy O:\ePOW\k1ePOW-L.mdb C:\ePOW\k1ePOW-L.mdb
END

IF MEMBER OF "osa" THEN
MAP ROOT J:= ARTEMIS\COMMON:\OSA_COMMON
#NET USE O: \\selene.nursing.wayne.edu\osa nursing06 /user:osa
@md C:\OSA2k8
@O:\OSA2k8\OSA2k8.bat
;#command /c copy O:\OSA2k8\osa2k8-L.mdb C:\OSA2k8\osa2k8-L.mdb
;#command /c copy O:\OSA2k8\osa2k8.mdb C:\OSA2k8\osa2k8.mdb
END

IF MEMBER OF "CoN_Calendar" THEN
#NET USE X: \\selene.nursing.wayne.edu\web_datashare faculty /user:faculty
@\\artemis\common\CLASSLISTS\Room_Sch\Calendars.ba t
END

REM Novell SP5 Upgrade
regread "HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion,ProductName"
if "%99" = "Microsoft Windows XP" then
write "Checking for latest version of Novell Client..."
IF PLATFORM = "WNT" THEN
@\\artemis\sys\NwCLIENT\WINNT\i386\acu.exe
IF "@ERROR_LEVEL" = "1" THEN
EXIT
END
END
END

REM TimeSync
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Da teTime\Servers,0"
if "%99" = "time.wayne.edu" then
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Da teTime\Servers,"
if "%99" = "0" then
write "Time is synced with Wayne Time!"
else
@\\artemis\common\LoginScriptInstalls\TimeSync\Tim eSync.bat
endif
else
@\\artemis\common\LoginScriptInstalls\TimeSync\Tim eSync.bat
endif

REM WSUS
regread "HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion,ProductName"
IF "%99" = "Microsoft Windows XP" then
regread "HKLM,SOFTWARE\Policies\Microsoft\Windows\WindowsU pdate,WUServer"
IF "%99" = "http://141.217.157.19:8530" then
write "WSUS is up-to-date!"
else
@\\artemis\common\LoginScriptInstalls\WSUS\zoewsus XP.bat
write "WSUS was just connected to the new and IMPROVED update server!"
END
END
regread "HKLM,SOFTWARE\Policies\Microsoft\Windows\WindowsU pdate,WUServer"
if "%99" = "http://141.217.157.19:8530" then
write "WSUS is up-to-date!"
else
@\\artemis\common\LoginScriptInstalls\WSUS\zoewsus NEW.bat
write "WSUS was just connected to the new and IMPROVED update server!"
endif


REM SAV temp
@\\artemis\common\LoginScriptInstalls\Symantec\sav-parent.bat

REM Novell Server - Artemis default; LDAP Athena
@\\artemis\common\LoginScriptInstalls\NovellServer \artemis.bat

REM SAV
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Un install\{50E125D1-88E5-48CE-80AE-98EC9698E639},DisplayVersion"
if "%99" = "10.1.6000.6" then
regread "HKLM,SOFTWARE\Intel\LANDesk\VirusProtect6\Current Version,Parent"
if "%99" = "SOPHIA" then
write "Symantec Antivirus is connected to SOPHIA!"
else
@\\artemis\common\LoginScriptInstalls\Symantec\sav-parent.bat
write "Symantec Antivirus was updated to connect to SOPHIA!"
endif
else
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Un install\{2085C617-589C-40F8-BE40-EDBC9E2CA2EB},DisplayVersion"
if "%99" = "10.1.7000.7" then
regread "HKLM,SOFTWARE\Intel\LANDesk\VirusProtect6\Current Version,Parent"
if "%99" = "SOPHIA" then
write "Symantec Antivirus is connected to SOPHIA!"
else
@\\artemis\common\LoginScriptInstalls\Symantec\sav-parent.bat
write "Symantec Antivirus was updated to connect to SOPHIA!"
endif
else
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Un install\{AD8A1013-4E46-4E02-85C2-3168C3328432},DisplayVersion"
if "%99" = "10.1.8000.8" then
regread "HKLM,SOFTWARE\Intel\LANDesk\VirusProtect6\Current Version,Parent"
if "%99" = "SOPHIA" then
write "Symantec Antivirus is connected to SOPHIA!"
else
@\\artemis\common\LoginScriptInstalls\Symantec\sav-parent.bat
write "Symantec Antivirus was updated to connect to SOPHIA!"
endif
else
regread "HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Un install\{2EFCC193-D915-4CCB-9201-31773A27BC06},DisplayVersion"
if "%99" = "11.0.5002.333" then
write "Symantec EndPoint Antivirus is installed!"
else
write "YOUR ANTIVIRUS IS OUT OF DATE!!!"
write "CONTACT 577-8604 TO HAVE THIS RESOLVED!"
@\\artemis\common\LoginScriptInstalls\Symantec\sen dmail.bat
endif

END

Viewing all articles
Browse latest Browse all 11924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>