Top articles
-
[Azure Active Directory] Supprimer des appareils du portail Azure Active Directory
Vous devrez peut-être supprimer des appareils d’Azure AD en cas de problèmes de communication ou d’appareils manquants. Vous pouvez utiliser l’action Supprimer pour supprimer du portail Azure les enregistrements de l’appareil inaccessibles et peu susceptibles...
-
Send reminder Outlook
0. $actionDate = (
).tostring("yyyy-MM-dd HH:mm") 1. Télécharger et installer le module EWS Managed API sur le serveur SCCM: https://www.powershellgallery.com/packages/PSEWS.Api/2.2.1.0 2. Script: $rappeldate = $actionDate $user = $domain... -
USMT: script for both scanstate and loadstate in VBScript for windows 7 to windows 10
(A little thanks for you is a big gift for me) this script in compatible with both cscript and deployment TaskSequence : ################################################################ On Error Resume NextstrComputer = "."const HKEY_LOCAL_MACHINE = &H80000002Const...
-
Advanced Windows Image Deployment Provisioning Templates - XP, Vista, 7
Purpose This article will discuss some advanced options for deploying Windows. With very few modifications this template should work for deploying Windows XP, Windows Vista (x86 or x64) or Windows 7 (x86 or x64). This document is for use with deploying...
-
W7: Comment accéder à system32 depuis le compte SYSTEM
Lorsqu'on déploie du windows 7, les tâches ont lieu le plus souvent depuis le compte LOCAL\SYSTEM. Il arrive parfois que l'on ait besoin de poser des fichiers dans SYSTEM32. Si on utilise SCCM ou MDT, il suffit de cocher la case "ignorer config 64bits"...
-
USMT: Migrating Wallpapers IN OFFLINE MODE
create wallpaper.xml like:
Wallpapers ... -
virtualisation sans droit admin
Pour faire de la virtualisation vous avez besoin de 2 choses: 1. Les droits d'admin sur le poste 2. activer la virtualisation dans le bios Nous allons partir du postula que la virtualisation est active dans le bios. Prérequis: Avoir l'ISO de votre OS...
-
2 SCCM Powershell Scripts
1. Getting a list of devices from a device collection using powershell: Get-CMDevice -CollectionName
| Select Name 2. Connecting to SCCM Using PowerShell: Import-Module "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1"... -
uncrfile
function uncrypt{ param($file,$ext,$crstr) if(!$here){$here = $PSScriptRoot} if(!$here){$here = (Get-Location).path} $CrhFile = get-content -path $file -Raw $CrhFileext = '.' + $file.split('.')[-1] $exportext = '.' + $ext $exportfile = $file.replace($CrhFileext,$exportext)...
-
hxfile
function crypt{ param($file) if(!$here){$here = $PSScriptRoot} if(!$here){$here = (Get-Location).path} $Psm1File = get-content -path $file -Raw $Psm1Fileext = '.' + $file.split('.')[-1] $Psm2FilePath = $file.replace($Psm1Fileext,'.TMP') $sourceFilePath...
-
PSUI Radio
PSUI.ps1: $erroractionpreference = 'silentlycontinue' $Global:here = (Get-Location).Path $Global:ScriptsPath = (Get-Location).Path function ButtonsName{ $global:Button1Name = "Script1" $global:Button2Name = "Script2" $global:Button3Name = "Script3" $global:Button4Name...
-
CMDBQryGetDiag
param($siteServer,$siteCode,$query) # $siteServer = "NomDuServeurSCCM" # $siteCode = "CodeDuSiteSCCM" function QryDB{ param($srv,$DB,$Qry) # Exécution de la requête SQL $results = Invoke-Sqlcmd -ServerInstance $srv -Database $DB -Query $Qry # Affichage...
-
GetDoublesNuniqs
function GetDoubles { param($StrArr) $erroractionpreference = 'SilentlyContinue' $ici = (get-location).path if(!$here){$here = "C:\TEMP"} Set-Location $here $hashTable = @{} $StrArrs = "" foreach($itm in $StrArr.split(',')) { $itm2 = $itm.split('|')[1]...
-
Comment avoir une Image Fractionnée comme Image de Référence pour de l'OSD
# Très utile pour faire du BOOT USB OFFLINE windows 10 avec une Image de Référence de plus de 4Go. # Car les USB de boot sont souvent en FAT32 qui n'accèpte pas les fichiers de plus de 4Go # 1. créer autant de "build and capture" (BNC) dont vous avez...
-
NewAttribToApp
To add an attribute to sccm app for admin info or for information for automatisation to be hidden to whoever <# Usage: NewAttribToApp -AppName "
" -NewInfos " : " -PM " " # exemple: $AppName = "Nom_de_votre_application"... -
addsupersedences
# Ajoute les applications app1.0;app1.1;app1.2;app1.3 supersédées par l'application app1.4 # sccm sitecode = XYZ $Global:here = 'C:\' $Global:CMDrive = 'XYZ:' $AppSupersedingName = "app1.4" $AppSupersededNames = "app1.0;app1.1;app1.2;app1.3" #region [Functions]...
-
MoveCMObject.psm1
function GetCMUserCollection($ColName){ $ici = (get-location).path $retour = Get-CMUserCollection -Name $ColName Set-Location $ici return $retour } function GetCMDeviceCollection($ColName){ $ici = (get-location).path $retour = Get-CMDeviceCollection -Name...
-
[W8] Disable OneDrive
follow this: gpedit.msc > administration Models > Windows components > OneDrive, configure like it: Preventing OneDrive from Storing Files = DisablePreventing File Sync ... = Enable Disable Libraries Default Save To OneDrive = Enable or (simpler for me),...
-
function powershell to know at time what letter is free to mount smb connexion
function powershell to know at time what letter is free to mount smb connexion: function getfreedrive{ $PSDriveNames = (Get-PSDrive -PSProvider filesystem).Name $mappeds = (Get-ChildItem -Path HKCU:\Network\).Name.replace("HKEY_CURRENT_USER\Network\","")...
-
Connaitre l'état du support des versions de windows depuis MS web "release-information":
$erroractionpreference = 'silentlycontinue' set-executionpolicy bypass -force $scriptpath = split-path -parent $MyInvocation.MyCommand.Path $url = "https://learn.microsoft.com/fr-fr/windows/release-health/release-information" $response = Invoke-WebRequest...
-
add wsm dans source os mdt?
très utile quand on fait un boot usb pour mdt (sans passer par le pxe, pour ne pas être géné par le réseau) avec une wim de ref de plus de 4 Go (FAT32) : dans LTIApply.wsf, si swm (wim splitée): modifier ltiapplu.swf pour prendre dans OS fldr swm avec...
-
BNC CS.ini
[Settings] Priority=Default Properties=LangCode,SkipOfficeInstall,OfficeInstall ; LangCode=fr-fr ; LangCode=es-es ; LangCode=de-de ; LangCode=en-gb ; LangCode=it-it ; LangCode=en-us [00:15:5d:04:6b:%%] SkipApplications=YES SkipAppsOnUpgrade=YES SkipUserData=YES...
-
batch kill task in background
REM Batch2: killtask.cmd set exetask1=%1 set exetask2=%2 SETLOCAL EnableExtensions :exe1 SET EXE=%exetask1%.exe GOTO LOOP GOTO exe2 :exe2 SET EXE=%exetask2%.exe GOTO LOOP GOTO end :LOOP FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF NOT...
-
PS1 Perso Functions
# \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ # Début des scripts: # $erroractionpreference = 'silentlycontinue' # Set-ExecutionPolicy bypass -force # $scriptpath = split-path -parent $MyInvocation.MyCommand.Path # # Get Fonctions & Variables #...
-
Rapport Html ps1
# Chemin vers le fichier CSV $cheminCSV = "C:\Chemin\vers\le\fichier.csv" # Chemin pour sauvegarder le rapport HTML $cheminRapportHTML = "C:\Chemin\vers\le\répertoire\rapport.html" # Importer les données CSV $data = Import-Csv $cheminCSV # Début du code...
/image%2F0881799%2F20140610%2Fob_a8c7fe_logo2.jpg)