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
$Report = @() | |
$i = 0 | |
$Accounts = (Get-MsolUser -All | ? {$_.StrongAuthenticationMethods -ne $Null} | Sort DisplayName) | |
ForEach ($Account in $Accounts) { | |
Write-Host "Processing" $Account.DisplayName | |
$i++ | |
$Methods = $Account | Select -ExpandProperty StrongAuthenticationMethods | |
$MFA = $Account | Select -ExpandProperty StrongAuthenticationUserDetails | |
$State = $Account | Select -ExpandProperty StrongAuthenticationRequirements | |
$Methods | ForEach { If ($_.IsDefault -eq $True) {$Method = $_.MethodType}} |
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
Get-InstalledModule | Update-Module |
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
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} |
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
get-mailbox | Select DisplayName,UserPrincipalName,HasPicture | Export-Csv C:\photostatus.csv -nti |
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
REG DELETE HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /va /f |
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
$ApplicationId = 'YourApplicationID' | |
$ApplicationSecret = 'YourApplicationSecret' | Convertto-SecureString -AsPlainText -Force | |
$TenantID = 'YourTenantID' | |
$ExchangeRefreshToken = 'YourExchangeToken' | |
$RefreshToken = 'YourRefreshToken' | |
$UPN = "UPN-Used-To-Generate-Token" | |
############################## | |
$credential = New-Object System.Management.Automation.PSCredential($ApplicationId, $ApplicationSecret) | |
$aadGraphToken = New-PartnerAccessToken -ApplicationId $ApplicationId -Credential $credential -RefreshToken $refreshToken -Scopes 'https://graph.windows.net/.default' -ServicePrincipal -Tenant $tenantID |
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
md c:\HWID | |
Set-Location c:\HWID | |
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force | |
Install-Script -Name Get-WindowsAutopilotInfo -Force | |
$env:Path += ";C:\Program Files\WindowsPowerShell\Scripts" | |
Get-WindowsAutopilotInfo.ps1 -OutputFile AutopilotHWID.csv |
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
<# | |
.Description | |
Clears Teams Cache. | |
.Source | |
https://commsverse.blog/2018/09/28/clear-the-microsoft-teams-client-cache/ | |
#> | |
$challenge = Read-Host "Are you sure you want to delete Teams Cache (Y/N)?" | |
$challenge = $challenge.ToUpper() |
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
<# | |
.DESCRIPTION | |
This script gathers information about connected monitors and allows the user to assign asset tags. This can be used with a USB or network drive. | |
The script retrieves details of each monitor connected to the system, such as the manufacturer, name, serial number, week of manufacture, and year of manufacture. It prompts the user to input an asset tag number for each monitor. The collected data, including the asset tags, are then appended to a CSV file. | |
.PARAMETERS | |
The script uses hardcoded CSV file path which can be adjusted as needed. | |
.EXAMPLE | |
.\Monitor-Serials.ps1 |
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
<# | |
.SYNOPSIS | |
This script configures the PowerShell environment for removing Visual C++ Redistributables. | |
It installs the NuGet package provider and the VcRedist module, and then removes specific versions of Visual C++ Redistributables. | |
.DESCRIPTION | |
The script sets the execution policy to Bypass for the current process, installs NuGet and VcRedist modules, and uninstalls specific versions of Visual C++ Redistributables (2005, 2008, 2010, 2012). It ends by listing all installed Visual C++ Redistributables. | |
.NOTES | |
Requires administrative permissions |
OlderNewer