|
I want to be able to get and set values of Local Policy Editor using vb scripts (or for that matter any other command line thing). The problem is that for my requirement I cannot rely on the machine in question having anything like powershell. I want to be able to run a script/command and get/set the values of things inside Local Group Policy Editor. eg. I want to be able to set things like running gpedit.msc and set the value for "\\Computer Configuration\Administrative Templates\Network\Offline Files\Default Cache Size", and I want to do this without manual intervention. vb script was my obvious choice thinking that this must be possible using it, however I dont know where to start at. However if you have pointers regarding this, or any other way through which I can achieve this usecase please educate me. Thanks, Mayuresh | | mayuresh_kshirsagar Thursday, November 19, 2009 2:17 PM | Hello Mayuresh,
bdbodger means this thread, http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/717e3fc3-8840-446d-8b7a-55a4052f48d6
VBScript issues are redirected to other forums because this forum only targets at VB.NET related questions.
By the way, I searched on the web and find the following link that may help for your scenario, Manage Group Policy with VBScript, http://searchwindowsserver.techtarget.com/news/article/0,289142,sid68_gci1233442,00.html
Scripting Group Policy related Tasks http://technet.microsoft.com/en-us/library/cc776655(WS.10).aspx (To get these scripts in the above link, you need install GPMC SDK and find them in %programfiles%\gpmc\scripts directory)
Hope this can get you start!
Have a nice day!
Ji Zhou
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - Marked As Answer byJi.ZhouMSFT, ModeratorThursday, November 26, 2009 4:23 AM
-
| | Ji.Zhou Thursday, November 26, 2009 4:23 AM | I want to be able to get and set values of Local Policy Editor using vb scripts (or for that matter any other command line thing). The problem is that for my requirement I cannot rely on the machine in question having anything like powershell. I want to be able to run a script/command and get/set the values of things inside Local Group Policy Editor. eg. I want to be able to set things like running gpedit.msc and set the value for "\\Computer Configuration\Administrative Templates\Network\Offline Files\Default Cache Size", and I want to do this without manual intervention. vb script was my obvious choice thinking that this must be possible using it, however I dont know where to start at. However if you have pointers regarding this, or any other way through which I can achieve this usecase please educate me. Thanks, Mayuresh
Friends anyone? | | mayuresh_kshirsagar Friday, November 20, 2009 4:01 AM | Have you tried the first post at the top of the page for links about VBscript .
coding for fun
Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the  button . Makes it easier to read . | | bdbodger Friday, November 20, 2009 7:51 AM | Not sure I am understanding this. Can you point me to the post or paste the link? Thanks. | | mayuresh_kshirsagar Monday, November 23, 2009 11:40 AM | Hello Mayuresh,
bdbodger means this thread, http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/717e3fc3-8840-446d-8b7a-55a4052f48d6
VBScript issues are redirected to other forums because this forum only targets at VB.NET related questions.
By the way, I searched on the web and find the following link that may help for your scenario, Manage Group Policy with VBScript, http://searchwindowsserver.techtarget.com/news/article/0,289142,sid68_gci1233442,00.html
Scripting Group Policy related Tasks http://technet.microsoft.com/en-us/library/cc776655(WS.10).aspx (To get these scripts in the above link, you need install GPMC SDK and find them in %programfiles%\gpmc\scripts directory)
Hope this can get you start!
Have a nice day!
Ji Zhou
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - Marked As Answer byJi.ZhouMSFT, ModeratorThursday, November 26, 2009 4:23 AM
-
| | Ji.Zhou Thursday, November 26, 2009 4:23 AM |
|