Basic Windows Login Script
Here’s a basic login script that every Sysadmin should have some variation of to make their life easier to run on most computers on the network.
This script flushes their old DNS, synchronizes Time with and Active Directory server, and enables remote admin for desktops to make SNMP monitoring a little easier.
#########################################################################
Rem Basic Windows Login Script, Created by Zwiegnet
Rem The following Command Flushes Previous DNS Settings, or old Cache
ipconfig /flushdns
Rem If in a domain Environment, it will update Group Policies, as not all do automatically
gpupdate /force /n
Rem This Command Syncronizes the Time with the Local Area Network Time Server
NET TIME \activediretoryserver /SET /Y
Rem This command enables remote administration, and SNMP for Managment.
netsh firewall set service remoteadmin enable
###################################################################
from here you can add additional information such as mapped drives/printers from here: http://blog.zwiegnet.com/windows-server/script-to-map-a-share-to-windows/
copy/paste the script into a notepad, and save it as “scriptname.bat” and from there it should be converted and working, from there you can deploy it how you want.
Hope this is helpful! For professional Scripts visit www.zwiegnet.com/go
