Last active
February 3, 2023 13:05
-
-
Save ivanhub/01c4336ce1b7395f96c69a74b0148128 to your computer and use it in GitHub Desktop.
Revisions
-
ivanhub revised this gist
Feb 3, 2023 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,5 +6,9 @@ or get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename or get-SPUser -LIMIT ALL -Web http://URL |Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}}|select-string XXX|select-string "=}" -NotMatch |set-Content -Encoding UTF8 file.csv #$user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}}|select-string XXX|select-string "=}" -NotMatch |set-Content -Encoding UTF8 blabla.txt -
ivanhub revised this gist
Feb 3, 2023 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,5 +7,4 @@ or get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename #$user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}}|select-string XXX|select-string "=}" -NotMatch |set-Content -Encoding UTF8 blabla.txt -
ivanhub revised this gist
Feb 3, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Grou #$user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}}|select-string XXX|select-string "=}" -NotMatch |set-Content -Encoding UTF8 blabla.txt -
ivanhub revised this gist
Feb 3, 2023 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,3 +5,7 @@ $user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-C or get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename #$user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}}|select-string XXX|select-string "=}" -NotMatch |set-Content -Encoding UTF8 blabla -
ivanhub created this gist
Feb 3, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ $web = Get-SPWeb http://SITE $user=$web.AllUsers $user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename or get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename