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
| $urls = @( | |
| 'https://www.microsoft.com/en-us/evalcenter/download-host-integration-server-2020', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-hyper-v-server-2016', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-hyper-v-server-2019', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-lab-kit', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-mem-evaluation-lab-kit', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager-technical-preview', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-microsoft-identity-manager-2016', | |
| 'https://www.microsoft.com/en-us/evalcenter/download-sharepoint-server-2013', |
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 get-IntuneAppDriverIssues($intuneDeviceID) { | |
| #instantiate object from json response schema and values | |
| function instantiate-fromreadinessData($response) { | |
| $objects = $response.Values | foreach-object ` | |
| -Begin { | |
| $propertyNames = @($response.Schema.Column) | |
| } ` | |
| -Process { | |
| $properties = [ordered] @{}; |
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 steals random song lyrics from azlyrics.com and uses text to speech to speak the lyrics at the given time. | |
| #prefect as a backup alarm clock for the morning | |
| Function Set-Alarm{ | |
| Param($Hour,$Minute,$text) | |
| $voice = New-Object -ComObject Sapi.spvoice | |
| $voice.rate = 0 | |
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
| $ACL_error_state = $true | |
| function fix-WingetACL{ | |
| $Error.Clear() | |
| $ErrorActionPreference = "SilentlyContinue" | |
| $SYSTEM = ([wmi]"win32_SID.SID='S-1-5-18'").referenceddomainname + "\" +([wmi]"win32_SID.SID='S-1-5-18'").accountname | |
| $ADMINISTRATORS = ([wmi]"win32_SID.SID='S-1-5-32-544'").referenceddomainname + "\" +([wmi]"win32_SID.SID='S-1-5-32-544'").accountname | |
| $paths = get-childitem "C:\users\*\appdata\local\microsoft\winget" -Recurse | select -ExpandProperty fullname | |
| ForEach ($path in $paths) { |