Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create report-false-kfm-redirection #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions report-false-kfm-redirection
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$desktop_false = {}.Invoke()
$documents_false = {}.Invoke()
$pictures_false = {}.Invoke()
Get-ChildItem "path to location of output files" -Filter *.txt |
ForEach-Object {
$filename = $_.FullName
Get-Content $_.FullName | ForEach-Object {
if ($_ -match "Desktop_is_in_OneDrive" -and $_ -match "False") {
$desktop_false.add($filename)
}
if ($_ -match "Documents_is_in_OneDrive" -and $_ -match "False") {
$documents_false.add($filename)
}
if ($_ -match "Pictures_is_in_OneDrive" -and $_ -match "False") {
$pictures_false.add($filename)
}
}
}
Write-Output "Desktop folder not in OD4B:" $desktop_false
Write-Output "Documents folder not in OD4B:" $documents_false
Write-Output "Pictures folder not in OD4B:" $pictures_false