PowerShell
Configure People Picker to find users from the UPA
SharePoint SE OIDC Configuration with Azure AD
Configure SharePoint APPs from PowerShell
Summary This blogs details how to completely configure a SharePoint Server Subscription Edition Farm to use SharePoint Apps from PowerShell. When necessary, I will show the equivalent GUI steps. Note: Many of these steps apply to all version of SharePoint Server except for the certificate creation steps. Steps 1. Configure DNS with a zone and […]
SharePoint Population Script V2
Summary This is my 2nd version of SharePoint Population Script with a few minor changes. Removed the Hosts file and host header creation to simplify the process. The new script will only create a single DB. A new Web Application using the server host name over a different port is now allowed. A Modern Team […]
Install BGINFO on Multiple Servers
Summary This blog details how to install and configure BGINFO to start on multiple servers. What is BGINFO? BGINFO stands for “Background Information”. This program will allow users to display computer details on the desktop wallpaper. This is very handy when working with multiple virtual servers that all have the same default background. Example: Get […]
Unable to delete M365 Tenant do to existing “Enterprise Applications.”
Problem Description You may find yourself in the process of deleting a Microsoft 365 Tenant because you’re no longer using it or would like to make the domain name available for reuse. However, when attempting to “Delete all enterprise applications“, you are not able to proceed with error, “You can’t delete this application because it’s […]
SharePoint / Script to locate documents encrypted with passwords
Summary A customer asked if there was a method to identity documents stored in SharePoint online that were encrypted with passwords. Since nothing like this existed, it was created using PowerShell. I’m sharing this because the logic in the script may be useful for others. The Code Takeaways This scripts loops though a specified document […]
Script to check if a reg key is set on multiple servers
Summary If your servers require a reg key and unsure if its properly configured. You can use this script to check if the key is present or is set to the correct value across multiple servers. The Script
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#Simple Server list $servers = Get-Content C:\servers.txt # Loop through all servers and check key foreach ($server in $servers) { $REG = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $server) $REGKEY = $REG.OpenSubKey("SYSTEM\CurrentControlSet\Control\Lsa") $val = $REGKEY.GetValue("DisableLoopBackCheck") # If the key is missing or not set it will be displayed in red # If the key is set it will be displayed in green if (!$val){ Write-Host $server "is not set" -ForegroundColor Red } if ($val -ne "1"){ Write-Host $server "is not set properly" -ForegroundColor Red } else{ Write-Host $server "is set" -ForegroundColor Green } } |
What the Script Does In the sample above it will check the “DisableLoopBackCheck” key across a […]
Script to copy specified IIS logs from multiple Servers
Summary Need to copy a set of IIS logs from multiple servers for data analysis? Are you doing it manually? If so, please check out this script as it will help expedite the process. The Script:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
#Modify Inputs # Host and Drive to store the IISLogs $Hostdir = "\\HOSTSERVER\c$" # Actual Location of the IIS Logs on the Server $iislogsfolder = "c$\inetpub\logs\LogFiles\W3SVC1892304237" #A wild card parameter to determine a file range $thefiles = "*ex1906*" # Create a target folder on host if does not exist $TARGETROOT = "$Hostdir\logs" if(!(Test-Path -Path $TARGETROOT)){ New-Item -ItemType directory -Path $TARGETROOT } # Create an export folder if it does not exist $target = "$Hostdir\logs\export" if(!(Test-Path -Path $target)){ New-Item -ItemType directory -Path $target } #Simple Server list $servers = Get-Content C:\servers.txt # For loop to do the work foreach ($server in $servers) { #make a new folder by server name if it does not exist $TARGETDIR = "$target\$Server" if(!(Test-Path -Path $TARGETDIR)){ New-Item -ItemType directory -Path $TARGETDIR } #Get the files $iislogLogDir = "\\$server\$iislogsfolder" $iislogName = Get-ChildItem "$iislogLogDir" -Recurse -Include "$thefiles" | Get-Item #Start a loop to copy all the files to the host locatiion foreach ($log in $iislogName) { copy-Item -path $log $TARGETDIR } } |
What the Script Does You only need to modify the inputs and create a server list. Then the […]


