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 characters
################################################################################ | |
# MIT License | |
# | |
# Copyright (c) 2024 Microsoft and Contributors | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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 characters
################################################################################ | |
# MIT License | |
# | |
# Copyright (c) 2024 Microsoft and Contributors | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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 characters
<# | |
=============================================================== | |
Wi-Fi Profile Manager Script (Windows, PowerShell) | |
=============================================================== | |
WHAT THIS SCRIPT DOES: | |
1. Lists all saved Wi-Fi profiles on the system. | |
2. Prompts the user (y/n) to delete each one individually. | |
3. Displays a list of the remaining profiles. |
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 characters
<# | |
.SYNOPSIS | |
Applies Adobe Acrobat DC FeatureLockdown registry keys via Intune. | |
.DESCRIPTION | |
This script configures specific FeatureLockdown registry settings to optimise Adobe Acrobat DC | |
for enterprise deployment using the Universal Installer. | |
It: | |
- Enforces Enhanced Security (Reduced Mode) |
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 characters
<# | |
.SYNOPSIS | |
This script manages DNS records for specified domains on Cloudflare. | |
.DESCRIPTION | |
The script performs the following tasks: | |
- Retrieves the Zone ID for each domain using Cloudflare’s API. | |
- Deletes all existing DNS records for each domain. | |
- Adds a predefined set of DNS records (A, TXT, and DKIM) to each domain. |
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 characters
# Restart-ComputerWithTimeCheck.ps1 | |
# Description: This script will restart the computer using the /g option, | |
# but only if the current system time is between 1:00 AM and 3:00 AM. | |
# List of Logged-in Users and Sessions | |
Write-Host "======================================" -ForegroundColor Yellow | |
Write-Host "Logged-in Users:" -ForegroundColor White | |
Write-Host "--------------------------------------" -ForegroundColor Yellow | |
query user |
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 characters
# This script syncs a device with intune using powershell. | |
# This can be pushed with RMM and avoids the dreaded "remote wipe" and "remote sync" buttons being mixed up. | |
# Source: https://oofhours.com/2024/03/30/when-does-a-windows-client-sync-with-intune/ | |
[Windows.Management.MdmSessionManager,Windows.Management,ContentType=WindowsRuntime] | |
$session = [Windows.Management.MdmSessionManager]::TryCreateSession() | |
$session.StartAsync() |
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 characters
function unInstallTeams($path) { | |
$clientInstaller = "$($path)\Update.exe" | |
try { | |
$process = Start-Process -FilePath "$clientInstaller" -ArgumentList "--uninstall /s" -PassThru -Wait -ErrorAction STOP | |
if ($process.ExitCode -ne 0) | |
{ | |
Write-Error "UnInstallation failed with exit code $($process.ExitCode)." | |
} | |
} |
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 characters
# Clearing Teams Cache by Mark Vale | |
# Uninstall Teams by Rudy Mens | |
$clearCache = Read-Host "Do you want to delete the Teams Cache (Y/N)?" | |
$clearCache = $clearCache.ToUpper() | |
$uninstall= Read-Host "Do you want to uninstall Teams completely (Y/N)?" | |
$uninstall= $uninstall.ToUpper() | |
if ($clearCache -eq "Y"){ | |
Write-Host "Stopping Teams Process" -ForegroundColor Yellow | |
try{ | |
Get-Process -ProcessName Teams | Stop-Process -Force |
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 characters
<# | |
.DESCRIPTION | |
The script uses a COM object to interact with the Windows Update service, searching for any updates that are currently available but not installed. If no updates are pending, it confirms the system is up to date. Otherwise, it lists all pending updates by title. | |
#> | |
# Create a COM object for Windows Update Session | |
$UpdateSession = New-Object -ComObject "Microsoft.Update.Session" | |
$UpdateSearcher = $UpdateSession.CreateUpdateSearcher() | |
# Search for pending updates |
NewerOlder