Login Scritp
Hi! guys any body can give me sample of login scritp..
Thanks..
Windows Forum
Hi! guys any body can give me sample of login scritp..
Thanks..
by shmaltz
msgbox "helo"
the above will display a popup box with the words "helo" and have a button to dismiss the popup. You put the above line in any file that has a .vbs extension and you tell Windows to use this as the logon script and you have this result.
by joerie_b
by shaunjanzen
Below is a typical Login script using a .bat file and assigning to a user.
Hope this helps,
Shaun
REM DRIVE MAPPINGS
rem ********************************************
IF EXIST H:\*.* NET USE H: /DELETE /YES
net use H: \\servername\%username%$ /PERSISTENT:N /Y
IF EXIST M:\*.* NET USE M: /DELETE /YES
net use M: \\servername\app /PERSISTENT:N /Y
rem Checks for Calendar Dir.
rem ****************************************************************
IF EXIST C:\calendar GOTO MARK5
GOTO MARK3
rem Creates Calendar Directory if does not exist and registers *.ocx files
rem *************************************************************************************************
:MARK3
md c:\calendar
cmd /c xcopy /y \\servername\netlogon\activex\*.* c:\calendar
regsvr32.exe c:\calendar\mscal.ocx
REM Register Activex controls for Portal
:mark9
IF EXIST C:\Portal GOTO MARK2
GOTO MARK10
:Mark10
cmd /c md c:\Portal
cmd /c xcopy /y \\servername\NETLOGON\ActiveX\PWC\*.* C:\Portal
regsvr32.exe C:\Portal\comcat.dll
rem Removes unwanted Shortcuts
:MARK2
cmd /c del "C:\Documents and Settings\%username%\Desktop\Connect to the Internet.lnk"
REM tHIS IS TO ADD THE LINK TO Got Gas opportunities and Support Form TO ALL USERS DESKTOPS
cmd /c xcopy "\\servername\NETLOGON\I.T. Support Form.lnk" c:\"documents and settings"\%username%\desktop /y
REM Synchronize time to servername
net time \\servername /set /yes
REM Checks for camslogo.bmp. If not there copies it and sets the users wallpaper to it
IF EXIST c:\winnt\camslogo.bmp goto mark12
goto mark11
:MARK11
cmd /c xcopy "\\servername\netlogon\camslogo.bmp" "c:\winnt"
:MARK12
setwallpaper.exe/d:c c:\winnt\camslogo.bmp
REM Update Virus signatures
REM****************************************
call virusupdate.bat
by joerie_b
by joerie_b
This discussion is closed to new replies.
Sort by Trending