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
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 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
<# | |
Copy-SpotlightImages.ps1 | |
20181018 - 4dilio | |
Improved by https://www.reddit.com/user/Lee_Dailey/ | |
Makes a copy of Windows Spolight images for your lockscreen, | |
and saves them to your $env:USERPROFILE\Pictures\Spotlight directory. | |
If the directory doesn't exist, it is created. Any image larger than | |
100 KB is copied, as some images in this folder are not wallpaper. | |
Also, files are renamed with date-stamp, along with first 8 charaters | |
of filename. This is just to help in sorting. |
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
# AnisbleMe.ps1 | |
# Preliminary conifguration for a windows host | |
# Make sure Network profile is Private | |
$InterfaceId = (Get-NetConnectionProfile | Select-Object -ExpandProperty InterfaceIndex) | |
Set-NetConnectionProfile -InterfaceIndex $InterfacId -NetworkCategory Private | |
Write-Output "Interface Id $InterfaceId Network Profile set to Private" | |
# Enable Remote Desktop | |
Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Set-NetFirewallRule -Enabled true -Profile Private, 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
# Import the EWS Managed API | |
Import-Module 'C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll' | |
# Set Exchange version, credentials, and other variables | |
$ExchangeVersion = [Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP2 | |
$Service = [Microsoft.Exchange.WebServices.Data.ExchangeService]::new($ExchangeVersion) | |
$User = "MY-SERVICE-ACCOUNT" | |
$Password = Get-Content MySuperSecureStringPassword.txt | ConvertTo-SecureString | |
$Service.Credentials = [System.Net.NetworkCredential]::new($User, $Password) |
NewerOlder