PowerShell modules, digital signatures, NuGet nuspec and packages
d-fens GmbH General-Guisan-Strasse 6 CH-6300 Zug Switzerland
| <# | |
| .SYNOPSIS | |
| Disables services not required in Windows Server 2016. | |
| .DESCRIPTION | |
| Disables services not required to increase security of the system. | |
| .PARAMETER ComputerName |
| # Powershell script to discover VMDK files that are not referenced in any VM's VMX file. | |
| # Warning - I've heard reports that this doesn't work on some versions of ESXi and have no had time to troubleshoot/test it. | |
| # Also detects VMDKs from machines that need snapshot consolidation (from differentials that exist but are not part of the tree). | |
| # Author: HJA van Bokhoven | |
| # Modifications: LucD | |
| function LoadSnapin{ | |
| param($PSSnapinName) | |
| if (!(Get-PSSnapin | where {$_.Name -eq $PSSnapinName})){ | |
| Add-pssnapin -name $PSSnapinName |
| ################## | |
| # 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 |
| # [biz.dfch.PS.System.Data] Invoke-SqlCmd without the overhead | |
| # http://d-fens.ch/2013/11/26/biz-dfch-ps-system-data-invoke-sqlcmd-without-the-overhead | |
| function Invoke-SqlCmd { | |
| [CmdletBinding( | |
| SupportsShouldProcess=$true, | |
| ConfirmImpact="Medium", | |
| HelpURI='http://dfch.biz/PS/System/Data/Invoke-SqlCmd/' | |
| )] | |
| Param ( |
| // http://d-fens.ch/2013/11/27/biz-dfch-ps-storebox-api-invoke-cterafiletransfer/ | |
| // Check https://github.com/dfch/biz.dfch.PS.Storebox.Api for the complete repository of this module | |
| function Invoke-CteraFileTransfer { | |
| [CmdletBinding( | |
| SupportsShouldProcess=$true, | |
| ConfirmImpact="High", | |
| HelpURI='http://dfch.biz/PS/Storebox/Api/Invoke-CteraFileTransfer' | |
| )] | |
| [OutputType([string])] | |
| Param ( |
| import android.content.Context; | |
| import android.os.Handler; | |
| import android.util.AttributeSet; | |
| import android.widget.TextView; | |
| public class TypeWriter extends TextView { | |
| private CharSequence mText; | |
| private int mIndex; | |
| private long mDelay = 150; //Default 150ms delay |