40 lines
742 B
Markdown
40 lines
742 B
Markdown
![]() |
Powershell open File from SP
|
|||
|
|
|||
|
Montag, 31. August 2020
|
|||
|
|
|||
|
20:14
|
|||
|
|
|||
|
|
|||
|
|
|||
|
\$webapp = Get-SPWebApplication <https://mobilnet.bkk-mobiloil.de>
|
|||
|
|
|||
|
\$allroot = \$webapp \|get-spsite -Limit all \|get-spweb -Limit all \|where {\$\_.isrootweb -eq \"true\"}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
\$web = Get-SPWeb \"<https://mobilnet.bkk-mobiloil.de>\"
|
|||
|
|
|||
|
\$List = \$web.Lists\[\"Formatbibliothek\"\]
|
|||
|
|
|||
|
\$item = \$List.Items \|where {\$\_.url -like \"\*intranet\*\" -AND \$\_.Name -like \"Change\*\"}
|
|||
|
|
|||
|
\$file = \$item.File
|
|||
|
|
|||
|
\$data = \$file.OpenBinary()
|
|||
|
|
|||
|
\$encode = New-Object System.text.asciiencoding
|
|||
|
|
|||
|
\$test = \$encode.GetString(\$data)
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<https://meet.sbk.org/marcel.dietrich/JFH1R3HD?sl=1>
|