I have a vbs login script that I am working on implementing onto a domain via
group policy. However, I do not want this script to run if the user is
logging onto a server. Just workstations. Servers are not grouped alone in
any OU's and while AD is being reorganized, it won't be completed by the time
the script needs to be implemented. Any recommendations on how to implement
the login script for workstation only?

Thank you for your time.

RE: script not run if OS is server? by billytf

billytf
Thu Apr 28 19:00:03 CDT 2005

assuming your servers have static ips in a certain range, then you can check
against this to determine server or workstation

"jb" wrote:

> I have a vbs login script that I am working on implementing onto a domain via
> group policy. However, I do not want this script to run if the user is
> logging onto a server. Just workstations. Servers are not grouped alone in
> any OU's and while AD is being reorganized, it won't be completed by the time
> the script needs to be implemented. Any recommendations on how to implement
> the login script for workstation only?
>
> Thank you for your time.

Re: script not run if OS is server? by Torgeir

Torgeir
Fri Apr 29 02:54:39 CDT 2005

jb wrote:

> I have a vbs login script that I am working on implementing onto a domain via
> group policy. However, I do not want this script to run if the user is
> logging onto a server. Just workstations. Servers are not grouped alone in
> any OU's and while AD is being reorganized, it won't be completed by the time
> the script needs to be implemented. Any recommendations on how to implement
> the login script for workstation only?
Hi,

See the vbscript function GetPlatform here for an example
on how to test on platform in a script:
http://groups.google.co.uk/groups?selm=3F79645E.B132DBB0%40hydro.com


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

RE: script not run if OS is server? by jb

jb
Mon May 02 07:10:08 CDT 2005

Thank you for your input.