
bennebiest
Content Type
Profiles
Forums
Events
Posts posted by bennebiest
-
-
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
Next0 -
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
NextFor XP for example, it will give this output:
Microsoft Windows XP Professional
5.1.2600You 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.
0 -
To have auto backups of your redirected folders, I should use DFS (Server 2003 R2).
Configure folder redirection to a DFS path, which is configured with redundant shares.
0 -
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 :-)
0
Substitute for Novell Application Launcher
in Windows 2000/2003/NT4
Posted
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.