Skip to content

Instantly share code, notes, and snippets.

View imapanda's full-sized avatar
🐒

Clément BRESSY imapanda

🐒
View GitHub Profile
@imapanda
imapanda / Remove-McAfee.ps1
Last active September 30, 2025 12:55
Remove McAfee
<#
.SYNOPSIS
Supprime McAfee silencieusement et nettoie WMI.
Tout reste dans C:\BURONOMIC\IT_SUPPORT\RESSOURCES
Logs détaillés pour suivi précis.
.NOTES
- Exécuter en tant qu'administrateur
- Transparent pour l'utilisateur
#>
<#
Compliance_AntiVirus.ps1
Custom compliance detection script for Intune
Author: Jeroen Bakker
Version 2.0
Detects the Antivirus product name, if it is active and up-to-date, and the last update time.
If multiple products are detected it will output the active product or, if there is no active product, the last one in the array
@imapanda
imapanda / get-build-versions-from-AD.ps1
Created November 14, 2023 12:00
Getting Windows 10 & 11 build version from Active Directory
# https://evotec.xyz/getting-windows-10-build-version-from-active-directory/
function ConvertTo-OperatingSystem {
[CmdletBinding()]
param(
[string] $OperatingSystem,
[string] $OperatingSystemVersion
)
if ($OperatingSystem -like 'Windows 10*') {
# You can fill in this list using : https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
$Systems = @{
@imapanda
imapanda / service_disable.ps1
Created November 14, 2023 10:10
Disable print spooler via PowerShell
$svc_name = "spooler";
Stop-Service -name $svc_name -force;
Set-Service -name $svc_name -StartupType disabled;
@imapanda
imapanda / reset_network_drive.bat
Created May 4, 2022 08:04
Delete and re-add network drive T:
:: C.BRESSY - 2022.05.03
:: Delete and re-add network drive T:
:: List network drives
net use
:: delete and re-add
net use T: /delete
net use T: \\<network_path> /user:<domain>\<user>
@imapanda
imapanda / powershell_utils.ps1
Last active May 4, 2022 12:56
Utils functions using Powershell
# C.BRESSY - 22.05.03
# Utils functions using Powershell
# Local computer FQDN via WMI query
$myFQDN=(Get-WmiObject win32_computersystem).DNSHostName+"."+(Get-WmiObject win32_computersystem).Domain
Write-Host $myFQDN
# Is computer part of domain ?
(Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain
# Domain of computer