Logon Scripts
Logon Scripts
I wanna play with logon scripts, but dont relaly know how to write them..... Anyone know where i could go to learn something about them, and perhaps download a couple of logon scripts to play with?
I found http://KiXscripts.com/, but I'm so thick headed when it comes to this, I couldnt figure out how to use them.....
Any help will b e greatly appreciated
I found http://KiXscripts.com/, but I'm so thick headed when it comes to this, I couldnt figure out how to use them.....
Any help will b e greatly appreciated
~~ Knowledge Favors the Prepared Mind ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
To be honest i have no goal...i just want to either find a site that lets you download them (cause i'd also like to learn how to implement them) and yes i know that might seem simple to most of you....but im still in the process of learning all this stuff...I've learned quite a lot on my own...but once in a while a helping hand or 2 isnt bad 
I did see this cool one ..that acutally greeted users when they logged in....according to the time of day...so it would either say Good Morning, Good Afternoon, Evening, and night respectively....
Thanks for any help
I did see this cool one ..that acutally greeted users when they logged in....according to the time of day...so it would either say Good Morning, Good Afternoon, Evening, and night respectively....
Thanks for any help
~~ Knowledge Favors the Prepared Mind ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
Most people use logon scripts for mapping network drives, mapping network printers, updating files e.g. AV software, setting system variables and other such stuff.
login scripts are mostly writtin in dos, using commands such as net use d: \\servername\sharename
let me know what you want to do and i'll help. otherwise look at http://www.microsoft.com/technet
OJ
login scripts are mostly writtin in dos, using commands such as net use d: \\servername\sharename
let me know what you want to do and i'll help. otherwise look at http://www.microsoft.com/technet
OJ
OJ
Those who fail to prepare, must prepare to fail
Those who fail to prepare, must prepare to fail
in all honesty...i dont relaly know whati want to do..... any site i could jsut go to that let you download pre=written scripts
~~ Knowledge Favors the Prepared Mind ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
- YeOldeStonecat
- SG VIP
- Posts: 51171
- Joined: Mon Jan 15, 2001 12:00 pm
- Location: Somewhere along the shoreline in New England
I've used them mostly for mapping drives, and with Win2K servers that are set to national time clock servers, to synch the time for the entire network.
Here's an example, the name of the server is "Server1" in this example
Net Use F: \\Server1\company
\\Server1\Clients\Setup\SBSCLNT.exe /s BGBBG01
\\Server1\SYSVOL\BGBBG.local\scripts\vplogon.bat
net time \\Server1 /set /y
Net Use F: is telling the workstation to map drive letter F to the share "company" on the server.
The other two commands make sure all workstations have the Small Business Server client software installed, and the 3rd line makes sure the Symantec Corp Edition antivirus client is installed and intact on the clients. All I have to do is update the servers AV software version, say from 7.6 to 8.1, and the clients get updated next time they log in.
The last line synchs all the clocks on the domain with the servers clock...which maintains it's clock exactly with official time servers...so it's always dead on the time.
Here's an example, the name of the server is "Server1" in this example
Net Use F: \\Server1\company
\\Server1\Clients\Setup\SBSCLNT.exe /s BGBBG01
\\Server1\SYSVOL\BGBBG.local\scripts\vplogon.bat
net time \\Server1 /set /y
Net Use F: is telling the workstation to map drive letter F to the share "company" on the server.
The other two commands make sure all workstations have the Small Business Server client software installed, and the 3rd line makes sure the Symantec Corp Edition antivirus client is installed and intact on the clients. All I have to do is update the servers AV software version, say from 7.6 to 8.1, and the clients get updated next time they log in.
The last line synchs all the clocks on the domain with the servers clock...which maintains it's clock exactly with official time servers...so it's always dead on the time.
MORNING WOOD Lumber Company
Guinness for Strength!!!
Guinness for Strength!!!
hey thats cool 
keep the tips coming guys! lol
keep the tips coming guys! lol
~~ Knowledge Favors the Prepared Mind ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
~~Check out bux.to, make easy money by clicking links! Click to learn more!
http://bux.to/?r=nagetech ~~
Net Use F: \\Server1\company
\\Server1\Clients\Setup\SBSCLNT.exe /s BGBBG01
\\Server1\SYSVOL\BGBBG.local\scripts\vplogon.bat
net time \\Server1 /set /y
YOSC,
So whats the deal w/ this antivirus stuff? Right now I have the symantec corp 8.6 client on all machines, we don't have the server software yet... so when I do get the correct software on the server, I can setup all the clients to "managed" and use similar structure to lines 2&3 to update definitions and software version? That's cool.
--
Brad
Brad
- YeOldeStonecat
- SG VIP
- Posts: 51171
- Joined: Mon Jan 15, 2001 12:00 pm
- Location: Somewhere along the shoreline in New England
Originally posted by super20g
YOSC,
So whats the deal w/ this antivirus stuff? Right now I have the symantec corp 8.6 client on all machines, we don't have the server software yet... so when I do get the correct software on the server, I can setup all the clients to "managed" and use similar structure to lines 2&3 to update definitions and software version? That's cool.
You can easily change the clients from being unmanaged to managed once you install the "Antivirus Server". It's simply a matter of copying a grc.dat file from the server to a specific directory on each client...and restarting the client. Boom...instantly becomes a managed client.
I haven't dealt with 8.6 yet, only 8.1, didnt' know a newer one came out already. Seems they skipped a few levels, usually there's at least a .5 version.
Anyways, do a search on Symantecs help site for "unmanaged to managed" and you'll get a ton of help pages to print out. It's really pretty easy.
By default, that will keep each workstation updated with definitions. I always set my live update on the server to check for downloads daily, early each morning.
The login script lines I have for NAV are to push the client install out to workstations automatically if A) They are a new workstation logging into the network for the first time....it will do a silent unattended install. B) If the client's antivirus somehow becomes corrupted...it will force a new install over it. C) If you want to upgrade the entire networks' antivirus from say version 7.6 to 8.1..all you have to do is upgrade the server. Clients will be upgraded next time they log in.
There is a few more things to do than just adding those lines to the login script though, the NAV manual covers that.
MORNING WOOD Lumber Company
Guinness for Strength!!!
Guinness for Strength!!!
I prefer VB scripts myself: http://www.devguru.com/Technologies/wsh ... twork.html (as an example). I have a rather lengthy one on my server at work; I'll send it home and post some of it. You can always use any "cmd.exe" line in the script. Here's an example to set the time to a time server (as mentioned above):
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
'Creates WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
'Gets time
WshShell.Run("c:\windows\system32\cmd.exe /c net time \\TIMESERVER/set /yes")
'This will tell them what time it is, if desired
msgbox "The current time is " & (Time)
A way to annoy people:
If WshNetwork.UserName = "Loser" Then
WshShell.Run("C:\Windows\system32\cmd.exe /c NET SEND MONTY User Loser has logged into the system.")
End If
You could send whatever message to whomever you wish.
If you have a list of mulitple users, you would use
Select Case WshNetwork.UserName
Case "loser", "anotherloser", "loser3"
WshNetwork.MapNetworkDrive "N:", "\\SERVER\STORAGE$"
End Select
to map a certain drive to only those people.
http://www.winguides.com/scripting/refe ... ategory=30
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
'Creates WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
'Gets time
WshShell.Run("c:\windows\system32\cmd.exe /c net time \\TIMESERVER/set /yes")
'This will tell them what time it is, if desired
msgbox "The current time is " & (Time)
A way to annoy people:
If WshNetwork.UserName = "Loser" Then
WshShell.Run("C:\Windows\system32\cmd.exe /c NET SEND MONTY User Loser has logged into the system.")
End If
You could send whatever message to whomever you wish.
If you have a list of mulitple users, you would use
Select Case WshNetwork.UserName
Case "loser", "anotherloser", "loser3"
WshNetwork.MapNetworkDrive "N:", "\\SERVER\STORAGE$"
End Select
to map a certain drive to only those people.
http://www.winguides.com/scripting/refe ... ategory=30