Stuff
Invoke-XApp (untested) Find-MTU (grabbed from web) Get-FreeDiskSpace (Wmi based) WinCreds package Generate-FancyZones for FancyZones PowerToy
This commit is contained in:
parent
c2675e2346
commit
1c4e9feb1f
8 changed files with 371 additions and 0 deletions
13
WinCreds/Get-CredentialEntryTitle.ps1
Normal file
13
WinCreds/Get-CredentialEntryTitle.ps1
Normal file
|
@ -0,0 +1,13 @@
|
|||
[CmdletBinding()] param (
|
||||
[string]$Pattern
|
||||
)
|
||||
|
||||
begin {
|
||||
}
|
||||
|
||||
process {
|
||||
cmdkey /list | Where-Object { $_ -like "*Target:*" -and $_ -like "$Pattern" }
|
||||
}
|
||||
|
||||
end {
|
||||
}
|
26
WinCreds/Remove-CredentialEntry.ps1
Normal file
26
WinCreds/Remove-CredentialEntry.ps1
Normal file
|
@ -0,0 +1,26 @@
|
|||
[CmdletBinding(SupportsShouldProcess,ConfirmImpact='High')] param (
|
||||
# Specifies a path to one or more locations.
|
||||
[Parameter(Mandatory=$true,
|
||||
Position=0,
|
||||
ParameterSetName="ParameterSetName",
|
||||
ValueFromPipeline=$true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string[]]$EntryName,
|
||||
[switch]$PassThru
|
||||
)
|
||||
|
||||
begin {
|
||||
}
|
||||
|
||||
process {
|
||||
foreach( $local:entryname_ in $EntryName ) {
|
||||
$local:Entry = $entryname_ -replace " ","" -replace "Target:",""
|
||||
if ($PSCmdlet.ShouldProcess("$Entry", "Remove Credential Entry")) {
|
||||
cmdkey /del:$Entry | Out-Null
|
||||
if( $PassThru ) { Write-Output $Entry }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end {
|
||||
}
|
BIN
WinCreds/_.package.json
Normal file
BIN
WinCreds/_.package.json
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue