powershell script

Home/Tag:powershell script

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

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

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

PowerShell: How to digitally sign PowerShell scripts

If your environment has high PowerShell security, so only digitally signed scripts can run on the systems? The easy way is to digitally sign your PowerShell scripts, so they are allowed to execute on the systems. This guide does not include instructions, on how to create a certificate or how to distribute them to client computers.  So [...]