Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Backup Windows Drivers

Posted on March 18, 2020August 17, 2024 By David Kittell
$DriverBackupPath = "$($env:USERNAME)\Downloads\DriverBackup\$($(Get-WmiObject -Class:Win32_ComputerSystem).Manufacturer)\$($(Get-WmiObject -Class:Win32_ComputerSystem).Model)"
mkdir -p $DriverBackupPath -Force
Export-WindowsDriver -Verbose -Destination $DriverBackupPath -Online
Originally Posted on March 18, 2020
Last Updated on August 17, 2024
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell Windows

Post navigation

Previous post
Next post

Related Posts

Fitbit Import

Posted on June 22, 2015

This is a import process to import the steps recorded in MSN Health and Fitness Windows Phone app into Fitbit. Place holder for now as I get it working. References: https://github.com/aarondcoleman/Fitbit.NET https://github.com/cbowns/fitbit-oauth-perl/ https://wiki.fitbit.com/display/API/API+PHP+Client http://fitbit.jcs.org/ https://github.com/heyitspavel/fitbitphp/blob/master/fitbitphp.php http://www.staze.org/retrieving-steps-data-fitbit-api/ All information on this site is shared with the intention to help. Before any…

Read More

PowerShell Get All Environment Variables

Posted on November 6, 2015

If you need to know some of the system variables that are already set you can run this script to get the values Get-Childitem env: gci env: | sort name Once you know what variable you want you can do something like this Write-Host "Computer:`t" $env:COMPUTERNAME Write-Host "Domain:`t" $env:USERDOMAIN All…

Read More

PowerShell – Set DHCP DNS or Set Static DNS

Posted on January 16, 2018February 12, 2019

param( [string]$1, [string]$2, [string]$3 ) function Set-DNS([string]$EnableDHCP,[string]$dns1, [string]$dns2){ $saNetAdapters = Get-NetIPInterface | Where-Object {$_.ConnectionState -eq "Connected"} foreach ($sNetAdapter in $saNetAdapters.ifIndex) { if ($EnableDHCP -eq "eDHCP") { Set-DnsClientServerAddress -InterfaceIndex $sNetAdapter -ResetServerAddresses } else { Set-DnsClientServerAddress -InterfaceIndex $sNetAdapter -ServerAddresses ($dns1, $dns2) } } Clear-DnsClientCache } function Get-NetworkInformation(){ $computer = $env:computername try {…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes