1707 private links
The differences between PowerShell and PowerShell Core
Via river.
New-Shortcut -ShortcutFullName "C:\Users\Florian\Desktop\IT-Connect.lnk" -ShortcutTarget "https://www.it-connect.fr"
ADAssist is a PowerShell script that generates Windows Forms (WinForms) and provides the following features:
-
Computer component :
- Verifies the connectivity and general information for selected computer
- Provides information regarding computer’s operating system
- Displays network configuration, update GPOs, list settings and ports
- Queries and display services, process …
-
User component :
- Displays basic user info
- Provides list of the computer(s) used by selected user
- Shows logon activity for selected user and selected log file
- Launches a tool to display, manage and edit user’s attributes and membership in AD
#Déclaration d'une whitelist de bornes connues
$whitelist='18:a6:f7:c4:a2:7e','a4:08:f5:4b:ac:5a'
#Le fichier de log
$logfile='d:\ssid.log'
$logs=@()
#Récupération du contenu du fichier existant
If(Test-Path -Path $logfile)
{
$logs+=Import-CSV -Path $logfile
}
$date=Get-Date
#Scan des SSIDs et des BSSIDs
$cmd=netsh wlan show networks mode=bssid
$n=$cmd.Count
For($i=0;$i -lt $n;$i++)
{
If($cmd[$i] -Match '^SSID[^:]+:.(.*)$')
{
$ssid=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Type[^:]+:.(.+)$'
$reseau=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Authentification[^:]+:.(.+)$'
$authent=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Chiffrement[^:]+:.(.+)$'
$chiffrement=$Matches[1]
$i++
While($cmd[$i] -Match 'BSSID[^:]+:.(.+)$')
{
$bssid=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Signal[^:]+:.(.+)$'
$signal=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Type[^:]+:.(.+)$'
$radio=$Matches[1]
$i++
$bool=$cmd[$i] -Match 'Canal[^:]+:.(.+)$'
$canal=$Matches[1]
$i=$i+2
If($bssid -notin $whitelist)
{
#Consignation des BSSIDs et des SSIDs
$logs+=[PSCustomObject]@{date=$date;ssid=$ssid;reseau=$reseau;authentification=$authent;chiffrement=$chiffrement;bssid=$bssid;signal=$signal;radio=$radio;canal=$canal}
}
}
}
}
$cmd=$null
#Sauvegarde dans le fichier de logs
If($logs)
{
$logs| Export-CSV -NoTypeInformation -Path $logfile
#Facultatif : affichage des résultats si vous exécutez le script en mode interactif
$logs|Out-GridView -Title 'Log Scan Wifi'
}
$logs=$null
Speed up PowerShell with simplified multithreading
In this post, I will share with you a PowerShell module I created that allows you to tell a text using the System voice.
PowerNSX provides a series of PowerShell cmdlets to administer and automate NSX for vSphere.
This PowerShell module includes various functions that utilize the Slack API to create a command and control channel. The main function, Start-Shell, will connect to a user-specified Slack channel and authenticate using a supplied API authentication token for a given Slack team and user. Any command typed into the channel will then be executed, in PowerShell, on the host.
Via https://www.it-connect.fr/slackshell-un-module-powershell-pour-slack/