Tuesday, June 25, 2013

Recently, I was in the need to change the description on multiple Active Directory accounts that I had exported from an OU to CSV. They were over 500 so doing it one by one would have been a time consuming task. That's when I decided to do a simple by working script to accomplish this task.

I'm using Powershell but you can other languages such as VBS. I prefer Powershell because it's more robust yet simpler to use and understand and it's the future of Windows Scripting.

Here's the script:

# Change-Description-To-Users.ps1                                                                 #
# Created by tips4teks.blogspot.com                                                                #
# This script changes the description of AD accounts to whatever is specified # 

Import-module ActiveDirectory
#Declare the path to the CSV file where you have the accounts by Distinguished Name. 
#The first row of the column should be named "DistinguishedName" without quotes.

#Declare the new description that will be applied to all the accounts in the CSV file.
$Description='Account Disabled by tips4teks.blogspot.com'

#Read the CSV file and change the description to each user object based on the parameters specified.
import-csv -path $CSV | foreach-object { Set-ADUser -identity $_.DistinguishedName -Description $Description}

Thursday, January 10, 2013

Deleting Domino Policies from Local Lotus Notes Client

Some enterprises lock down Lotus Notes settings via Domino Policies and occasionally, while troubleshooting, you may find out that certain settings are grayed out. If you don't have Domino Administrator rights to edit the policies, it may become problematic and you may be forced to remove the policies from the local machine.

How to remove Domino Policies from a Lotus Notes client.
It is important to know that the policies on a local Lotus Notes Client installation are saved on the names.nsf database so if you happened to recreate the names.nsf you most likely removed the policies with it.

If you want to remove the policies manually:

  • Open the main address book on the machine that you want to remove the policy from. Normally this is names.nsf.
  • While holding the keys CTRL + Shift, click on the "Menu View - Go To..." Note: Holding CTRL + Shift will show you hidden views.

  • Scroll down and choose the view $Policies and click OK.

  • Select the policies you may want to remove (In my case, I deleted them all) and click on "Delete Person" or simply the key "Delete" on your keyboard. You may get a prompt after that which you can click Yes.

After that, your locked down settings will be open until the Notes client gets the policy updates from the Domino Server.
Years ago, one of my users got the error: "Notes error: Special database object cannot be located" when trying to archive locally from her Lotus Notes. After I tried refreshing design template, views, emptying the trash with no success.

According to my old personal troubleshooting archive, I had read an article in the IBM forum, (the link is broken now) that said:
"In this case, the issue occurred when the Advance archiving setting "Log all archiving activity into the log database" was selected and the archive log template, ARCHLG50.NTF, was either corrupted or missing. The issue was resolved by unchecking the option, "Log all archiving activity into the log database" and by adding or replacing the ARCHLG50.NTF file on the workstation."

After reading this, it made a lot of sense to me. However, the Lotus Notes Archive log template was on my users machine and I needed to keep a log in the machine so disabling the archiving activity on the machine wouldn't be a solution. Thankfully, I found out the solution shortly! The Archive Log NSF file was corrupted and I just needed to recreate it.

How to recreate the archive log DB.

  • Open the advanced archive settings. (Open the Mail - Go to the "Actions" menu - Archive - Settings - Advanced.)

  • Change the name of the archive database to something else and save the settings. Ex. archive\l_NewDBName
  • Archive your mail database again. (Click on the Actions Menu - Archive - Archive Now)
Some companies lockdown those settings via Domino Policies and the options are grayed out. However, if you're not a Domino Admin who can edit the policies, you may need to remove the policies from the local client in order to resolve this issue. Take a look at my article on how to remove Domino Policies from a local  Lotus Notes client.

Tuesday, December 25, 2012

iTunes Store doesn't load on Windows XP or Windows 7

Some time ago, one of the users I support had an issue with the iTunes store. It wouldn't load at all and she would get a white screen and a spinning wheel trying to load the store. After having uninstalled and reinstalled iTunes with no luck, the IT muse enlightened me and I thought of resetting the Winsocks on Windows and Bingo! I got the issue resolved.

How to do a winsock reset
  • Open command prompt in elevated mode. (On Windows 7 and Above, click on the start menu type in CMD, right click on it and click on Run as administrator. On XP, click on Start - Run and type in CMD and hit OK ).

  • On the command prompt, type netsh winsock reset and hit enter.

After that restart the machine and try iTunes once again.

Thursday, December 20, 2012

This error normally occurs launching Citrix applications from Google Chrome for Mac after reinstalling the new Citrix Receiver.

The fix is very simple!
  1. Just navigate to the OS Volume (in the image below is Macintosh HD) then /Library/Internet Plug-Ins/
  2. Delete the plugin "CitrixICAClientPlugin.plugin".
  3. Relaunch the app from Chrome and you should be fine!

Friday, December 14, 2012

Have you ever wanted to know what medium (web browser, email client or client on mobile device) was used to send an email? If it was sent through a mobile device, what network was it sent from? Where was the email sent from geographically speaking? Well, nowadays, you don't need to be a hacker or guru in order to know most of this information. You just need to use some tools that can be found on your own computer or online.

The first thing you need to know is that an email consist of three different parts: The envelope, the header and the body message. In this article, we will concentrate in the most important of the email, the header which will allow us to get an answer to our questions. The header of a message contains the routing information of a message, time stamps and some others such as TO and FROM headers.

Steps to analyze an email header

  1. Get the email header of the email you want to verify. Google has clear instructions on how to do so.
  2. Copy the whole header of the message and paste into a header analyzer tool and analyze it. It will look like this:
  3. Use an IP Tracker tool in order to trace the location of more and less the email was sent from. In the example above, the IP was Be aware that this location is not 100% accurate. If the device was sent via mobile device, the message transfer agent at the cellphone provider will stamp the IP address or DNS name of the server that received the email. Normally the DNS name will have the provider name and if it's the IP you can do an nslookup against it.
Recently, with all the updates that Citrix has been releasing for their Citrix Receiver, there has been an increased number of errors. One of the most common ones is: Citrix Receiver Configuration Manager: No Value could be found for (AllowHotkey) that satisfies all lockdown requirements. The lockdown requirements in force may be conflicting. (See image below).

This error occurs when you launch a Citrix application from the web interface and your settings are not allowing the connection from the client version you have.
Don't even try to uninstall and reinstall the Citrix Receiver as it may not fix the issue. As the error says, there's a setting locking down your Receiver and the best way to solve this issue is by disabling the lockdown.

On Windows XP/Vista/7 32 Bits

  1. Open the Registry Editor (click on the Start Menu - Run - type in regedit.exe and hit OK).
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions.
  3. Change the DWORD value for EnableLockdown from 1 to 0.
  4. Close Registry Editor and try to launch the application again.

On Windows XP/Vista/7 64 Bits
  1. Open the Registry Editor (click on the Start Menu - Run - type in regedit.exe and hit OK).
  2. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions
  3. Change the DWORD value for EnableLockdown from 1 to 0.
  4. Close Registry Editor and try to launch the application again.

Content belongs to Tips4teks.blogspot.com. All Rights Reserved. Powered by Blogger.