September 25, 2009 4:57 PM
Posted by: Colin Smith
AD,
AD Administration,
AD Managment,
Powershell,
ScriptingNow that we have all of the users information into a csv file it is time to start sorting through all of that data and determining what objects need to be disabled and moved to the disabled OU that I have set up for all disabled accounts to go and await deletion. Lets do that with the...
September 24, 2009 8:30 PM
Posted by: Colin Smith
AD,
AD Administration,
Powershell,
ScriptingNow that we have the main part of the script setup it is time to look at the first function that we call. This is the Get_users function. Now this function gets a listing of all the DC's and does a get-qaduser on all of them looking at the lastlogon property to determine what DC has the latest...
August 18, 2009 6:00 PM
Posted by: Colin Smith
Administration,
Automation,
Powershell,
Powershell Tips,
ScriptingThe Powershell Profile is a script that druns anytime you launch Powershell. This is handy so you can ste up variables, add snapins, or just do what ever you like or think is cool when launching Powershell. I was just editing mine, which you can do by:
notepad $profile
This will pull up your...
August 18, 2009 5:47 PM
Posted by: Colin Smith
One Liners,
Powershell,
Powershell Tips,
Scripting,
System AdministrationRecently I needed to find out if I had any files of a certain extension in a particular folder and if so how many. With Powershell this is no problem at all.
Say I was looking for a count of .ps1 files in the directory.
July 24, 2009 3:47 PM
Posted by: Colin Smith
Database Administration,
DBA,
Education,
Monitoring,
Perl,
ScriptingMy team is going to be developing a new application that will handle all of our monitoring. Currently that includes the monitoring of Sybase Servers, Oracle Instances, and MSSQL Servers. We will also be adding another Database Type that will house all of the Monitoring data. We will be using a...
June 30, 2009 8:13 PM
Posted by: Colin Smith
Administration,
Powershell,
ScriptingIf you would like your scripts to interact with the user and have a nice popup box for a user to select a folder here is a link to an article that will help you out. I think this is pretty great.
http://powershell.com/cs/blogs/tips/archive/2009/04/01/select-folder-dialog.aspx
June 26, 2009 3:54 PM
Posted by: Colin Smith
Administration,
Powershell,
Scripting,
Server AdministrationI was roaming around the web and reading some articles and I ran across the following blog post:
http://bassplayerdoc.blogspot.com/2008/10/another-one-liner-in-windows-powershell.html
I think this is a great reason why all administrators that deal with Microsoft products should learn...
May 29, 2009 9:58 PM
Posted by: Colin Smith
Exchange,
Exchange Management,
Exchange Scripting,
Powershell,
ScriptingI was just asked to take a look at writing a script for our new Exchange environment. Now I do not have a lot of experiance scripting for Exchange but I love a Powershell challenge. The problem was that all of our distribution groups had been set up with one option incorrect. I was asked if I could...
May 29, 2009 2:56 PM
Posted by: Colin Smith
Editors,
Managment,
Scripting,
Systems Managment,
ToolsWe all like notepad since it is quick easy and very lightweight. But what if it just does not do all that you want? Well I have used programs like Ultra Edit and I love it. The downside is that it is not as lightweight, you have to buy it, and the intallation is a pain. Great App and it does just...