Powershell Script for Installed driver details to export
param( [string]$outputFile ) $dateTimeString = $(get-date -UFormat '%Y-%m-%d_%T.%S').Replace(':','') if (! ($outputFile)) { $outputFile =...
View Articleevent viewer log export by event id
Set-Variable -Name EventAgeDays -Value 1 #we will take events for the latest 7 days Set-Variable -Name CompArr -Value @("$env:COMPUTERNAME") # replace it with your server names Set-Variable -Name...
View ArticleOS Installed Date > 10 Days
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join...
View ArticlePNP Drivers import using Powershell
$path = $PSScriptRoot $driversCollection = (Get-ChildItem -Path $path -Filter “*.inf” ` -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Fullname) foreach($driver In...
View ArticleGet Add remove program entries from local or remote machines using Powershell...
Get Add remove program entries from local or remote machines using Powershell in a CSV format- function Get-Uninstall { param([parameter(Mandatory = $true)]$computer) # paths: x86 and x64 registry keys...
View ArticleMY PS
$RESGUIDPATH = ‘HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{6C3683DE-A9F3-4BFA-BDF4-337860D52039}’ If((Test-Path $RESGUIDPATH) -eq $true){ $RESGUIDINFO = (Get-ItemProperty...
View ArticleIntune Device Enrollment
md c:\\HWID Set-Location c:\\HWID Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted Install-Script -Name Get-WindowsAutoPilotInfo Get-WindowsAutoPilotInfo.ps1 -OutputFile...
View ArticleIntune Configuration Backup
https://github.com/ThomasKur/IntuneDocumentation The post Intune Configuration Backup appeared first on SCCM Cuurent Branch Blog.
View Article