This file contains 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 characters
choco install googlechrome notepadplusplus firefox paint.net slack vscode git wget greenshot -Y |
This file contains 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 characters
select count(distinct(wl.Username)) as "usercount", DATEADD(MINUTE, (DATEDIFF(MINUTE, 0, wl.EntryTime)/30)*30,0) as "roundtime" from WebsiteLog2 wl | |
group by DATEADD(MINUTE, (DATEDIFF(MINUTE, 0, wl.EntryTime)/30)*30,0) | |
order by count(distinct(wl.Username)) desc |
This file contains 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 characters
# finds lists with unlimited versions, logs, and resets to new value | |
param( | |
[Parameter(Mandatory=$true)] [string]$WebAppUrl = "$(Read-Host 'Enter the WebApp Url')", | |
[switch]$PerformUpdate, | |
[int]$VersionLimit = 10 | |
) | |
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
$updates = @{} | |
$WebApp = Get-SPWebApplication($WebAppUrl) |
This file contains 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 characters
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
$report = "$PWD\pagesBySC.txt" | |
$webapps = Get-SPWebApplication | |
$pgTotal = 0 | |
foreach ($wa in $webapps) | |
{ | |
$pgWA = 0 | |
$sites = $wa | select -Expand Sites | |
foreach ($site in $sites) |