Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Suivre ce blog Administration + Créer mon blog
MENU

uncrfile

Publié le par damcuvelier

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)...

Lire la suite

hxfile

Publié le par damcuvelier

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...

Lire la suite

PSUI Radio

Publié le par damcuvelier

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...

Lire la suite

addsupersedences

Publié le par damcuvelier

# 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]...

Lire la suite

Findfileinsccmsrcs

Publié le par damcuvelier

# Chemin du fichier à rechercher $cheminFichier = "toto.exe" Set-Location "$siteCode`:" # Recherche du package contenant le fichier spécifié $package = Get-CMPackage | Where-Object { $_.PackageType -eq '0' } | ForEach-Object { $packageID = $_.PackageID...

Lire la suite

GetExeInfos

Publié le par damcuvelier

# Chemin du fichier .exe à analyser $cheminFichier = "C:\chemin\vers\votre\fichier.exe" # Récupération de la version du fichier .exe $version = (Get-Command $cheminFichier).FileVersionInfo.FileVersion # Processus liés $processusLies = Get-Process | Where-Object...

Lire la suite

Get-AppPSCMContentMgmt

Publié le par damcuvelier

$Global:CMDrive = (get-location).Path $Global:here= 'C:\' set-location $here $SiteCode = $CMDrive.split(':')[0] $SiteServer = "" $Namespace = "ROOT/SMS/Site_{0}" -f $SiteCode set-location $CMDrive $AppDPContentInfo = "ObjectType = '{0}'" -f [Int][SMS_DPContentInfo]"Application"...

Lire la suite

Get-DPsApp.ps1

Publié le par damcuvelier

# .\Get-DPsApp.ps1 param($SiteServer,$MP,$SiteCode,[switch]$Grps) #region [Init] $erroractionpreference = 'silentlycontinue' $here = $PSScriptRoot if(!$here){$here = (Get-Location).path} #endregion [Init] #region [Function] function scriptlog{ param($val)...

Lire la suite

GetDPGroupsContent.ps1

Publié le par damcuvelier

# .\GetDPGroupsContent.ps1 -Application param( [Alias("Name")] [Parameter(Mandatory, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()] [String[]]$DistributionPointGroup, [Parameter()] [Switch]$Package, [Parameter()] [Switch]$DriverPackage,...

Lire la suite

<< < 1 2 3 4 5 6 7 8 9 10 20 30 40 > >>