majkinetor / posh Goto Github PK
View Code? Open in Web Editor NEWPowershell modules and functions by majkinetor
License: GNU General Public License v2.0
Powershell modules and functions by majkinetor
License: GNU General Public License v2.0
It can be done using iwr
There is also cinst error
Should probably be moved to Network too.
Should have other sugar functions:
The refresh function no longer appears to be working after upgrading to Windows 10 2004 (it was working on 1909). I've tested this on half a dozen computers and same result, so I believe something has changed in latest windows version which has caused this to stop working. Any thoughts on how to resolve?
As in ahk Tray module
https://github.com/maul-esel/FormsFramework/blob/master/Tray/Tray.ahk
<#
.Synopsis
Verify Local SAM store
.DESCRIPTION
This function takes a user name and a password as input and will verify if the combination is correct. The function returns a boolean based on the result. The script defaults to local user accounts, but a remote computername can be specified in the -ComputerName parameter.
.NOTES
Name: Test-LocalCredential
Author: Jaap Brasser
Version: 1.0
DateUpdated: 2013-05-20
.PARAMETER UserName
The samaccountname of the Local Machine user account
.PARAMETER Password
The password of the Local Machine user account
.PARAMETER ComputerName
The computer on which the local credentials will be verified
.EXAMPLE
Test-LocalCredential -username jaapbrasser -password Secret01
Description:
Verifies if the username and password provided are correct on the local machine, returning either true or false based on the result
#>
function Test-LocalCredential {
[CmdletBinding()]
Param
(
[string]$UserName,
[string]$ComputerName = $env:COMPUTERNAME,
[string]$Password
)
if (!($UserName) -or !($Password)) {
Write-Warning 'Test-LocalCredential: Please specify both user name and password'
} else {
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$DS = New-Object System.DirectoryServices.AccountManagement.PrincipalContext('machine',$ComputerName)
$DS.ValidateCredentials($UserName, $Password)
}
}
function Show-BalloonTip requires disposing the icon
See code in http://www.maddogsw.com/cmdutils/context
Provider for recycle bin or at least function
http://windowsitpro.com/scripting/working-recycled-files-vbscript-and-powershell
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.