Avatar billede ndp Nybegynder
15. oktober 2005 - 15:11 Der er 36 kommentarer og
1 løsning

Share drive (med AD - uden "script")

Jeg har lavet et fælles-folder som hedder "fællesdrev"
Jeg har gjort følgende:
Åbnet "Active directory users and computers"
Klikket på "accounts"
Højre klikket
Valgt "new" --> "Shared folder"
Name: "Fællesdrev"
UNC name:
\\Server\fællesdrev

Men når "brian" logger på systemet, så får han ikke tildelt folderen?
(jeg kan sagtens lave  --> net use f: \\server\fællesdrev  og dermed mappen folderen til "brian" eller via explorer (tools) vælge "Map network drive")

Hvorfor mapper Active Directory ikke folderen ud til de enkelte bruger? / Eller hvordan løser jeg dette problem?

(PS. Jeg har 3 account-grupper, marketing,headquaters, production... jeg har valgt at lave dette share ét niveau op.. så det er meningen af alle 3 grupper gerne skulle få adgang til fællesdrev)
Avatar billede ndp Nybegynder
15. oktober 2005 - 15:13 #1
Hvordan gør jeg uden script.. og dermed får Active directory til at gøre dette.

PS. Jeg skal ud til strøget i københavn nu.. så er først tilbage om 2-3 timer..
Avatar billede screem_brille Novice
15. oktober 2005 - 15:20 #2
bat filen gemmer du i sysvol scripts, så opretter du en GPO og under user configuration -> windows settings -> scripts (logon / logoff), og henviser til bat filen, denne gpo skal så være på overordnet niveau til de brugere / OU som den skal gælde for
Avatar billede johnnymadsen Nybegynder
15. oktober 2005 - 15:48 #3
Hvis du skal have pr. bruger navn er det sådan:

\\Server\fællesdrev\%username%

%username% tager pr. bruger
Avatar billede screem_brille Novice
15. oktober 2005 - 15:51 #4
ups havde overset det med uden script
Avatar billede ndp Nybegynder
15. oktober 2005 - 16:18 #5
Nu har jeg prøvet det.. men det virker ikke rigtigt... :-/

Når "brian" er logget på er der ikke noget faellesdrev (æ omdøbt til ae)... men hvis brian finder scriptet i Sysvol via netværket og dobbletklikker på filen x.bat så bliver der mappet et faellesdrev.. :-\
Avatar billede ndp Nybegynder
15. oktober 2005 - 16:19 #6
(det ligemeget det med scriptet.. nu skal det bare virke..)
Avatar billede screem_brille Novice
15. oktober 2005 - 16:23 #7
hvordan har dutildelt dem den GPO ? har du oprettet en OU og plaeet dine brugere i den ?  (og hvis du henter group policy management fra mss, er det meget nemmere at se hvad der sker, og hvor GPO´s er / burde være aktive)
Avatar billede ndp Nybegynder
15. oktober 2005 - 16:28 #8
jo jo.. jeg har den nye GPO fra microsoft.
Har lavet en OU (accounts).. og gået ét niveau op.. og lavet et GPO som hedder "Share", bagefter "edit" og gået til "user settings" --> logon
Avatar billede ndp Nybegynder
15. oktober 2005 - 16:31 #9
jeg synes det mærkeligt at "brian" kan se x.bat filen..(ligger i sysvol/logon) men at denne ikke bliver kørt.. :-/
Avatar billede ndp Nybegynder
15. oktober 2005 - 16:32 #10
PS. nu skriver min klient maskine at den ikke kan finde netværket mere... :-/
Avatar billede screem_brille Novice
15. oktober 2005 - 16:34 #11
har du de rigtige DNS på klienten ? (99.9% af fejl med GPO mht om de virker eller ej, skyldes forkert DNS opsætning )
Avatar billede ndp Nybegynder
15. oktober 2005 - 17:01 #12
(klienten er online nu..)
Avatar billede ndp Nybegynder
15. oktober 2005 - 17:46 #13
Når jeg kører scriptet får jeg følgende meddelse (dobbeltklikket manuelt via sysvol, faellesdrevet bliver stadigvæk mappet korrekt)

\\Server\domain\sysvol\test.com\policies\{31B2F340-016D-11D2-945F}\USER\Scripts\Logon
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to the windows directory.

c:\windows\net use X: \\server\faellesdrev
Avatar billede screem_brille Novice
15. oktober 2005 - 17:48 #14
hvad står der præcist i dit logon script ?
Avatar billede ndp Nybegynder
15. oktober 2005 - 17:50 #15
net use X: \\server\faellesdrev

