This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 | |
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = @{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$svc_name = "spooler"; | |
Stop-Service -name $svc_name -force; | |
Set-Service -name $svc_name -StartupType disabled; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |