Windows BBS The Place for Microsoft Windows Support! Windows, Support, Help Site

Go Back   Windows BBS > Operating Systems > Windows Server System

Windows Server System Post your Windows Server System question here. Besides Windows Server 2003, Windows Server System also includes other Microsoft Server software (such as BizTalk Server, Exchange Server, ISA Server & others).

Register your FREE account to unlock additional features at WindowsBBS.com
Register
Welcome to WindowsBBS.com
Microsoft Windows Support

Mission Statement

WindowsBBS is an online community dedicated to easily accessible technical support for those using Microsoft operating systems and other Windows software.

Our goal is to become the leading resource for computer users that require assistance with their day-to-day computer usage, including full support for networking PC's, virus & malware removal, system upgrades and general support questions.


Discussion Forums
Operating Systems
Windows 7 Windows 7
Windows Vista Windows Vista
Windows XP Windows XP
Windows Server System Windows Server System
Windows 2000 Windows 2000
Windows 95/98/Me/NT Windows 95/98/Me/NT
Internet & Networking
Networking
Internet Explorer
Microsoft Mail
Firefox, Thunderbird
      & SeaMonkey

General Internet
Security
General Security
Malware and Virus
     Removal

Other
Other Software
Hardware
Test Posts
Community
Introductions
General Discussions
Comments
      & Suggestions

News @ WindowsBBS

Forum Sponsor
 Image

Closed Thread
 
LinkBack Thread Tools
Old 24th March 2005   #1
Inactive
 
Profile:
Join Date: Mar 2005
Posts: 15
Computer Experience:
Experienced
webman1979 Reputation Level


Question Logon Scripts

I need to find a way to check what operating system a computer is running and the user that is logged up, to determin what drives need to be mapped. The server is Win 2k server, and client computers range from Win 95 to Win XP. Thank you

Last edited by webman1979; 24th March 2005 at 20:45.
webman1979 is offline  
Didn't find the information you thought to find?
Check out these Similar Threads
Old 25th March 2005   #2
Inactive
 
Newt's Avatar
 
Profile:
Join Date: Jan 2002
Location: Concord, NC, USA
Posts: 11,217
Computer Experience:
*****
Newt Reputation Level


Probably much more elegant ways to do this but how about a batch file? Something using the VER command would do it so:

Ver | Find "XP" > Nul
If not ErrorLevel 1 Goto XPScript
Ver | Find "2000" > Nul
If not ErrorLevel 1 Goto 2KScript
Goto Error

:XPScript
"\\domaincontroller\netlogon\setupxp.vbs"

:2KScript
"\\domaincontroller\netlogon\setup2K.vbs"

:Error
"\\domaincontroller\netlogon\somethingbroke.vbs"

Then a .vbs script like one of these (taken from This MSDN article)

[VBScript]
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

[JScript]
var WshNetwork = WScript.CreateObject("WScript.Network");
WshNetwork.MapNetworkDrive ("E:", "\\\\Server\\Public");

Newt is offline  
Old 30th March 2005   #3
Inactive
 
Newt's Avatar
 
Profile:
Join Date: Jan 2002
Location: Concord, NC, USA
Posts: 11,217
Computer Experience:
*****
Newt Reputation Level


webman1979 - how goes the scripts problem?

Did the above stuff help or did you find another way to do what was needed?

Newt is offline  
Old 31st March 2005   #4
Inactive
 
Profile:
Join Date: Mar 2005
Posts: 15
Computer Experience:
Experienced
webman1979 Reputation Level


Yes is help very much...thank you
webman1979 is offline  
Old 17th June 2005   #5
Inactive
 
Profile:
Join Date: Mar 2005
Posts: 15
Computer Experience:
Experienced
webman1979 Reputation Level


I desided i needed to return to this post again. Now i need to come up with a script that will map drives depending upon what user logs. Most users will have 3 to 5 drives that need to be mapped. Any subjestions anyone?
webman1979 is offline  
Old 23rd June 2005   #6
Staff
 
Profile:
Join Date: May 2004
Location: Worcs. UK
Posts: 2,858
Computer Experience:
Unabashed deviant
ReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation LevelReggieB Reputation Level


Personally I'd group the users in Active Directory (AD) Organisational Units (OU), and then apply seperate logon scripts to each OU via the OU's group policy. That way if a user moves from one group to another (and therefore needs different drives mapped) all you need to do is move the user object from one OU to the appropriate one for the new group. Also ceating a new user in the appropriate OU will automatically give them the appropriate logon script.
ReggieB is offline  
Old 24th June 2005   #7
Staff
 
Profile:
Join Date: Jan 2002
Location: Montgomery AL
Posts: 1,892
Computer Experience:
Experienced
Scott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation LevelScott Smith Reputation Level


I'm not sure I'm clear on the question.

If you are asking how the bat file should look this would be a start.




@ECHO OFF


NET USE W: /DELETE
NET USE W: \\controller\Whitfield

NET USE T: /DELETE
NET USE T: \\controller\timekeeper

NET USE P: /DELETE
NET USE P: \\controller\HR

Scott Smith is offline  



Closed Thread

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon Scripts Not Running in XP OzBoy Windows XP 2 22nd February 2005 23:48
What is supposed to be in Win Xp Home missmissy Windows XP 84 5th December 2004 13:22
Logon Scripts under Win 2000 Server babaton Windows 2000 5 29th April 2004 22:34
XP not running Logon scripts in NT domain PJ1 Networking 18 16th July 2003 00:07
Windows XP not shutting down daviec Windows XP 2 7th March 2003 03:26


All times are GMT +1. The time now is 11:23.






Advertisements do not imply our endorsement of the product or service advertised.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2002 - 2009 WindowsBBS.com. All rights reserved.
Terms of Use, Legal Information & Privacy Policy
[]