locked
add site name to output RRS feed

  • Question

  • hello

    i need to add the site name next to the author output:

                foreach ($SiteAuthor in $Site.SiteAuthors)
                {
                    cNTFSPermission ($FQDN + "_SiteAuthor_" + $SiteAuthor)
                    {
                        Ensure = "Present"
                        Account = domain\$SiteAuthor"
                        Access = "Allow"
                        Path = "D:\inetpub\$FQDN"
                        Rights = "FullControl"
                        DependsOn = "[File]$Folder_Root_Resource"
    
                    }
                    $SiteAuthor | Out-File -FilePath "$($Node.Role)-Authors.txt" -Append

    right now i just get a list of usernames.

    thanks

    Tuesday, June 26, 2018 5:47 PM

All replies

  • It is not possible to know wat you are asking from your post.  You syntax is not PowerShell and is not correct for any language.


    \_(ツ)_/

    Tuesday, June 26, 2018 8:08 PM