justhink Posted July 10, 2008 Share Posted July 10, 2008 (edited) Nedd to run a vbs script on logon, which update group policy, but there are few clients are using 2000 professional, so GPUPDATE won't use, hav to use SECEDIT so, can some 1 tell me how to determin OS via VBS so it can run GPEDIT on XP clients and SECEDIT on 2000 clients,Please help me, urgent,Script is >Set objShell = CreateObject("WScript.Shell");this will run on XPobjShell.Run "gpupdate /force", 1, True;But i don't know how... ;This will for 2000objShell.Run "SECEDIT /REFRESHPOLICY USER_POLICY /ENFORCE", 1, True Edited July 10, 2008 by justhink Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now