(that's it)
Avatar billede ndp Nybegynder
15. oktober 2005 - 17:52 #16
når klient maskinen logger på.. så kommer der ikke nogen "dos-prompt".. der ligesom loader scriptet.. :-(
Avatar billede screem_brille Novice
15. oktober 2005 - 17:53 #17
lyder underligt (du vil næppe kunne nå at se command prompten hvor det afvikles, det går for stærkt)
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:13 #18
er det ikke muligt at skrive:
@REM DETTE ER EN TEST
@REM DETTE ER EN TEST
@REM DETTE ER EN TEST

en masse gang i scriptet.. for ligesom at se om det bliver loadet?
Avatar billede screem_brille Novice
15. oktober 2005 - 18:15 #19
skriv pause istedet for

altså

net use X: \\server\faellesdrev
pause

så skal der trykkes på en tast for der fortsættes ;)
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:23 #20
ingenting... windows loaded uden problemer...
ingen dos-prompt...
Avatar billede screem_brille Novice
15. oktober 2005 - 18:25 #21
har du hentet goup policy management ? der kan du køre en guop policy test wizard
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:30 #22
Name    Parameters    Last Run    Winning GPO
x.cmd                              Default Domain Policy
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:30 #23
Der står altså ikke hvornår scriptet sidst er blevet kørt for "brian"? :-(
Avatar billede johnnymadsen Nybegynder
15. oktober 2005 - 18:31 #24
Her er et som jeg har kørende og fungere via det som brille beskriver med AD.


echo Hello %USERNAME%, welcome to the network!
echo You are accessing the network from %COMPUTERNAME%
echo And you are running the %OS% os.
echo Please wait, authenticating %USERNAME% with the %DOMÆNE NAVN% domain
net use U: /del
net use P: /del
net use U: \\MY_SERVER\users
net use P: \\MY_other_server\public
net time \\SERVER NAVN /set /yes
Avatar billede screem_brille Novice
15. oktober 2005 - 18:32 #25
nej med der står om det er applied eller ikke applied (hvad har du kaldt den fil du afvikler ? (med efternavn)
Avatar billede johnnymadsen Nybegynder
15. oktober 2005 - 18:35 #26
Har du husket rettigheder på share :) jeg har engang glemt det selv :)
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:35 #27
x.cmd  // hed tidligere x.bat
Avatar billede johnnymadsen Nybegynder
15. oktober 2005 - 18:36 #28
Prøv med bat til at starte med blot for at teste
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:37 #29
rettighederne til filen er sat til "everyone"
(desuden kan jeg kører filen manuelt.. så det er nok ikke rettigheder)

næste kommentar er et udskrift fra en HTML fil som jeg fik lavet via GPO
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:37 #30
<html dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" gpmc_reportInitialized="false">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<title>CONTOSO\christine</title>
<!-- Styles -->
<style type="text/css">
                body    { background-color:#FFFFFF; border:1px solid #666666; color:#000000; font-size:68%; font-family:MS Shell Dlg; margin:0,0,10px,0; word-break:normal; word-wrap:break-word; }

                table  { font-size:100%; table-layout:fixed; width:100%; }

                td,th  { overflow:visible; text-align:left; vertical-align:top; white-space:normal; }

                .title  { background:#FFFFFF; border:none; color:#333333; display:block; height:24px; margin:0px,0px,-1px,0px; padding-top:4px; position:relative; table-layout:fixed; width:100%; z-index:5; }

                .he0_expanded    { background-color:#FEF7D6; border:1px solid #BBBBBB; color:#3333CC; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:0px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he1_expanded    { background-color:#A0BACB; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:10px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he1    { background-color:#A0BACB; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:10px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he2    { background-color:#C0D2DE; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:20px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he3    { background-color:#D9E3EA; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:30px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4    { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:40px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4h  { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:45px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4i  { background-color:#F9F9F9; border:1px solid #BBBBBB; color:#000000; display:block; font-family:MS Shell Dlg; font-size:100%; margin-bottom:-1px; margin-left:45px; margin-right:0px; padding-bottom:5px; padding-left:21px; padding-top:4px; position:relative; width:100%; }

                .he5    { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:50px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he5h  { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; padding-right:5em; padding-top:4px; margin-bottom:-1px; margin-left:55px; margin-right:0px; position:relative; width:100%; }

                .he5i  { background-color:#F9F9F9; border:1px solid #BBBBBB; color:#000000; display:block; font-family:MS Shell Dlg; font-size:100%; margin-bottom:-1px; margin-left:55px; margin-right:0px; padding-left:21px; padding-bottom:5px; padding-top: 4px; position:relative; width:100%; }

                DIV .expando { color:#000000; text-decoration:none; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:normal; position:absolute; right:10px; text-decoration:underline; z-index: 0; }

                .he0 .expando { font-size:100%; }

                .info, .info3, .info4, .disalign  { line-height:1.6em; padding:0px,0px,0px,0px; margin:0px,0px,0px,0px; }

                .disalign TD                      { padding-bottom:5px; padding-right:10px; }

                .info TD                          { padding-right:10px; width:50%; }

                .info3 TD                        { padding-right:10px; width:33%; }

                .info4 TD, .info4 TH              { padding-right:10px; width:25%; }

                .info TH, .info3 TH, .info4 TH, .disalign TH { border-bottom:1px solid #CCCCCC; padding-right:10px; }

                .subtable, .subtable3            { border:1px solid #CCCCCC; margin-left:0px; background:#FFFFFF; margin-bottom:10px; }

                .subtable TD, .subtable3 TD      { padding-left:10px; padding-right:5px; padding-top:3px; padding-bottom:3px; line-height:1.1em; width:10%; }

                .subtable TH, .subtable3 TH      { border-bottom:1px solid #CCCCCC; font-weight:normal; padding-left:10px; line-height:1.6em;  }

                .subtable .footnote              { border-top:1px solid #CCCCCC; }

                .subtable3 .footnote, .subtable .footnote { border-top:1px solid #CCCCCC; }

                .subtable_frame    { background:#D9E3EA; border:1px solid #CCCCCC; margin-bottom:10px; margin-left:15px; }

                .subtable_frame TD  { line-height:1.1em; padding-bottom:3px; padding-left:10px; padding-right:15px; padding-top:3px; }

                .subtable_frame TH  { border-bottom:1px solid #CCCCCC; font-weight:normal; padding-left:10px; line-height:1.6em; }

                .subtableInnerHead { border-bottom:1px solid #CCCCCC; border-top:1px solid #CCCCCC; }

                .explainlink            { color:#000000; text-decoration:none; cursor:hand; }

                .explainlink:hover      { color:#0000FF; text-decoration:underline; }

                .spacer { background:transparent; border:1px solid #BBBBBB; color:#FFFFFF; display:block; font-family:MS Shell Dlg; font-size:100%; height:10px; margin-bottom:-1px; margin-left:43px; margin-right:0px; padding-top: 4px; position:relative; }

                .filler { background:transparent; border:none; color:#FFFFFF; display:block; font:100% MS Shell Dlg; line-height:8px; margin-bottom:-1px; margin-left:43px; margin-right:0px; padding-top:4px; position:relative; }

                .container { display:block; position:relative; }

                .rsopheader { background-color:#A0BACB; border-bottom:1px solid black; color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-bottom:5px; text-align:center; }

                .rsopname { color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-left:11px; }

                .gponame{ color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-left:11px; }

                .gpotype{ color:#333333; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; padding-left:11px; }

                #uri    { color:#333333; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; }

                #dtstamp{ color:#333333; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; text-align:left; width:30%; }

                #objshowhide { color:#000000; cursor:hand; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; margin-right:0px; padding-right:10px; text-align:right; text-decoration:underline; z-index:2; word-wrap:normal; }

                #gposummary { display:block; }

                #gpoinformation { display:block; }

                @media print {

                    #objshowhide{ display:none; }

                    body    { color:#000000; border:1px solid #000000; }

                    .title  { color:#000000; border:1px solid #000000; }

                    .he0_expanded    { color:#000000; border:1px solid #000000; }

                    .he1_expanded    { color:#000000; border:1px solid #000000; }

                    .he1    { color:#000000; border:1px solid #000000; }

                    .he2    { color:#000000; background:#EEEEEE; border:1px solid #000000; }

                    .he3    { color:#000000; border:1px solid #000000; }

                    .he4    { color:#000000; border:1px solid #000000; }

                    .he4h  { color:#000000; border:1px solid #000000; }

                    .he4i  { color:#000000; border:1px solid #000000; }

                    .he5    { color:#000000; border:1px solid #000000; }

                    .he5h  { color:#000000; border:1px solid #000000; }

                    .he5i  { color:#000000; border:1px solid #000000; }

                    }

                    v\:* {behavior:url(#default#VML);}

</style>
<!-- Script 1 -->

<script language="vbscript">
<!--
'================================================================================
' String "strShowHide(0/1)"
' 0 = Hide all mode.
' 1 = Show all mode.
strShowHide = 1

'Localized strings
strShow = "show"
strHide = "hide"
strShowAll = "show all"
strHideAll = "hide all"
strShown = "shown"
strHidden = "hidden"
strExpandoNumPixelsFromEdge = "10px"


Function IsSectionHeader(obj)
    IsSectionHeader = (obj.className = "he0_expanded") Or (obj.className = "he1_expanded") Or (obj.className = "he1") Or (obj.className = "he2") Or (obj.className = "he3") Or (obj.className = "he4") Or (obj.className = "he4h") Or (obj.className = "he5") Or (obj.className = "he5h")
End Function


Function IsSectionExpandedByDefault(objHeader)
    IsSectionExpandedByDefault = (Right(objHeader.className, Len("_expanded")) = "_expanded")
End Function


' strState must be show | hide | toggle
Sub SetSectionState(objHeader, strState)
    ' Get the container object for the section.  It's the first one after the header obj.

    i = objHeader.sourceIndex
    Set all = objHeader.parentElement.document.all
    While (all(i).className <> "container")
        i = i + 1
    Wend

    Set objContainer = all(i)

    If strState = "toggle" Then
        If objContainer.style.display = "none" Then
            SetSectionState objHeader, "show"
        Else
            SetSectionState objHeader, "hide"
        End If

    Else
        Set objExpando = objHeader.children.item(1)

        If strState = "show" Then
            objContainer.style.display = "block"
            objExpando.innerText = strHide

        ElseIf strState = "hide" Then
            objContainer.style.display = "none"
            objExpando.innerText = strShow
        End If
    End If
End Sub


Sub ShowSection(objHeader)
    SetSectionState objHeader, "show"
End Sub


Sub HideSection(objHeader)
    SetSectionState objHeader, "hide"
End Sub


Sub ToggleSection(objHeader)
    SetSectionState objHeader, "toggle"
End Sub


'================================================================================
' When user clicks anywhere in the document body, determine if user is clicking
' on a header element.
'================================================================================
Function document_onclick()
    Set strsrc    = window.event.srcElement

    While (strsrc.className = "sectionTitle" Or strsrc.className = "expando" Or strsrc.className = "vmlimage")
        Set strsrc = strsrc.parentElement
    Wend

    ' Only handle clicks on headers.
    If Not IsSectionHeader(strsrc) Then Exit Function

    ToggleSection strsrc
   
    window.event.returnValue = False
End Function

'================================================================================
' link at the top of the page to collapse/expand all collapsable elements
'================================================================================
Function objshowhide_onClick()
    Set objBody = document.body.all
    Select Case strShowHide
        Case 0
            strShowHide = 1
            objshowhide.innerText = strShowAll
            For Each obji In objBody
                If IsSectionHeader(obji) Then
                    HideSection obji
                End If
            Next
        Case 1
            strShowHide = 0
            objshowhide.innerText = strHideAll
            For Each obji In objBody
                If IsSectionHeader(obji) Then
                    ShowSection obji
                End If
            Next
    End Select
End Function

'================================================================================
' onload collapse all except the first two levels of headers (he0, he1)
'================================================================================
Function window_onload()
    ' Only initialize once.  The UI may reinsert a report into the webbrowser control,
    ' firing onLoad multiple times.
    If UCase(document.documentElement.getAttribute("gpmc_reportInitialized")) <> "TRUE" Then

        ' Initialize sections to default expanded/collapsed state.
        Set objBody = document.body.all

        For Each obji in objBody
            If IsSectionHeader(obji) Then
                If IsSectionExpandedByDefault(obji) Then
                    ShowSection obji
                Else
                    HideSection obji
                End If
            End If
        Next

        objshowhide.innerText = strShowAll
       
        document.documentElement.setAttribute "gpmc_reportInitialized", "true"
    End If
End Function

               


'================================================================================
' When direction (LTR/RTL) changes, change adjust for readability
'================================================================================
Function document_onPropertyChange()
    If window.event.propertyName = "dir" Then
        Call fDetDir(UCase(document.dir))
    End If
End Function
Function fDetDir(strDir)
    strDir = UCase(strDir)
    Select Case strDir
        Case "LTR"
            Set colRules = document.styleSheets(0).rules
            For i = 0 To colRules.length -1
                Set nug = colRules.item(i)
                strClass = nug.selectorText
                If nug.style.textAlign = "right" Then
                    nug.style.textAlign = "left"
                End If
                Select Case strClass
                    Case "DIV .expando"
                        nug.style.Left = ""
                        nug.style.right = strExpandoNumPixelsFromEdge
                    Case "#objshowhide"
                        nug.style.textAlign = "right"
                End Select
            Next
        Case "RTL"
            Set colRules = document.styleSheets(0).rules
            For i = 0 To colRules.length -1
                Set nug = colRules.item(i)
                strClass = nug.selectorText
                If nug.style.textAlign = "left" Then
                    nug.style.textAlign = "right"
                End If
                Select Case strClass
                    Case "DIV .expando"
                        nug.style.Left = strExpandoNumPixelsFromEdge
                        nug.style.right = ""
                    Case "#objshowhide"
                        nug.style.textAlign = "left"
                End Select
            Next
    End Select
End Function

'================================================================================
'When printing reports, if a given section is expanded, let's says "shown" (instead of "hide" in the UI).
'================================================================================
Function window_onbeforeprint()
    For Each obji In document.all
        If obji.className = "expando" Then
            If obji.innerText = strHide Then obji.innerText = strShown
            If obji.innerText = strShow Then obji.innerText = strHidden
        End If
    Next
End Function

'================================================================================
'If a section is collapsed, change to "hidden" in the printout (instead of "show").
'================================================================================
Function window_onafterprint()
    For Each obji In document.all
        If obji.className = "expando" Then
            If obji.innerText = strShown Then obji.innerText = strHide
            If obji.innerText = strHidden Then obji.innerText = strShow
        End If
    Next
End Function

'================================================================================
' Adding keypress support for accessibility
'================================================================================
Function document_onKeyPress()
    If window.event.keyCode = "32" Or window.event.keyCode = "13" Or window.event.keyCode = "10" Then 'space bar (32) or carriage return (13) or line feed (10)
        If window.event.srcElement.className = "expando" Then Call document_onclick() : window.event.returnValue = false
        If window.event.srcElement.className = "sectionTitle" Then Call document_onclick() : window.event.returnValue = false
        If window.event.srcElement.id = "objshowhide" Then Call objshowhide_onClick() : window.event.returnValue = false
    End If
End Function
               
-->
</script>
               
<!-- Script 2 -->

<script language="javascript">
<!--
function getExplainWindowTitle()
{
        return document.getElementById("explainText_windowTitle").innerHTML;
}

function getExplainWindowStyles()
{
        return document.getElementById("explainText_windowStyles").innerHTML;
}

function getExplainWindowSettingPathLabel()
{
        return document.getElementById("explainText_settingPathLabel").innerHTML;
}

function getExplainWindowExplainTextLabel()
{
        return document.getElementById("explainText_explainTextLabel").innerHTML;
}

function getExplainWindowPrintButton()
{
        return document.getElementById("explainText_printButton").innerHTML;
}

function getExplainWindowCloseButton()
{
        return document.getElementById("explainText_closeButton").innerHTML;
}

function getNoExplainTextAvailable()
{
        return document.getElementById("explainText_noExplainTextAvailable").innerHTML;
}

function getExplainWindowSupportedLabel()
{
        return document.getElementById("explainText_supportedLabel").innerHTML;
}

function getNoSupportedTextAvailable()
{
        return document.getElementById("explainText_noSupportedTextAvailable").innerHTML;
}

function showExplainText(srcElement)
{
    var strSettingName = srcElement.getAttribute("gpmc_settingName");
    var strSettingPath = srcElement.getAttribute("gpmc_settingPath");
    var strSettingDescription = srcElement.getAttribute("gpmc_settingDescription");
   
    if (strSettingDescription == "")
    {
                strSettingDescription = getNoExplainTextAvailable();
    }
   
    var strSupported = srcElement.getAttribute("gpmc_supported");

    if (strSupported == "")
    {
        strSupported = getNoSupportedTextAvailable();
    }

    var strHtml = "<html>\n";
    strHtml += "<head>\n";
    strHtml += "<title>" + getExplainWindowTitle() + "</title>\n";
    strHtml += "<style type='text/css'>\n" + getExplainWindowStyles() + "</style>\n";
    strHtml += "</head>\n";
    strHtml += "<body>\n";
    strHtml += "<div class='head'>" + strSettingName +"</div>\n";
    strHtml += "<div class='path'><b>" + getExplainWindowSettingPathLabel() + "</b><br/>" + strSettingPath +"</div>\n";
    strHtml += "<div class='path'><b>" + getExplainWindowSupportedLabel() + "</b><br/>" + strSupported +"</div>\n";
    strHtml += "<div class='info'>\n";
    strHtml += "<div class='hdr'>" + getExplainWindowExplainTextLabel() + "</div>\n";
    strHtml += "<div class='bdy'>" + strSettingDescription + "</div>\n";
    strHtml += "<div class='btn'>";
    strHtml += getExplainWindowPrintButton();
    strHtml += getExplainWindowCloseButton();
    strHtml += "</div></body></html>";

    var strDiagArgs = "height=360px, width=630px, status=no, toolbar=no, scrollbars=yes, resizable=yes ";
    var expWin = window.open("", "expWin", strDiagArgs);
    expWin.document.write("");
    expWin.document.close();
    expWin.document.write(strHtml);
    expWin.document.close();
    expWin.focus();
   
    //cancels navigation for IE.
    if(navigator.userAgent.indexOf("MSIE") > 0)
    {
        window.event.returnValue = false;
    }
   
    return false;
}
-->
</script>
               
</head>

<body>

<!-- HTML resources -->
<div style="display:none;">
        <div id="explainText_windowTitle">Group Policy Management</div>
        <div id="explainText_windowStyles">
       
                            body  { font-size:68%;font-family:MS Shell Dlg; margin:0px,0px,0px,0px; border: 1px solid #666666; background:#F6F6F6; width:100%; word-break:normal; word-wrap:break-word; }

                            .head { font-weight:bold; font-size:160%; font-family:MS Shell Dlg; width:100%; color:#6587DC; background:#E3EAF9; border:1px solid #5582D2; padding-left:8px; height:24px; }

                            .path { margin-left: 10px; margin-top: 10px; margin-bottom:5px;width:100%; }

                            .info { padding-left:10px;width:100%; }

                            table { font-size:100%; width:100%; border:1px solid #999999; }

                            th    { border-bottom:1px solid #999999; text-align:left; padding-left:10px; height:24px; }

                            td    { background:#FFFFFF; padding-left:10px; padding-bottom:10px; padding-top:10px; }

                            .btn  { width:100%; text-align:right; margin-top:16px; }

                            .hdr  { font-weight:bold; border:1px solid #999999; text-align:left; padding-top: 4px; padding-left:10px; height:24px; margin-bottom:-1px; width:100%; }

                            .bdy  { width:100%; height:182px; display:block; overflow:scroll; z-index:2; background:#FFFFFF; padding-left:10px; padding-bottom:10px; padding-top:10px; border:1px solid #999999; }

                            button { width:6.9em; height:2.1em; font-size:100%; font-family:MS Shell Dlg; margin-right:15px; }

                            @media print {

                                .bdy { display:block; overflow:visible; }

                                button { display:none; }

                                .head { color:#000000; background:#FFFFFF; border:1px solid #000000; }

                            }

               
        </div>
        <div id="explainText_settingPathLabel">Setting Path:</div>
        <div id="explainText_explainTextLabel">Explanation</div>
        <div id="explainText_printButton">
        <button name="Print" onClick="window.print()" accesskey="P"><u>P</u>rint</button>

                </div>
        <div id="explainText_closeButton">
        <button name="Close" onClick="window.close()" accesskey="C"><u>C</u>lose</button>
               
        </div>
        <div id="explainText_noExplainTextAvailable">No explanation is available for this setting.</div>
        <div id="explainText_supportedLabel">Supported On:</div>
        <div id="explainText_noSupportedTextAvailable">Not available</div>
</div><table class="title" cellpadding="0" cellspacing="0">
<tr><td colspan="2" class="rsopheader">Group Policy Modeling</td></tr>
<tr><td colspan="2" class="rsopname">CONTOSO\christine</td></tr>
<tr><td id="dtstamp">Data collected on: 15-10-2005 18:36:03</td><td><div id="objshowhide" tabindex="0"></div></td></tr>
</table>
<div class="rsopsummary">
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he1_expanded"><span class="sectionTitle" tabindex="0">Computer Configuration Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">No data available.</div></div>
<div class="filler"></div>
<div class="he1_expanded"><span class="sectionTitle" tabindex="0">User Configuration Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he2"><span class="sectionTitle" tabindex="0">General</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td>User name</td><td>CONTOSO\christine</td></tr>
<tr><td>User container</td><td>contoso.com/Accounts/Headquarters</td></tr>
<tr><td>Domain</td><td>contoso.com</td></tr>
<tr><td>Slowlink processing</td><td>No</td></tr>
<tr><td>Loopback processing</td><td>No</td></tr>
</table>
</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Group Policy Objects</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he3"><span class="sectionTitle" tabindex="0">Applied GPOs</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Link Location</th><th scope="col">Revision</th></tr>
<tr><td>Default Domain Policy</td><td>contoso.com</td><td>AD (8), Sysvol (8)</td></tr>
</table>
</div></div><div class="he3"><span class="sectionTitle" tabindex="0">Denied GPOs</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Link Location</th><th scope="col">Reason Denied</th></tr>
<tr><td colspan="3">None</td></tr></table>
</div></div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Simulated security group membership</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i">CONTOSO\christine<br/>BUILTIN\Users<br/>CONTOSO\Domain Users<br/>Everyone<br/>BUILTIN\Pre-Windows 2000 Compatible Access<br/>NT AUTHORITY\Authenticated Users<br/>NT AUTHORITY\This Organization</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">WMI Filters</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Value</th><th scope="col">Reference GPO(s)</th></tr>
<tr><td colspan="3">None</td></tr></table>
</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Component Status</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><th scope="col">Component Name</th><th scope="col">Status</th></tr>
<tr><td>Group Policy Infrastructure</td><td>Success</td></tr>
<tr><td>Scripts</td><td>Success</td></tr>
</table>
</div></div>
</div></div>
<div class="filler"></div>
</div>

<div class="rsopsettings">
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">Computer Configuration</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">No data available.</div></div>
<div class="filler"></div>
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">User Configuration</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he1_expanded"><span class="sectionTitle" tabindex="0">Windows Settings</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he2"><span class="sectionTitle" tabindex="0">Scripts</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4"><span class="sectionTitle" tabindex="0">Logon</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info3" cellpadding="0" cellspacing="0"><tr><th scope="col">Name</th><th scope="col">Parameters</th><th scope="col">Last Run</th><th scope="col">Winning GPO</th></tr>
<tr><td>x.cmd</td><td></td><td>&nbsp;</td><td>Default Domain Policy</td></tr>
</table>
</div></div></div></div></div>
</div>
</body></html>
Avatar billede johnnymadsen Nybegynder
15. oktober 2005 - 18:37 #31
Ok
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:37 #32
Copy /paste det over i et txt doc.. og omdøb filen til html
Avatar billede screem_brille Novice
15. oktober 2005 - 18:40 #33
jeg dropper fra nu, gider ikke scrolle SÅ meget ned hver gang *S* (ønsker du mere hjælp herfra, så luk dette spoørgsmål og opret et nyt med henvisning hertil)
Avatar billede ndp Nybegynder
15. oktober 2005 - 18:48 #34
Tråd fortsætter her.. (løsning giver sammenlagt 75 + 15 = 90 point)
http://eksperten.dk/spm/656334
Avatar billede ndp Nybegynder
15. oktober 2005 - 19:57 #35
<html dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" gpmc_reportInitialized="false">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<title>CONTOSO\christine</title>
<!-- Styles -->
<style type="text/css">
                body    { background-color:#FFFFFF; border:1px solid #666666; color:#000000; font-size:68%; font-family:MS Shell Dlg; margin:0,0,10px,0; word-break:normal; word-wrap:break-word; }

                table  { font-size:100%; table-layout:fixed; width:100%; }

                td,th  { overflow:visible; text-align:left; vertical-align:top; white-space:normal; }

                .title  { background:#FFFFFF; border:none; color:#333333; display:block; height:24px; margin:0px,0px,-1px,0px; padding-top:4px; position:relative; table-layout:fixed; width:100%; z-index:5; }

                .he0_expanded    { background-color:#FEF7D6; border:1px solid #BBBBBB; color:#3333CC; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:0px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he1_expanded    { background-color:#A0BACB; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:10px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he1    { background-color:#A0BACB; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:10px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he2    { background-color:#C0D2DE; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:20px; margin-right:0px; padding-left:8px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he3    { background-color:#D9E3EA; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:30px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4    { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:40px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4h  { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:45px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he4i  { background-color:#F9F9F9; border:1px solid #BBBBBB; color:#000000; display:block; font-family:MS Shell Dlg; font-size:100%; margin-bottom:-1px; margin-left:45px; margin-right:0px; padding-bottom:5px; padding-left:21px; padding-top:4px; position:relative; width:100%; }

                .he5    { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; height:2.25em; margin-bottom:-1px; margin-left:50px; margin-right:0px; padding-left:11px; padding-right:5em; padding-top:4px; position:relative; width:100%; }

                .he5h  { background-color:#E8E8E8; border:1px solid #BBBBBB; color:#000000; cursor:hand; display:block; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; padding-right:5em; padding-top:4px; margin-bottom:-1px; margin-left:55px; margin-right:0px; position:relative; width:100%; }

                .he5i  { background-color:#F9F9F9; border:1px solid #BBBBBB; color:#000000; display:block; font-family:MS Shell Dlg; font-size:100%; margin-bottom:-1px; margin-left:55px; margin-right:0px; padding-left:21px; padding-bottom:5px; padding-top: 4px; position:relative; width:100%; }

                DIV .expando { color:#000000; text-decoration:none; display:block; font-family:MS Shell Dlg; font-size:100%; font-weight:normal; position:absolute; right:10px; text-decoration:underline; z-index: 0; }

                .he0 .expando { font-size:100%; }

                .info, .info3, .info4, .disalign  { line-height:1.6em; padding:0px,0px,0px,0px; margin:0px,0px,0px,0px; }

                .disalign TD                      { padding-bottom:5px; padding-right:10px; }

                .info TD                          { padding-right:10px; width:50%; }

                .info3 TD                        { padding-right:10px; width:33%; }

                .info4 TD, .info4 TH              { padding-right:10px; width:25%; }

                .info TH, .info3 TH, .info4 TH, .disalign TH { border-bottom:1px solid #CCCCCC; padding-right:10px; }

                .subtable, .subtable3            { border:1px solid #CCCCCC; margin-left:0px; background:#FFFFFF; margin-bottom:10px; }

                .subtable TD, .subtable3 TD      { padding-left:10px; padding-right:5px; padding-top:3px; padding-bottom:3px; line-height:1.1em; width:10%; }

                .subtable TH, .subtable3 TH      { border-bottom:1px solid #CCCCCC; font-weight:normal; padding-left:10px; line-height:1.6em;  }

                .subtable .footnote              { border-top:1px solid #CCCCCC; }

                .subtable3 .footnote, .subtable .footnote { border-top:1px solid #CCCCCC; }

                .subtable_frame    { background:#D9E3EA; border:1px solid #CCCCCC; margin-bottom:10px; margin-left:15px; }

                .subtable_frame TD  { line-height:1.1em; padding-bottom:3px; padding-left:10px; padding-right:15px; padding-top:3px; }

                .subtable_frame TH  { border-bottom:1px solid #CCCCCC; font-weight:normal; padding-left:10px; line-height:1.6em; }

                .subtableInnerHead { border-bottom:1px solid #CCCCCC; border-top:1px solid #CCCCCC; }

                .explainlink            { color:#000000; text-decoration:none; cursor:hand; }

                .explainlink:hover      { color:#0000FF; text-decoration:underline; }

                .spacer { background:transparent; border:1px solid #BBBBBB; color:#FFFFFF; display:block; font-family:MS Shell Dlg; font-size:100%; height:10px; margin-bottom:-1px; margin-left:43px; margin-right:0px; padding-top: 4px; position:relative; }

                .filler { background:transparent; border:none; color:#FFFFFF; display:block; font:100% MS Shell Dlg; line-height:8px; margin-bottom:-1px; margin-left:43px; margin-right:0px; padding-top:4px; position:relative; }

                .container { display:block; position:relative; }

                .rsopheader { background-color:#A0BACB; border-bottom:1px solid black; color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-bottom:5px; text-align:center; }

                .rsopname { color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-left:11px; }

                .gponame{ color:#333333; font-family:MS Shell Dlg; font-size:130%; font-weight:bold; padding-left:11px; }

                .gpotype{ color:#333333; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; padding-left:11px; }

                #uri    { color:#333333; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; }

                #dtstamp{ color:#333333; font-family:MS Shell Dlg; font-size:100%; padding-left:11px; text-align:left; width:30%; }

                #objshowhide { color:#000000; cursor:hand; font-family:MS Shell Dlg; font-size:100%; font-weight:bold; margin-right:0px; padding-right:10px; text-align:right; text-decoration:underline; z-index:2; word-wrap:normal; }

                #gposummary { display:block; }

                #gpoinformation { display:block; }

                @media print {

                    #objshowhide{ display:none; }

                    body    { color:#000000; border:1px solid #000000; }

                    .title  { color:#000000; border:1px solid #000000; }

                    .he0_expanded    { color:#000000; border:1px solid #000000; }

                    .he1_expanded    { color:#000000; border:1px solid #000000; }

                    .he1    { color:#000000; border:1px solid #000000; }

                    .he2    { color:#000000; background:#EEEEEE; border:1px solid #000000; }

                    .he3    { color:#000000; border:1px solid #000000; }

                    .he4    { color:#000000; border:1px solid #000000; }

                    .he4h  { color:#000000; border:1px solid #000000; }

                    .he4i  { color:#000000; border:1px solid #000000; }

                    .he5    { color:#000000; border:1px solid #000000; }

                    .he5h  { color:#000000; border:1px solid #000000; }

                    .he5i  { color:#000000; border:1px solid #000000; }

                    }

                    v\:* {behavior:url(#default#VML);}

</style>
<!-- Script 1 -->

<script language="vbscript">
<!--
'================================================================================
' String "strShowHide(0/1)"
' 0 = Hide all mode.
' 1 = Show all mode.
strShowHide = 1

'Localized strings
strShow = "show"
strHide = "hide"
strShowAll = "show all"
strHideAll = "hide all"
strShown = "shown"
strHidden = "hidden"
strExpandoNumPixelsFromEdge = "10px"


Function IsSectionHeader(obj)
    IsSectionHeader = (obj.className = "he0_expanded") Or (obj.className = "he1_expanded") Or (obj.className = "he1") Or (obj.className = "he2") Or (obj.className = "he3") Or (obj.className = "he4") Or (obj.className = "he4h") Or (obj.className = "he5") Or (obj.className = "he5h")
End Function


Function IsSectionExpandedByDefault(objHeader)
    IsSectionExpandedByDefault = (Right(objHeader.className, Len("_expanded")) = "_expanded")
End Function


' strState must be show | hide | toggle
Sub SetSectionState(objHeader, strState)
    ' Get the container object for the section.  It's the first one after the header obj.

    i = objHeader.sourceIndex
    Set all = objHeader.parentElement.document.all
    While (all(i).className <> "container")
        i = i + 1
    Wend

    Set objContainer = all(i)

    If strState = "toggle" Then
        If objContainer.style.display = "none" Then
            SetSectionState objHeader, "show"
        Else
            SetSectionState objHeader, "hide"
        End If

    Else
        Set objExpando = objHeader.children.item(1)

        If strState = "show" Then
            objContainer.style.display = "block"
            objExpando.innerText = strHide

        ElseIf strState = "hide" Then
            objContainer.style.display = "none"
            objExpando.innerText = strShow
        End If
    End If
End Sub


Sub ShowSection(objHeader)
    SetSectionState objHeader, "show"
End Sub


Sub HideSection(objHeader)
    SetSectionState objHeader, "hide"
End Sub


Sub ToggleSection(objHeader)
    SetSectionState objHeader, "toggle"
End Sub


'================================================================================
' When user clicks anywhere in the document body, determine if user is clicking
' on a header element.
'================================================================================
Function document_onclick()
    Set strsrc    = window.event.srcElement

    While (strsrc.className = "sectionTitle" Or strsrc.className = "expando" Or strsrc.className = "vmlimage")
        Set strsrc = strsrc.parentElement
    Wend

    ' Only handle clicks on headers.
    If Not IsSectionHeader(strsrc) Then Exit Function

    ToggleSection strsrc
   
    window.event.returnValue = False
End Function

'================================================================================
' link at the top of the page to collapse/expand all collapsable elements
'================================================================================
Function objshowhide_onClick()
    Set objBody = document.body.all
    Select Case strShowHide
        Case 0
            strShowHide = 1
            objshowhide.innerText = strShowAll
            For Each obji In objBody
                If IsSectionHeader(obji) Then
                    HideSection obji
                End If
            Next
        Case 1
            strShowHide = 0
            objshowhide.innerText = strHideAll
            For Each obji In objBody
                If IsSectionHeader(obji) Then
                    ShowSection obji
                End If
            Next
    End Select
End Function

'================================================================================
' onload collapse all except the first two levels of headers (he0, he1)
'================================================================================
Function window_onload()
    ' Only initialize once.  The UI may reinsert a report into the webbrowser control,
    ' firing onLoad multiple times.
    If UCase(document.documentElement.getAttribute("gpmc_reportInitialized")) <> "TRUE" Then

        ' Initialize sections to default expanded/collapsed state.
        Set objBody = document.body.all

        For Each obji in objBody
            If IsSectionHeader(obji) Then
                If IsSectionExpandedByDefault(obji) Then
                    ShowSection obji
                Else
                    HideSection obji
                End If
            End If
        Next

        objshowhide.innerText = strShowAll
       
        document.documentElement.setAttribute "gpmc_reportInitialized", "true"
    End If
End Function

               


'================================================================================
' When direction (LTR/RTL) changes, change adjust for readability
'================================================================================
Function document_onPropertyChange()
    If window.event.propertyName = "dir" Then
        Call fDetDir(UCase(document.dir))
    End If
End Function
Function fDetDir(strDir)
    strDir = UCase(strDir)
    Select Case strDir
        Case "LTR"
            Set colRules = document.styleSheets(0).rules
            For i = 0 To colRules.length -1
                Set nug = colRules.item(i)
                strClass = nug.selectorText
                If nug.style.textAlign = "right" Then
                    nug.style.textAlign = "left"
                End If
                Select Case strClass
                    Case "DIV .expando"
                        nug.style.Left = ""
                        nug.style.right = strExpandoNumPixelsFromEdge
                    Case "#objshowhide"
                        nug.style.textAlign = "right"
                End Select
            Next
        Case "RTL"
            Set colRules = document.styleSheets(0).rules
            For i = 0 To colRules.length -1
                Set nug = colRules.item(i)
                strClass = nug.selectorText
                If nug.style.textAlign = "left" Then
                    nug.style.textAlign = "right"
                End If
                Select Case strClass
                    Case "DIV .expando"
                        nug.style.Left = strExpandoNumPixelsFromEdge
                        nug.style.right = ""
                    Case "#objshowhide"
                        nug.style.textAlign = "left"
                End Select
            Next
    End Select
End Function

'================================================================================
'When printing reports, if a given section is expanded, let's says "shown" (instead of "hide" in the UI).
'================================================================================
Function window_onbeforeprint()
    For Each obji In document.all
        If obji.className = "expando" Then
            If obji.innerText = strHide Then obji.innerText = strShown
            If obji.innerText = strShow Then obji.innerText = strHidden
        End If
    Next
End Function

'================================================================================
'If a section is collapsed, change to "hidden" in the printout (instead of "show").
'================================================================================
Function window_onafterprint()
    For Each obji In document.all
        If obji.className = "expando" Then
            If obji.innerText = strShown Then obji.innerText = strHide
            If obji.innerText = strHidden Then obji.innerText = strShow
        End If
    Next
End Function

'================================================================================
' Adding keypress support for accessibility
'================================================================================
Function document_onKeyPress()
    If window.event.keyCode = "32" Or window.event.keyCode = "13" Or window.event.keyCode = "10" Then 'space bar (32) or carriage return (13) or line feed (10)
        If window.event.srcElement.className = "expando" Then Call document_onclick() : window.event.returnValue = false
        If window.event.srcElement.className = "sectionTitle" Then Call document_onclick() : window.event.returnValue = false
        If window.event.srcElement.id = "objshowhide" Then Call objshowhide_onClick() : window.event.returnValue = false
    End If
End Function
               
-->
</script>
               
<!-- Script 2 -->

<script language="javascript">
<!--
function getExplainWindowTitle()
{
        return document.getElementById("explainText_windowTitle").innerHTML;
}

function getExplainWindowStyles()
{
        return document.getElementById("explainText_windowStyles").innerHTML;
}

function getExplainWindowSettingPathLabel()
{
        return document.getElementById("explainText_settingPathLabel").innerHTML;
}

function getExplainWindowExplainTextLabel()
{
        return document.getElementById("explainText_explainTextLabel").innerHTML;
}

function getExplainWindowPrintButton()
{
        return document.getElementById("explainText_printButton").innerHTML;
}

function getExplainWindowCloseButton()
{
        return document.getElementById("explainText_closeButton").innerHTML;
}

function getNoExplainTextAvailable()
{
        return document.getElementById("explainText_noExplainTextAvailable").innerHTML;
}

function getExplainWindowSupportedLabel()
{
        return document.getElementById("explainText_supportedLabel").innerHTML;
}

function getNoSupportedTextAvailable()
{
        return document.getElementById("explainText_noSupportedTextAvailable").innerHTML;
}

function showExplainText(srcElement)
{
    var strSettingName = srcElement.getAttribute("gpmc_settingName");
    var strSettingPath = srcElement.getAttribute("gpmc_settingPath");
    var strSettingDescription = srcElement.getAttribute("gpmc_settingDescription");
   
    if (strSettingDescription == "")
    {
                strSettingDescription = getNoExplainTextAvailable();
    }
   
    var strSupported = srcElement.getAttribute("gpmc_supported");

    if (strSupported == "")
    {
        strSupported = getNoSupportedTextAvailable();
    }

    var strHtml = "<html>\n";
    strHtml += "<head>\n";
    strHtml += "<title>" + getExplainWindowTitle() + "</title>\n";
    strHtml += "<style type='text/css'>\n" + getExplainWindowStyles() + "</style>\n";
    strHtml += "</head>\n";
    strHtml += "<body>\n";
    strHtml += "<div class='head'>" + strSettingName +"</div>\n";
    strHtml += "<div class='path'><b>" + getExplainWindowSettingPathLabel() + "</b><br/>" + strSettingPath +"</div>\n";
    strHtml += "<div class='path'><b>" + getExplainWindowSupportedLabel() + "</b><br/>" + strSupported +"</div>\n";
    strHtml += "<div class='info'>\n";
    strHtml += "<div class='hdr'>" + getExplainWindowExplainTextLabel() + "</div>\n";
    strHtml += "<div class='bdy'>" + strSettingDescription + "</div>\n";
    strHtml += "<div class='btn'>";
    strHtml += getExplainWindowPrintButton();
    strHtml += getExplainWindowCloseButton();
    strHtml += "</div></body></html>";

    var strDiagArgs = "height=360px, width=630px, status=no, toolbar=no, scrollbars=yes, resizable=yes ";
    var expWin = window.open("", "expWin", strDiagArgs);
    expWin.document.write("");
    expWin.document.close();
    expWin.document.write(strHtml);
    expWin.document.close();
    expWin.focus();
   
    //cancels navigation for IE.
    if(navigator.userAgent.indexOf("MSIE") > 0)
    {
        window.event.returnValue = false;
    }
   
    return false;
}
-->
</script>
               
</head>

<body>

<!-- HTML resources -->
<div style="display:none;">
        <div id="explainText_windowTitle">Group Policy Management</div>
        <div id="explainText_windowStyles">
       
                            body  { font-size:68%;font-family:MS Shell Dlg; margin:0px,0px,0px,0px; border: 1px solid #666666; background:#F6F6F6; width:100%; word-break:normal; word-wrap:break-word; }

                            .head { font-weight:bold; font-size:160%; font-family:MS Shell Dlg; width:100%; color:#6587DC; background:#E3EAF9; border:1px solid #5582D2; padding-left:8px; height:24px; }

                            .path { margin-left: 10px; margin-top: 10px; margin-bottom:5px;width:100%; }

                            .info { padding-left:10px;width:100%; }

                            table { font-size:100%; width:100%; border:1px solid #999999; }

                            th    { border-bottom:1px solid #999999; text-align:left; padding-left:10px; height:24px; }

                            td    { background:#FFFFFF; padding-left:10px; padding-bottom:10px; padding-top:10px; }

                            .btn  { width:100%; text-align:right; margin-top:16px; }

                            .hdr  { font-weight:bold; border:1px solid #999999; text-align:left; padding-top: 4px; padding-left:10px; height:24px; margin-bottom:-1px; width:100%; }

                            .bdy  { width:100%; height:182px; display:block; overflow:scroll; z-index:2; background:#FFFFFF; padding-left:10px; padding-bottom:10px; padding-top:10px; border:1px solid #999999; }

                            button { width:6.9em; height:2.1em; font-size:100%; font-family:MS Shell Dlg; margin-right:15px; }

                            @media print {

                                .bdy { display:block; overflow:visible; }

                                button { display:none; }

                                .head { color:#000000; background:#FFFFFF; border:1px solid #000000; }

                            }

               
        </div>
        <div id="explainText_settingPathLabel">Setting Path:</div>
        <div id="explainText_explainTextLabel">Explanation</div>
        <div id="explainText_printButton">
        <button name="Print" onClick="window.print()" accesskey="P"><u>P</u>rint</button>

                </div>
        <div id="explainText_closeButton">
        <button name="Close" onClick="window.close()" accesskey="C"><u>C</u>lose</button>
               
        </div>
        <div id="explainText_noExplainTextAvailable">No explanation is available for this setting.</div>
        <div id="explainText_supportedLabel">Supported On:</div>
        <div id="explainText_noSupportedTextAvailable">Not available</div>
</div><table class="title" cellpadding="0" cellspacing="0">
<tr><td colspan="2" class="rsopheader">Group Policy Modeling</td></tr>
<tr><td colspan="2" class="rsopname">CONTOSO\christine</td></tr>
<tr><td id="dtstamp">Data collected on: 15-10-2005 19:56:47</td><td><div id="objshowhide" tabindex="0"></div></td></tr>
</table>
<div class="rsopsummary">
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he1_expanded"><span class="sectionTitle" tabindex="0">Computer Configuration Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">No data available.</div></div>
<div class="filler"></div>
<div class="he1_expanded"><span class="sectionTitle" tabindex="0">User Configuration Summary</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he2"><span class="sectionTitle" tabindex="0">General</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td>User name</td><td>CONTOSO\christine</td></tr>
<tr><td>User container</td><td>contoso.com/Accounts/Headquarters</td></tr>
<tr><td>Domain</td><td>contoso.com</td></tr>
<tr><td>Slowlink processing</td><td>No</td></tr>
<tr><td>Loopback processing</td><td>No</td></tr>
</table>
</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Group Policy Objects</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he3"><span class="sectionTitle" tabindex="0">Applied GPOs</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Link Location</th><th scope="col">Revision</th></tr>
<tr><td>Default Domain Policy</td><td>contoso.com</td><td>AD (14), Sysvol (14)</td></tr>
<tr><td>Share-Folder Redirection</td><td>contoso.com/Accounts</td><td>AD (14), Sysvol (14)</td></tr>
</table>
</div></div><div class="he3"><span class="sectionTitle" tabindex="0">Denied GPOs</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Link Location</th><th scope="col">Reason Denied</th></tr>
<tr><td colspan="3">None</td></tr></table>
</div></div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Simulated security group membership</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i">CONTOSO\christine<br/>BUILTIN\Users<br/>CONTOSO\Domain Users<br/>Everyone<br/>BUILTIN\Pre-Windows 2000 Compatible Access<br/>NT AUTHORITY\Authenticated Users<br/>NT AUTHORITY\This Organization</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">WMI Filters</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info3" cellpadding="0" cellspacing="0">
<tr><th scope="col">Name</th><th scope="col">Value</th><th scope="col">Reference GPO(s)</th></tr>
<tr><td colspan="3">None</td></tr></table>
</div></div>
<div class="he2"><span class="sectionTitle" tabindex="0">Component Status</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><th scope="col">Component Name</th><th scope="col">Status</th></tr>
<tr><td>Group Policy Infrastructure</td><td>Success</td></tr>
<tr><td>Folder Redirection</td><td>Success</td></tr>
<tr><td>Scripts</td><td>Success</td></tr>
</table>
</div></div>
</div></div>
<div class="filler"></div>
</div>

<div class="rsopsettings">
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">Computer Configuration</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">No data available.</div></div>
<div class="filler"></div>
<div class="he0_expanded"><span class="sectionTitle" tabindex="0">User Configuration</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he1_expanded"><span class="sectionTitle" tabindex="0">Windows Settings</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he2"><span class="sectionTitle" tabindex="0">Scripts</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4"><span class="sectionTitle" tabindex="0">Logon</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info3" cellpadding="0" cellspacing="0"><tr><th scope="col">Name</th><th scope="col">Parameters</th><th scope="col">Last Run</th><th scope="col">Winning GPO</th></tr>
<tr><td>x.cmd</td><td></td><td>&nbsp;</td><td>Default Domain Policy</td></tr>
<tr><td>x.bat</td><td></td><td>&nbsp;</td><td>Default Domain Policy</td></tr>
<tr><td>\\Hq-con-dc-01\NETLOGON\x.cmd</td><td></td><td>&nbsp;</td><td>Default Domain Policy</td></tr>
<tr><td>\\Hq-con-dc-01\NETLOGON\x.bat</td><td></td><td>&nbsp;</td><td>Default Domain Policy</td></tr>
<tr><td>x.bat</td><td></td><td>&nbsp;</td><td>Share-Folder Redirection</td></tr>
<tr><td>x.cmd</td><td></td><td>&nbsp;</td><td>Share-Folder Redirection</td></tr>
</table>
</div></div></div><div class="he2"><span class="sectionTitle" tabindex="0">Folder Redirection</span><a class="expando" href="#"></a></div>
        <div class="container"><div class="he4"><span class="sectionTitle" tabindex="0">Application Data</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row"><b>Winning GPO</b></td><td>Share-Folder Redirection</td></tr>
</table>
</div><div class="he4h"><span class="sectionTitle" tabindex="0">Setting: Basic (Redirect everyone's folder to the same location)</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">Path: \\hq-con-dc-01\profiles$\christine\application data</div></div><div class="he4h"><span class="sectionTitle" tabindex="0">Options</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Grant user exclusive rights to Application Data</td><td>Enabled</td></tr>
<tr><td scope="row">Move the contents of Application Data to the new location</td><td>Enabled</td></tr>
</table>
</div>
<div class="he4i">
<table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Policy Removal Behavior</td><td>Leave contents</td></tr>
</table></div></div></div><div class="he4"><span class="sectionTitle" tabindex="0">Desktop</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row"><b>Winning GPO</b></td><td>Share-Folder Redirection</td></tr>
</table>
</div><div class="he4h"><span class="sectionTitle" tabindex="0">Setting: Basic (Redirect everyone's folder to the same location)</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">Path: \\hq-con-dc-01\profiles$\christine\desktop</div></div><div class="he4h"><span class="sectionTitle" tabindex="0">Options</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Grant user exclusive rights to Desktop</td><td>Enabled</td></tr>
<tr><td scope="row">Move the contents of Desktop to the new location</td><td>Enabled</td></tr>
</table>
</div>
<div class="he4i">
<table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Policy Removal Behavior</td><td>Leave contents</td></tr>
</table></div></div></div><div class="he4"><span class="sectionTitle" tabindex="0">My Documents</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row"><b>Winning GPO</b></td><td>Share-Folder Redirection</td></tr>
</table>
</div><div class="he4h"><span class="sectionTitle" tabindex="0">Setting: Basic (Redirect everyone's folder to the same location)</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">Path: \\hq-con-dc-01\profiles$\christine\my documents</div></div><div class="he4h"><span class="sectionTitle" tabindex="0">Options</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Grant user exclusive rights to My Documents</td><td>Enabled</td></tr>
<tr><td scope="row">Move the contents of My Documents to the new location</td><td>Enabled</td></tr>
</table>
</div>
<div class="he4i">
<table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Policy Removal Behavior</td><td>Leave contents</td></tr>
</table></div></div></div><div class="he4"><span class="sectionTitle" tabindex="0">My Pictures</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row"><b>Winning GPO</b></td><td>Share-Folder Redirection</td></tr>
</table>
</div><div class="he4h"><span class="sectionTitle" tabindex="0">Setting: Basic (Redirect everyone's folder to the same location)</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">Path: \\hq-con-dc-01\profiles$\christine\my documents\My Pictures</div></div><div class="he4h"><span class="sectionTitle" tabindex="0">Options</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Grant user exclusive rights to My Pictures</td><td>Enabled</td></tr>
<tr><td scope="row">Move the contents of My Pictures to the new location</td><td>Enabled</td></tr>
</table>
</div>
<div class="he4i">
<table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Policy Removal Behavior</td><td>Leave contents</td></tr>
</table></div></div></div><div class="he4"><span class="sectionTitle" tabindex="0">Start Menu</span><a class="expando" href="#"></a></div>
    <div class="container">
<div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row"><b>Winning GPO</b></td><td>Share-Folder Redirection</td></tr>
</table>
</div><div class="he4h"><span class="sectionTitle" tabindex="0">Setting: Basic (Redirect everyone's folder to the same location)</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i">Path: \\hq-con-dc-01\profiles$\christine</div></div><div class="he4h"><span class="sectionTitle" tabindex="0">Options</span><a class="expando" href="#"></a></div>
<div class="container"><div class="he4i"><table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Grant user exclusive rights to Start Menu</td><td>Disabled</td></tr>
<tr><td scope="row">Move the contents of Start Menu to the new location</td><td>Disabled</td></tr>
</table>
</div>
<div class="he4i">
<table class="info" cellpadding="0" cellspacing="0">
<tr><td scope="row">Policy Removal Behavior</td><td>Leave contents</td></tr>
</table></div></div></div></div></div></div>
</div>
</body></html>
Avatar billede ndp Nybegynder
15. oktober 2005 - 22:12 #36
RSOP data for CONTOSO\Administrator on HQ-CON-DC-01 : Logging Mode
-------------------------------------------------------------------

OS Type:                    Microsoft(R) Windows(R) Server 2003, Enterprise Edition
OS Configuration:            Primary Domain Controller
OS Version:                  5.2.3790
Terminal Server Mode:        Remote Administration
Site Name:                  Default-First-Site-Name
Roaming Profile:           
Local Profile:              C:\Documents and Settings\Administrator
Connected over a slow link?: No


COMPUTER SETTINGS
------------------
    CN=HQ-CON-DC-01,OU=Domain Controllers,DC=contoso,DC=com
    Last time Group Policy was applied: 15-10-2005 at 21:58:03
    Group Policy was applied from:      hq-con-dc-01.contoso.com
    Group Policy slow link threshold:  500 kbps
    Domain Name:                        CONTOSO
    Domain Type:                        Windows 2000

    Applied Group Policy Objects
    -----------------------------
        Default Domain Controllers Policy
        Default Domain Policy
        Local Group Policy

    The computer is a part of the following security groups
    -------------------------------------------------------
        BUILTIN\Administrators
        Everyone
        BUILTIN\Pre-Windows 2000 Compatible Access
        BUILTIN\Users
        Windows Authorization Access Group
        NT AUTHORITY\NETWORK
        NT AUTHORITY\Authenticated Users
        This Organization
        HQ-CON-DC-01$
        Domain Controllers
        NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS
       

USER SETTINGS
--------------
    CN=Administrator,CN=Users,DC=contoso,DC=com
    Last time Group Policy was applied: 15-10-2005 at 21:28:31
    Group Policy was applied from:      hq-con-dc-01.contoso.com
    Group Policy slow link threshold:  500 kbps
    Domain Name:                        CONTOSO
    Domain Type:                        Windows 2000
   
    Applied Group Policy Objects
    -----------------------------
        Default Domain Policy

    The following GPOs were not applied because they were filtered out
    -------------------------------------------------------------------
        Local Group Policy
            Filtering:  Not Applied (Empty)

    The user is a part of the following security groups
    ---------------------------------------------------
        Domain Users
        Everyone
        BUILTIN\Administrators
        BUILTIN\Users
        BUILTIN\Pre-Windows 2000 Compatible Access
        NT AUTHORITY\INTERACTIVE
        NT AUTHORITY\Authenticated Users
        This Organization
        LOCAL
        Enterprise Admins
        Domain Admins
        Schema Admins
        Group Policy Creator Owners
       
    The user has the following security privileges
    ----------------------------------------------

        Bypass traverse checking
        Manage auditing and security log
        Back up files and directories
        Restore files and directories
        Change the system time
        Shut down the system
        Force shutdown from a remote system
        Take ownership of files or other objects
        Debug programs
        Modify firmware environment values
        Profile system performance
        Profile single process
        Increase scheduling priority
        Load and unload device drivers
        Create a pagefile
        Adjust memory quotas for a process
        Remove computer from docking station
        Perform volume maintenance tasks
        Impersonate a client after authentication
        Create global objects
        Enable computer and user accounts to be trusted for delegation
        Add workstations to domain

    Resultant Set Of Policies for User
Avatar billede jpvj Nybegynder
17. oktober 2005 - 20:56 #37
Smider et svar - se fortsættelse i nyt spm.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB

Billetkontoret A/S

.NET Full Stack Developer

Capgemini Danmark A/S

Salesforce CTO - Nordics

Udviklings- og Forenklingsstyrelsen

ITSM-koordinator

Udviklings- og Forenklingsstyrelsen

IT-projektledere til forretningskritiske projekter