Month: May 2013

Group Policy Object – Disable the Windows 7 Professional Screen Resolution Settings

You may use the following Group Policy Object (GPO) settings to lock the Screen Resolution settings in a Windows Server 2003 R2 Active Directory (AD) domain.

To configure the Screen Resolution settings open the Group Policy Management Console (GPMC) and create a Group Policy. This may be done by right clicking the Group Policy Objects organizational unit (OU) and selecting New. Additionally, you may right click the OU that contains the desktop(s) of your user(s) and selecting Create a GPO in this domain, and Link it here…. In the new New GPO dialog box name the GPO Lock Screen Resolution. Right click the newly created GPO and select Edit…from the context menu. Once the GPO opens navigate to the following setting.

User Configuration > Policies > Administrative Templates > Control Panel/Display

Enable the setting to “Disable the Display Control Panel

Enjoy!


Barracuda Networks – Web Filter 310 Reports

You may use the following method to create a web statistics report (i.e. users by request) for the previous calendar week (i.e. last week) of all Microsoft Active Directory (AD) users in your domain. After logging into the Barracuda Networks Web Filter 310 perform the following:

1. Navigate to BASIC > Reports

2. Under Filtering Options > Time Frame: select Last Week

3. Under Filtering Options > Limit Report to: select LDAP Group

4. To the left of the Lookup icon type the name of the group and then click the Lookup icon (NOTE: This assumes there is an Active Directory group which contains all domain users)

5. Under the Groups: dialog box that opens click the Add button next to the Active Directory group

6. Under Advanced Options > Formatting > Output Format: select PDF

7. Under Web Activity check the box for Users by Request

8. Under Schedule Report > Report Group Name: specify a name for the report

9.  Under Schedule Report > Emails specify the email address that will receive the report

10. The Schedule Report > Frequency: option will allow you to send the report Once, Hourly, Daily, Weekly or Monthly

11. Click Apply under the Schedule Report section

12. The webpage will refresh and you will see a green banner at the top that says Report Sent.

Enjoy!


Microsoft Windows PowerShell – Delete Files Older Than X Days

You may use the following Microsoft Windows PowerShell script to delete files in a directory that are X days old (I found the script here: http://elderec.org/2012/02/scripting-delete-files-and-folders-older-than-x-days/).

===START===

# set folder path
$dump_path = “C:\shares\dump”

# set min age of files
$max_days = “-7”

# get the current date
$curr_date = Get-Date

# determine how far back we go based on current date
$del_date = $curr_date.AddDays($max_days)

# delete the files
Get-ChildItem $dump_path -Recurse | Where-Object { $_.LastWriteTime -lt $del_date } | Remove-Item

===END===

In order to customize the script substitute the variables (i.e. $dump_path = “C:\shares\dump”) for your environment. As always, be sure to test scripts in a lab environment that mirrors your production environment as closely as possible.

Enjoy!


Microsoft Windows PowerShell – Set-ExecutionPolicy Cmdlet

You may use the following command(s) to change the execution policy for Windows PowerShell.

Set-ExecutionPolicy Restricted

Set-ExecutionPolicy AllSigned

Set-ExecutionPolicy RemoteSigned

Set-ExecutionPolicy Unrestricted

Enjoy!


Microsoft Outlook 2010 – .JPG Attachments Will Not Open

Have you ever tried to open the first .JPG attached file in a Microsoft Outlook 2010 email and received the “Cannot create file: photo 1.JPG. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder“?

This error may be caused by the Microsoft Outlook 2010 Secure Temporary File folder being full.

You may find the location of the folder by viewing the following registry key: HKEY_CURRENT_– USER\Software\Microsoft\Office\14.0\Outlook\Security (C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\W1BJBRT8\)

After finding the location of the folder from the registry key you may delete the contents of the folder.

Enjoy!


Microsoft Windows Server 2012 Core – GUI Installation

If you install Windows Server 2012 with a core installation (without the GUI) and later find that you would like to install the GUI you may do so using the following steps.

1. Use the Windows PowerShell command Get-WindowsImage -ImagePath <path to wim>\install.wim in order to determine the index number for a server with a GUI image. If the path to the install.wim file is D:\sources\install.wim then the command would be Get-WindowsImage -ImagePath D:\sources\install.wim.

2. Use the Windows PowerShell command Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –Restart –Source wim:<path to wim>\install.wim:<Index # from step 1>. For example, if you choose wim #4 (Windows Server 2012 SERVERDATACENTER) then the command would be Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –Restart –Source wim:D:\sources\install.wim:4.

NOTE: This entry assumes that the Windows Server 2012 installation media is in the D: drive.

Enjoy!


Hardware – Intel Processor Diagnostic Tool

If you are looking for a solution to run diagnostics on your Intel processors then I recommend the Intel Processor Diagnostic Tool. You may use the link below for information regarding this diagnostic tool.

http://www.intel.com/support/processors/sb/CS-031726.htm

Enjoy!