Using Powershell to look up the PDC Did you know that you can Use Powershell to lookup your PDC? If you have ever needed to look up your primary domain controller (PDC) this can sometimes be a daunting task especially in a large enterprise environment. Luckily you can open PowerShell and run a single command […]
Category Archives: PowerShell
Backup DNS settings in Windows Server 2012 R2
Backup DNS settings in Windows Server 2012 R2 Backing up your Domain Name Services is quite simple using powershell: Using powershell run: dnscmd ServerName /ZoneExport corp.DC1.local backup\ServerName.local.dns.bkup dnscmd ServerName /ZoneExport _msdcs.corp.DC1.local backup\_msdcs.ServerName.local.dns.bkup Where ServerName is replaced with your server’s hostname that is running DNS. The output should look similar to the screenshot below: The output files should be […]
Powershell scripts won’t run or import because running scripts is disabled on this system.
Powershell scripts won’t run or import because running scripts is disabled In the event that you are unable to run power shell script’s, it’s quite a simple fix actually. The error Powershell scripts won’t run or import because running scripts is disabled is because the execution policy within PowerShell is preventing it from running. From and then […]
Get list of software installed from a remote computer WMI and PowerShell
Get list of software installed from a remote computer WMI and PowerShell Ever wanted to Get list of software installed from a remote computer via WMI and PowerShell Open PowerShell and run the following command: Get-WmiObject -Class “Win32_Product” -ComputerName RemoteHost -Credential localhost\LocalUser | Export-CSV (Join-Path $home “SoftwareList.csv”) Now to understand how this all ties together. Get-WmiObject -Class […]