Re: Console only startup
- From: "SBS user" <user@xxxxxxxxxx>
- Date: Tue, 24 Mar 2009 06:29:15 -0500
I am unfamilar with VBS, do you know what the script wold look like?
"Miles Li [MSFT]" <v-mileli@xxxxxxxxxxxxxxxxxxxx> wrote in message news:%23h3wVXbkJHA.1704@xxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
Thank you for posting here.
According to your description, I understand that:
You need to set a logon script to run only for locally logon users.
If I have misunderstood the problem, please don't hesitate to let me know.
You may write a VBS script that before the function you may check the
current user logon session. Only when the logon session is from Console the
function keeps on processing.
++++++++++++++++++++++++++++++++++++++++++++
Dim wshShell
Dim strSession
Set wshShell = Wscript.CreateObject("Wscript.Shell")
strSesType = Left(wshShell.ExpandEnvironmentStrings("%SESSIONNAME%"), 3)
If strSesType = "Con" Then
\\the function for console session
wScript.Quit
End If
++++++++++++++++++++++++++++++++++++++++++++
The script check the SESSIONNAME system variable to verify whether it is a
console session.
==========================
Microsoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft support professionals can help explain the
functionality of a particular procedure, but they will not modify these
examples to provide added functionality or construct procedures to meet
your specific needs. If you have limited programming experience, you may
want to contact a Microsoft Certified Partner or the Microsoft fee-based
consulting line at (800) 936-5200. For more information about Microsoft
Certified Partners, please visit the following Microsoft Web site:
http://www.microsoft.com/partner/referral/
==========================
Hope it helps. If you have any questions or concerns, please do not
hesitate to let me know.
Best regards,
Miles Li
Microsoft Online Partner Support
Microsoft Global Technical Support Center
Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Console only startup
- From: Miles Li [MSFT]
- Re: Console only startup
- Prev by Date: RE: Trend WFBS 5.1 - network problems
- Next by Date: Re: add user error
- Previous by thread: Re: Console only startup
- Next by thread: Re: Console only startup
- Index(es):
Relevant Pages
|