Ai
2 Star 10 Fork 3

chaoyuew/powershell

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Get-IECVHex.ps1 639 Bytes
Copy Edit Raw Blame History
chaoyuew authored 2018-11-15 00:20 +08:00 . SPPS43
Function Get-IECVHex(){
[CmdletBinding()]param(
[Parameter(Mandatory=$True)]
[array]$websites,
[switch]$ReturnBytes
)
$websites|%{$hex_website += Get-WebsiteHex $_}
$hex_result=("411F00005308ADBA{0}FFFFFFFF01000000{0}$hex_website" -f [BitConverter]::ToString([BitConverter]::GetBytes([int32]$websites.count)).replace('-',''))
If( $ReturnBytes ){
[byte[]]$bytes=@()
For( $n=0; $n -lt $hex_result.length; $n=$n+2 ){
$bytes+=([Convert]::ToInt64($hex_result.substring($n,2),16))
}
return $bytes # for Set-RegistryValue.ps1 use
}else{
return $hex_result # for reg add use
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PowerShell
1
https://gitee.com/chaoyuew/powershell.git
git@gitee.com:chaoyuew/powershell.git
chaoyuew
powershell
powershell
feature/wechat

Search