Homepage 2017-10-31T20:08:01+00:00

PowerShell: Map Network drive as different user

This is a simple PowerShell script that will make it easy to map a network drive as a different user. Before running the script below in PowerShell you need to change the following: If needed change -Name "Z" to another drive letter Replace \\REMOTESERVER\SHARE with the share path you want mapped Replace DOMAINNAME with your domain name After you correctly change the script as described, you should be good to go. Run the script and it will ask you to type in the username of the different user you want to use. $Username = Read-Host -Prompt 'Type Username' #$Password = Read-Host [...]

PowerShell: Export drivers from Windows

This is a very simple PowerShell script, but I found it very handy. I normally use this export/backup method when i need to make sure drivers are the same after reinstallation, or when i need to backup OEM machine before testing and staging them. Hopefully this is something you will find useful to.  If you ever need to restore/load these drivers into Windows again, you can use this method: http://www.vislo.dk/driver-backup-windows-10/ This is in Danish, but Google Translate should make it very easy to read :). Export-WindowsDriver -Destination "c:\drivers\$((Get-WmiObject -Class win32_computersystem).Model)" -Online

PowerShell: Find Bitlocker Recovery keys in AD

This is a simple PowerShell script, that will help you find Bitlocker recovery keys from AD. The PowerShell script below is build to find bitlocker recovery keys from mutiple machine in a list. Simply create a txt file with one PC name on each line and save it. Change the path(Line 2) in the script to your desired location.  The script is now ready to find bitlocker recovery keys # List of computers to check in a TXT file $computers = get-content C:\temp\pc-bitlocker-check.txt # Check each line in $computers variable and assign them $computerName foreach($computerName in $computers) { # [...]

Get HP iLO firmware version from all servers

Whether you are planning to upgrade your HP iLO's firmware or just want a list of the current iLO firmware. HP created a PowerShell cmdlet, that can help you retrieve this information. But I did not find this HP iLO cmdlet very useful when I wanted to retrieve the firmware information from a long list of servers. First problem. If you have a list of servers you want to check, you will just get one long list of firmware information directly in Powershell or exported to a text file. But the problem is that the hostname was not written. So there was no [...]

By | May 2nd, 2018|Categories: All Posts, Server|Tags: , , , , |0 Comments

Recent Comments