Re: Console only startup

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.



.



Relevant Pages

  • Re: Remote Downlevel Document Error
    ... Dave Patrick ....Please no email replies - reply in newsgroup. ... Microsoft Certified Professional ... When clients logon to the domain as soon as their ... if I remove the startup script from running the error does not ...
    (microsoft.public.win2000.general)
  • Re: LimitLogin.exe tool dosnt restrict login sessions with AD 200
    ... It actually consists of a logon script ... The logoff script updates the same attribute. ... For admins who log in to Windows Server, ... admins they have a concurrent session since they like having that ability. ...
    (microsoft.public.windows.server.active_directory)
  • RE: TS 2008: Force Desktop Background
    ... the logon vbs script is below. ... logs on to a new session. ... ' Script first queries the HKCU\Remote registry key, ...
    (microsoft.public.windows.terminal_services)
  • Re: Console only startup
    ... You need to set a logon script to run only for locally logon users. ... Only when the logon session is from Console the ... Microsoft provides programming examples for illustration only, ...
    (microsoft.public.windows.server.sbs)
  • Re: Log students on - Same computers each week - Different usernames
    ... You don't get a session ... So to execute a script, ... I resolved my logon issue with tweakui. ...
    (microsoft.public.scripting.vbscript)