Monday, September 19, 2016
Thursday, August 11, 2016
Powershell - Create List of Installed Software
Scenario
You want to find out what software is installed on the computers in your organization. You can use PowerShell to do this.First open PowerShell ISE and paste the following code in the script portion.
$list = Import-Csv "C:\TEMP\computers.csv"
foreach ($entry in $list)
{
try
{
$machinename = $entry.pcname
$SrvPath = "\\server\share"
$Date = Get-Date -UFormat %m-%d-%y
$FileName = "$machinename" + "_" + "$Date" + ".csv"
Get-WmiObject Win32_Product -ComputerName $machinename | Select-Object PSComputerName,Name,Vendor,Version | Export-Csv C:\$FileName -NoTypeInformation
}
catch [Exception]
{
}
}
foreach ($entry in $list)
{
try
{
$machinename = $entry.pcname
$SrvPath = "\\server\share"
$Date = Get-Date -UFormat %m-%d-%y
$FileName = "$machinename" + "_" + "$Date" + ".csv"
Get-WmiObject Win32_Product -ComputerName $machinename | Select-Object PSComputerName,Name,Vendor,Version | Export-Csv C:\$FileName -NoTypeInformation
}
catch [Exception]
{
}
}
Friday, June 3, 2016
Outlook Troubleshooting - Enable Logging
Scenario
There may be times when you are troubleshooting Outlook issues, but you would like to have more information about what Outlook is doing in the background. This is often the case when something happens in Outlook that isn’t right, but there aren’t any popup error messages.Monday, May 23, 2016
Add GImagex to Your WinPE Environment
Scenario
You have a WinPE boot drive with imagex on it, but you want to add GImageX to your WinPE environment so that you have a GUI front end for your WinPE boot drive. Mostly likely because you are tired of entering the imagex commands manually.If you want to know how to create the WinPE USB drive, please view this article.
Create Basic WinPE USB Drive - Windows 10
Scenario
You want to create a basic (no frills) bootable drive with WinPE on it. In this case we will be using the Windows 10 ADK tools.What you will need:
- Windows 10 ADK - https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx
- USB Drive
- DISM GUI (Optional) - https://dismgui.codeplex.com/
Wednesday, May 18, 2016
Expand Values in SCCM Query Builder Values Box
Scenario
You are building or editing a query in SCCM 2012 R2. When you go to edit your query statement, you go to set your criterion properties and select a value.Friday, May 13, 2016
Step by Step Setup of MDT 2013 Update 2 Server
SCENARIO
You want a quick walk through on how to setup MDT 2013 Update 2 so that you can get started using it in your environment.
WHAT YOU WILL NEED
- A server OS - Server 2008 R2 or higher. We will be using Server 2012 R2 in this scenario.
- Windows Deployment Services role installed on our server.
- Download MDT 2013 Update 2. You can find it here.
- Download Windows ADK for Windows 10. You can find that here.
- Client OS (Win7, Win8, Win10) - whatever you plan on deploying.
- Drivers for the machines you are deploying to.
Driver Packs
Manufactures make driver packs for their various models. Use these!!!
HP WinPE Drivers - http://ftp.hp.com/pub/caps-softpaq/cmit/HP_WinPE_DriverPack.html
Lenovo Drivers - https://support.lenovo.com/cy/en/documents/ht074984
Tuesday, May 10, 2016
Break shared service into it's own process
SCENARIO: You are troubleshooting an issue and find that the problem is related to service that is shared. For example, say you identify a specific svchost process that is causing high CPU and you think you have identified one of the services running in that svchost as the culprit and you want to isolate it so that you can get a dump of that process. Here is a way to do that.
Friday, May 6, 2016
PowerShell Performance Diagnostics Utility
SCENARIO: You want to be able to create, start, stop, and delete Performance Monitor data collector sets and collect logs from your computer using a menu. You can do all of these things manually, but this script will present you with a menu for performing these tasks.
NOTE: This will work in Windows 10. If you are running on an older version of PowerShell, you will need to change Get-CimInstance cmdlet along with the Get-GPResultantSetOfPolicy cmdlet.
UPDATE: 11-06-2017 - I just pasted a newer version of this script below.
Click Here to Download Script: Data Collection Utility
Folder Structure:
Powershell Script: Copy files from multiple source directories
While you can create a package or application that copies config files out to
your clients after an install, there may be times when it's easier to just use
a PowerShell script to copy configuration files to your client machines.
This was true in our case where we had to copy files from different source
directories depending on the name of the computer. In our case, we had
to copy a different configuration file to C:\Program Files (x86)\application\
depending on which site that computer was at. Our computers have a four
digit site identifier at the beginning so we leveraged this in order to do the
file copy.
You can modify the script to accommodate your computer name scheme.
Force Mozilla Firefox to "Always Activate" Java
Scenario
You have installed the most recent version of Java, but when you check the Add-on Manager in Mozilla Firefox, you see that the Java Plugin defaults to "Ask to Activate". Typically you should probably leave it at "Ask to Activate" for security reasons, but if you want it to default to "Always Activate" you can do this either per user or per machine.Wednesday, April 6, 2016
Create Perfmon on Remote Machines
Scenario: You want to start perfmon on several remote machines. You have a list of machines, but you don't want to remotely create and start those perfmon data collector sets.
Here is a PowerShell script that you can use to start up perfmon data collector sets on a remote machine. It pulls the list of computers from a .csv file called "computers.csv". Your .csv should looks something like this:
Subscribe to:
Posts (Atom)