This file contains 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
# https://blogs.msdn.microsoft.com/commandline/2018/01/12/chmod-chown-wsl-improvements/ | |
# Enable extra metadata options by default | |
[automount] | |
enabled = true | |
root = /mnt/ | |
options = "case=off,metadata,umask=22,fmask=11" | |
mountFsTab = false | |
options = case=off | |
# Enable DNS – even though these are turned on by default, we’ll specify here just to be explicit. |
This file contains 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
use CM_PRI | |
SELECT LP.DisplayName, | |
CP.CI_ID, | |
CPS.PkgID, | |
CPS.ContentSubFolder | |
FROM dbo.CI_ContentPackages CPS | |
INNER JOIN dbo.CIContentPackage CP | |
ON CPS.PkgID = CP.PkgID | |
LEFT OUTER JOIN dbo.CI_LocalizedProperties LP | |
ON CP.CI_ID = LP.CI_ID |
This file contains 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
<# | |
Creates a scheduled task to run a daily Update-Help on the local machine | |
#> | |
$trigger = New-JobTrigger -Weekly -At "7:30 AM" -DaysOfWeek "Monday" | |
$option = New-ScheduledJobOption -StartIfOnBattery -RequireNetwork -RunElevated | |
Register-ScheduledJob -Name UpdateHelp -ScriptBlock {Update-Help -Module * -Force} -Trigger $trigger -ScheduledJobOption $option |
This file contains 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
DELETE FROM [SUSDB].[dbo].[tbEventInstance] | |
WHERE [EventID] IN (381,382,384,386) |
This file contains 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 Start-Elevated { | |
[CmdletBinding()] | |
Param ( | |
[parameter(Mandatory = $true,ValueFromPipeline=$true,Position=0)] [String]$FilePath, | |
[parameter(Mandatory = $false,ValueFromRemainingArguments=$true,Position=1)] [String[]]$ArgumentList | |
) | |
Start-Process -verb RunAs @PSBoundParameters | |
} | |
New-Alias -Name 'sudo' -Value 'Start-Elevated' |
NewerOlder