-

 -

   it_is_it

 - e-mail

 

 -

 LiveInternet.ru:
: 17.08.2005
: 347
: 103
: 508

:


350 GPO --

, 13 2015 . 13:32 +
Gorely
... 30 . , . ) , . GPMC - 350 , , , . 
 
- GPO, , - .
 
- " " html xml. , Group Policy Cmdlets in Windows PowerShell )
 
! ! - - , \\_ *.bat, *.vbs, *.cmd .
600 .
 
?
 
... Excel ( !!!) XML.
Excel , - XML - - - , logon script, - . Excel- ( 4- ). , .
. , - . excel- HTML . 351 . - . . : http://www.planetaexcel.ru/techniques/3/60/
(Formulas – Name Manager) , , . (Reference) :
=..(1)  
=GET.WORKBOOK(1)
 
. , (INDEX), «» :
 
=(; ()) 
=INDEX(; ROW())
 
(ROW) , , , (1,2,3…). , 1 , 2 – ..
, , "" , (HYPERLINK),
 
- ! !
, )))
- - GPO HTML - , .
 
- : 
 
Sub _()
'
' 11
'
 
'
Line0:
C1 = "C1"
C2 = "C2"
Set RangeObj = Cells.Find(What:=" , :", After:=ActiveCell, LookIn:=xlFormulas _
        , LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False, SearchFormat:=False)
        If RangeObj Is Nothing Then GoTo Line1 Else RangeObj.Select
       Range(Selection, Selection.End(xlToRight)).Select
   C1 = ActiveCell.Address
   
   Set RangeObj = Cells.Find(What:=" WMI", After:=ActiveCell, LookIn:=xlFormulas _
        , LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False, SearchFormat:=False)
        If RangeObj Is Nothing Then GoTo Line1 Else RangeObj.Select
       Range(Selection, Selection.End(xlToRight)).Select
   C2 = ActiveCell.Address
   
   If C1 = C2 Then GoTo Line2 Else RangeObj.Select
 
   Range(C1, C2).Select
   
    Selection.Copy
    Worksheets("5").Activate
        Selection.End(xlToLeft).Select
    Selection.End(xlDown).Select
    Range("B319").Select
    Selection.End(xlUp).Select
    ActiveCell.Offset(1, 0).Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
    ActiveCell.Offset(1, -1).Select
    
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
 
    GoTo Line0
    
Line1:
    
    Set RangeObj = Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas _
        , LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False, SearchFormat:=False)
        If RangeObj Is Nothing Then GoTo Line2 Else RangeObj.Select
       Range(Selection, Selection.End(xlToRight)).Select
   C2 = ActiveCell.Address
   
    If C1 = C2 Then GoTo Line2 Else RangeObj.Select
 
   Range(C1, C2).Select
   
    Selection.Copy
    Worksheets("5").Activate
        Selection.End(xlToLeft).Select
    Selection.End(xlDown).Select
    Range("B319").Select
    Selection.End(xlUp).Select
    ActiveCell.Offset(1, 0).Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
    ActiveCell.Offset(1, -1).Select
    'Stop
    
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
'    Stop
    GoTo Line0
    
Line2:     Worksheets("5").Activate
        Selection.End(xlToLeft).Select
    Selection.End(xlDown).Select
    Range("B319").Select
    Selection.End(xlUp).Select
    ActiveCell.Offset(1, 0).Select
    ActiveCell = "N"
    ActiveCell.Offset(1, -1).Select
    
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
 '   Stop
    GoTo Line0
End Sub
 
- ...
 
, :
 
/ GUID User Group Policy loopback processing mode Comment ( GPMC, ) (Y/N) (Y/N) GPO GPO - (Y/N) Computer Configuration (Y/N) User Configuration (Y/N) (Y/N) WMI (Y/N) ( , GPO, , " ") GPO ( )
 
  - ..   (Y/N) ....
 
Group Policy Cmdlets in Windows PowerShell Get-GPInheritance - , :
 
Name                  : SS_WW
ContainerType         : OU
Path                  : ou=##_ws,dc=##,dc=###,dc=##
GpoInheritanceBlocked : No
GpoLinks              : {AAA_LLL_NO_WWW, AAA_1234_W7_##+$$ RR, AAA_1234+WWW, AAA_LLL_SSSS-CliInst...}
InheritedGpoLinks     :  {default domain controllers policy, default domain policy, AAA_1234+WWW, AAA_LLL_SSSS-CliInst...}
 
- , ....
 
, .... !!!!! 
 Fred Young, The University of Waikato, Hamilton, NZ, (https://github.com/wanion)  2012 PowerShell- . !! !!!! , , !
 
 
8- 10-  
 

: 4160591_grouppolicymaster.zip


Gorely   , 16 2015 . 04:38 ()
.... ))))

.. - - ( !!!) WinWord ( ) Notepad++ - 2 , , 2 - Alt+D

, , ...
   
: [1] []
 

:
: 

: ( )

:

  URL