sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install ruby-full
sudo apt-get install build-essential --no-install-recommends
sudo gem install jekyll bundler
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-xCMObjectLocation { | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string] $InstanceKey, | |
| [Parameter(Mandatory = $false)] | |
| [string] $SiteCode = (Get-CMSite).SiteCode, | |
| [Parameter(Mandatory = $false)] | |
| [string] $SiteServer = ((Get-CMSiteSystemServer -SiteCode $SiteCode | Where-Object { $_.Type -eq "2" }) | Select-Object -ExpandProperty NetworkOSPath).TrimStart("\") | |
| ) |
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 | |
| This script is meant to be a Discovery Script in Configuration Item of SCCM Baseline that | |
| preparing files and scheduled tasks for ToastNotificationScript company workflow | |
| .LINK https://www.imab.dk/windows-10-toast-notification-script/ | |
| #> | |
| ### Setting variables | |
| $CompanyName = "MyCompany" | |
| $LocalScriptFilesPath = "C:\Windows\AdminScripts\ToastNotificationScript" |
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
| $ProfilesRaw = netsh wlan show profiles | |
| $results = $ProfilesRaw | Select-String '^ *(?<profilescope>.+): (?<profilename>.*)$' -AllMatches | |
| $Profiles = @() | |
| for ($i=0; $i -lt $results.count; $i++) { | |
| $Profiles += [PSCustomObject]@{ | |
| Name = $results.Matches[$i].Groups['profilename'].Value | |
| Scope = $results.Matches[$i].Groups['profilescope'].Value | |
| } | |
| } |
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
| ############################################################################################ | |
| # Script to create wpad Site for Proxy # | |
| ### This script is written with idempotency in mind, so it can be run every time we want ### | |
| # # | |
| ############################################################################################ | |
| # What the script does: # | |
| # Creates directory for wpad site, sets basic NTFS Permissions, creates application pool, # | |
| # creates site itself in IIS, configures mime types, disables caching, sets HostHeader and # | |
| # log files path then starts web site. # | |
| ############################################################################################ |