Menu
Home
News
Forums
My Account

Login
Login:

Password:

Register, it's free!
Lost your password?

Users Online
There are:
0 registered users
and 20 guests online now.

Testing Center
Windows 2000 MCSE
Linux RedHat

Information Center
FREE MCSE ONLINE QUIZZES (Updates 09/10/07)
Create A Web Form Online
Windows NT 4.0 MCSE
Windows 2000 MCSE
Linux Redhat Corner
TCP/IP Calculator
TCP/IP History
TCP/IP NT 4
W2K Server Commands
A+ CompTIA
My Resume
Links

Windows Group Policy Scripting
Untitled Document
  Group Policy Scripting with VBS.
 

Sample Login Script 1:
-------------------------------------------BEGIN
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUserName, strRemotePath2, strDriveLetter2
strDriveLetter = "U:"
strRemotePath = "\\hydra\users"
Set objNetwork = WScript.CreateObject("WScript.Network")

strUserName = objNetwork.UserName objNetwork.MapNetworkDrive strDriveLetter, strRemotePath & "\" & strUserName

'net time
dim sCommand,objShell set objShell = Wscript.CreateObject("Wscript.Shell")
sCommand = "cmd /c net time \\hydra"
objShell.run sCommand, 0, true

'net printers
'Set objNetwork = CreateObject("WScript.Network")
'objNetwork.AddWindowsPrinterConnection "\\hydra\HPLaserJ"

WScript.Quit

-------------------------------------------END

What this script does?
The purpose of this script is to connect new printers, map network drives, and syncronize the time on the server.

Link:

http://www.iopus.com/guides/wsh.htm

 

Google Content

Google Content

Get Firefox!