Click here to Skip to main content
15,850,685 members
Home / Discussions / System Admin
   

System Admin

 
GeneralBlocking an intranet ip Pin
ramacharyg3-Jan-14 21:17
ramacharyg3-Jan-14 21:17 
GeneralRe: Blocking an intranet ip Pin
Bernhard Hiller6-Jan-14 23:10
Bernhard Hiller6-Jan-14 23:10 
GeneralRe: Blocking an intranet ip Pin
ramacharyg7-Jan-14 0:14
ramacharyg7-Jan-14 0:14 
QuestionAccessing Public IP address Pin
forme23-Dec-13 0:47
forme23-Dec-13 0:47 
AnswerRe: Accessing Public IP address Pin
Jochen Arndt23-Dec-13 2:21
professionalJochen Arndt23-Dec-13 2:21 
GeneralRe: Accessing Public IP address Pin
forme24-Dec-13 0:02
forme24-Dec-13 0:02 
GeneralRe: Accessing Public IP address Pin
Jochen Arndt24-Dec-13 0:25
professionalJochen Arndt24-Dec-13 0:25 
QuestionScripting MMC with vbscript. Pin
Dan Kamp17-Dec-13 6:00
Dan Kamp17-Dec-13 6:00 
Hi,

I am a bit out of my depth here so I have some questions. At my site we do unattended installs and configuration of our machines. I would like to script the install of a mmc snap in but have come to an impasse. I have found some sample code but I cannot find documentation to take me further. I would like to add the Group Policy Object Editor which I can do. But I want to further configure it to the local policy/Non-administrators which is where I get suck.

Below is what I have so far any and all help will be welcome. Thanks in advance.

d

VBScript
'Start of UAC workaround code

If WScript.Arguments.length =0 Then
  Set objShell = CreateObject("Shell.Application")

  objShell.ShellExecute "wscript.exe", Chr(34) & _
  WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1
Else

'start code here

'################################################
' VARIABLE DECLARATIONS
'################################################
'Option Explicit
Dim objSCANode
Dim objMMC

'################################################
' EXECUTE 'Open Database...' MENU ITEM
'################################################ 
Set objMMC = CreateObject("MMC20.Application")

objMMC.Document.SnapIns.Add("Group Policy Object Editor")
objMMC.Show
Set objSCANode = objMMC.Document.ScopeNamespace.GetChild(objMMC.Document.RootNode)
objMMC.Document.ActiveView.Select objSCANode
objMMC.Document.ActiveView.SelectionContextMenu.Item(2).Execute


'################################################
' DEBUG LINES
'################################################
wscript.Echo "objMMC.Document.RootNode.Name: " + objMMC.Document.RootNode.Name
wscript.Echo "objMMC.Document.ScopeNamespace.GetChild(objMMC.Document.RootNode): " + objSCANode.Name ' "Group Policy Object Editor"
wscript.Echo "objMMC.Document.ActiveView.Memento (objSCANode.Name): " + objMMC.Document.ActiveView.Memento
wscript.Echo "objMMC.Document.ActiveView.Selection.Item(1): " + objMMC.Document.ActiveView.Selection.Item(1).Name
wscript.Echo "objMMC.Document.ActiveView.SelectionContextMenu.Item(2).DisplayName: " + objMMC.Document.ActiveView.SelectionContextMenu.Item(2).DisplayName
wscript.Echo "objMMC.Document.ActiveView.SelectionContextMenu.Item(2).Path: " + objMMC.Document.ActiveView.SelectionContextMenu.Item(2).Path

'end of code here

end if
'end or UAC code

QuestionDNS Pin
goutom15-Dec-13 0:25
goutom15-Dec-13 0:25 
AnswerRe: DNS Pin
Richard MacCutchan15-Dec-13 1:45
mveRichard MacCutchan15-Dec-13 1:45 
QuestionCisco Router Configuration Assistance Pin
Vasudevan Deepak Kumar29-Nov-13 1:53
Vasudevan Deepak Kumar29-Nov-13 1:53 
QuestionTroubleshooting upgrade from sql 2005 to sql 2008R2 Pin
Kalsto2-Nov-13 20:06
Kalsto2-Nov-13 20:06 
General0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 5:51
professionalJoan M15-Oct-13 5:51 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Pete O'Hanlon15-Oct-13 5:55
subeditorPete O'Hanlon15-Oct-13 5:55 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 5:56
professionalJoan M15-Oct-13 5:56 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
OriginalGriff15-Oct-13 6:08
mveOriginalGriff15-Oct-13 6:08 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 6:17
professionalJoan M15-Oct-13 6:17 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
OriginalGriff15-Oct-13 6:26
mveOriginalGriff15-Oct-13 6:26 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M11-Nov-13 5:31
professionalJoan M11-Nov-13 5:31 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Nicholas Marty15-Oct-13 6:23
professionalNicholas Marty15-Oct-13 6:23 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
David C# Hobbyist.15-Oct-13 6:10
professionalDavid C# Hobbyist.15-Oct-13 6:10 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 6:18
professionalJoan M15-Oct-13 6:18 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
David C# Hobbyist.15-Oct-13 6:26
professionalDavid C# Hobbyist.15-Oct-13 6:26 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M11-Nov-13 5:30
professionalJoan M11-Nov-13 5:30 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
RedDk15-Oct-13 7:57
RedDk15-Oct-13 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.