Jump to content

bennebiest

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Belgium

Posts posted by bennebiest

  1. We did a Novell migration for a customer last year. And we had the same need of new NAL as you're having right now.

    Microsoft doesn't offer a sort of Application Launcher as Novell does.

    Only the shortcut way. Either in start menu or explorer view.

    (Explorer view can be closed by the end user, the NAL couldn't be closed)

    So a colleague did some vb.net programming and created a simple GUI. To launch applications.

    We migrated to Softgrid (called App-V now).

    Our application launcher just executes the sfttray.exe with "application name" as parameter, to start an application.

  2. Try this one:

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colSettings = objWMIService.ExecQuery _
    ("Select * from Win32_OperatingSystem")
    For Each OS In colSettings
    'Wscript.Echo OS.Caption
    'WScript.Echo OS.Version

    strOS = OS.Caption
    WScript.Echo strOS

    Select Case strOS

    Case "Microsoft Windows XP Professional"
    WScript.Echo "XP"
    'paste your gpupdate code

    Case "Microsoft Windows 2000 Professional"
    WScript.Echo "2000"
    'paste your secedit code

    End Select
    Next

  3. To determine the Windows version:

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colSettings = objWMIService.ExecQuery _
    ("Select * from Win32_OperatingSystem")
    For Each OS In colSettings
    Wscript.Echo OS.Caption
    WScript.Echo OS.Version
    Next

    For XP for example, it will give this output:

    Microsoft Windows XP Professional
    5.1.2600

    You can put the output in a variable and make a Select Case to execute te gpupdate or secedit, dependig on the Windows version.

    Happy coding.

  4. For example if they are just in the local users group and a script calls for files to be copied to the local PC will the copy fail ?.

    If you configure a loginscript via group policy. This script will be executed if the user is a member of the OU where the GPO w/ the loginscript is linked.

    So if the user is just in the local users group (client XP machine), the loginscript will not be executed.

    edit: I didn't get your question right :-)



×
×
  • Create New...