Click here to Skip to main content
15,888,324 members
Home / Discussions / System Admin
   

System Admin

 
GeneralBlocking an intranet ip Pin
ramacharyg3-Jan-14 20:17
ramacharyg3-Jan-14 20:17 
GeneralRe: Blocking an intranet ip Pin
Bernhard Hiller6-Jan-14 22:10
Bernhard Hiller6-Jan-14 22:10 
GeneralRe: Blocking an intranet ip Pin
ramacharyg6-Jan-14 23:14
ramacharyg6-Jan-14 23:14 
QuestionAccessing Public IP address Pin
forme22-Dec-13 23:47
forme22-Dec-13 23:47 
AnswerRe: Accessing Public IP address Pin
Jochen Arndt23-Dec-13 1:21
professionalJochen Arndt23-Dec-13 1:21 
GeneralRe: Accessing Public IP address Pin
forme23-Dec-13 23:02
forme23-Dec-13 23:02 
GeneralRe: Accessing Public IP address Pin
Jochen Arndt23-Dec-13 23:25
professionalJochen Arndt23-Dec-13 23:25 
QuestionScripting MMC with vbscript. Pin
Dan Kamp17-Dec-13 5:00
Dan Kamp17-Dec-13 5: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
goutom14-Dec-13 23:25
goutom14-Dec-13 23:25 
AnswerRe: DNS Pin
Richard MacCutchan15-Dec-13 0:45
mveRichard MacCutchan15-Dec-13 0:45 
QuestionCisco Router Configuration Assistance Pin
Vasudevan Deepak Kumar29-Nov-13 0:53
Vasudevan Deepak Kumar29-Nov-13 0:53 
QuestionTroubleshooting upgrade from sql 2005 to sql 2008R2 Pin
Kalsto2-Nov-13 19:06
Kalsto2-Nov-13 19:06 
General0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 4:51
professionalJoan M15-Oct-13 4:51 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Pete O'Hanlon15-Oct-13 4:55
mvePete O'Hanlon15-Oct-13 4:55 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 4:56
professionalJoan M15-Oct-13 4:56 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
OriginalGriff15-Oct-13 5:08
mveOriginalGriff15-Oct-13 5:08 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 5:17
professionalJoan M15-Oct-13 5:17 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
OriginalGriff15-Oct-13 5:26
mveOriginalGriff15-Oct-13 5:26 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M11-Nov-13 4:31
professionalJoan M11-Nov-13 4:31 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Nicholas Marty15-Oct-13 5:23
professionalNicholas Marty15-Oct-13 5:23 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
David C# Hobbyist.15-Oct-13 5:10
professionalDavid C# Hobbyist.15-Oct-13 5:10 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M15-Oct-13 5:18
professionalJoan M15-Oct-13 5:18 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
David C# Hobbyist.15-Oct-13 5:26
professionalDavid C# Hobbyist.15-Oct-13 5:26 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
Joan M11-Nov-13 4:30
professionalJoan M11-Nov-13 4:30 
GeneralRe: 0x8024D001 windows update problem with windows XP 32 SP3 Pin
RedDk15-Oct-13 6:57
RedDk15-Oct-13 6: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.