zettelkasten/OneNoteExport/Schnelle_Notizen/Sammel_Infos/20_Powershell open File from SP.md

40 lines
742 B
Markdown
Raw Normal View History

2023-08-17 19:32:37 +02:00
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>