icacls – changing permissions on files and folders.

June 23, 2010

I was asked about changing permissions from the root of a drive and all sub-folders.  My immediate reaction was to use the Microsoft tool that replaced cacls – icacls.  Apparently the person that came up with the new name  ”must” have just received their new iPad. <g>

I remembered an Technet article from a friend Gregg Shields – http://technet.microsoft.com/en-us/magazine/2009.07.geekofalltrades.aspx

Read the rest of this entry »


Start – Stop Service with Powershell and Ping

June 7, 2010

Ran into a request for an OCS Mediation Server that is contacting an OCS Front End Pool over a WAN link. 

“We have a remote OCS Mediation server that contacts the OCS Front End Pool over a WAN link. I need that Mediation server to ping those front end servers periodically to verify that the WAN link is up. If the ping on two of the servers fails,  I need it to stop the OCS Mediation service on the mediation server until it can successfully ping the two front end server across the WAN again at which point it would then bring the Service on the Mediation server back up.” 

  

With a LOT of assitance from Jeffery Hicks and Claus Thude Nielsen a simple script was created. 

Read the rest of this entry »


Automate the Windows 2003 Defragmenter Without Paying Extra…

June 7, 2010

Taken from the Windows IT Pro site  –  http://www.windowsitpro.com/article/windows-shell-bat-and-cmd/automate-the-windows-2003-defragmenter-without-paying-extra.aspx

Excellent Article Daniel..!

Defragmentation is a great way to keep workstations and servers running

at their best performance. Windows Server 2003 comes with a

defragmenter: dfrgntfs.exe. However, you can’t automate this

defragmenter unless you purchase a program such as Diskeeper. I didn’t

have money for such a program in my budget, so I created and scheduled a

batch file named Defrag.bat.

As Listing 1 shows,

Listing 1: Defrag.bat

@Echo Off

defrag.exe c: -f

defrag.exe e: -f

defrag.exe f: -f

  Read the rest of this entry »


Whereis with PowerShell

March 5, 2010

The topic of  “Search function in Vista” was brought up on the Minasi Forum.  (NOTE! if you are not a member you should be)  The DIR /S command was brought up as a replacement option to use since the old method that existed in XP is no longer available.  I remembered reading this article in WIN IT PRO and thought that it may be very useful for what the Admins are trying to accomplish.

You can download the WIN IT Pro Article here Find Files on Local Drives with Whereis and the PS1 code snippet here WhereisPS1 .

Find Files on Local Drives with Whereis.ps1

From the January 2010 Edition
of Windows IT Pro

December 15, 2009
Bill Stewart
Feature
InstantDoc #103096

I often find it useful to search for files from a command line. In the past, I’ve typically used Cmd.exe’s dir command with the /b and /s parameters to search for files; combining these parameters provides a list containing the full paths and filenames of matching files. However, dir doesn’t have a simple syntax for searching multiple locations. For example, to search drives C and D for all files ending in .doc, you would use this command:

dir /b /s c:\*.doc d:\*.doc

The syntax gets even more complex when searching for multiple wildcard patterns (e.g., all .doc, .xls, and .ppt files) in multiple locations because you have to type each location and each wildcard pattern separately.

Windows PowerShell’s Get-ChildItem cmdlet makes this task simpler. For example, to search drives C and D for all .doc, .xls, and .ppt files, you can use this command:

get-childitem c:\*,d:\*
-include *.doc,*.xls,*.ppt -recurse

Get-ChildItem’s first parameter is a list of paths to search, and the -Include parameter specifies a list of wildcard patterns that qualify the paths. The -Recurse parameter is analogous to the dir command’s /s parameter.

Introducing Whereis.ps1

Read the rest of this entry »



RDP Tray Tool App

January 23, 2010

A good friend of mine, Claus Nielsen  http://www.xipher.dk/WordPress/ created this great little FREE app that I use daily!

Follow the steps and you will have a great little Tray App to use with RDP via a regular RDP session or a Console Logon.

Read the rest of this entry »


The current time on this computer…

January 23, 2010

After using Sinmantec Ghost to capture an image of a new IBM T400 Build, I “was” successful in my attempt to join the laptop to the domain.

However!

When I re-booted the laptop and attempted to log into the domain, using the same Admin account that joined it to the domain, I received this error message.

“The current time on this computer and the current time on the network are different. For more information about Date/Time Properties, see Help and Support. To log on, contact your system administrator.”
Read the rest of this entry »


Modify DNS Zone Transfer settings

January 23, 2010

We have a public DNS 2000 Server that is a Primary DNS stand alone server, which is being replaced in the near future with a 2008 Server.

It is the primary out of three others.

When I was looking at the settings, prior to bringing the 2008 server online to act as a temp secondary to replicate, I noticed that there were incorrect IPs listed in the Zone Transfers tab area.

There are well over 100 FWD lookup zones listed, so the thought of going into each one of them, one at a time, made me want to go back to dealing with the Sinmantec Ghost issues we were still fighting.
Read the rest of this entry »


WSUS 3.0 Read Me Document PDF

January 7, 2010

This document  WSUS3.0 was created in 2006 by my friend Aidan Finn.  http://www.aidanfinn.com/ I find it has been a very valuable resource for setting up and explaining WSUS to clients.  It is a great reference tool and a must read for WSUS.

Thank you Aidan..!


Some 2008 R2 Hyper-V Blog Posts

December 2, 2009

From my friend Aidan Finn.  I highly recomend reading his Blog and or post.

I’ve been doing a bit of blogging about the new stuff from MS. It might answer a question before you have to post.

Quick Storage Migration: http://www.aidanfinn.com/?p=10138

Adding a node to a VMM managed Hyper-V cluster: http://www.aidanfinn.com/?p=10118

How Live Migration works: http://www.aidanfinn.com/?p=10109

Network requirements for Live Migration: http://www.aidanfinn.com/?p=10088

2008 R2 Hyper-V hot-add storage: http://www.aidanfinn.com/?p=10084

Extending a cluster shared volume: http://www.aidanfinn.com/?p=10072

W2008 Hyper-V Network enhancements: http://www.aidanfinn.com/?p=10053

Using VMM to convert a VHD type: http://www.aidanfinn.com/?p=10040


Aidan Finn
MCSE, MVP (Virtual Machine: Systems Administration)

IT Blog: http://www.aidanfinn.com
My Photography: http://www.aidanfinnphoto.com/
Windows User Group – Ireland: http://ws-ugi.spaces.live.com
Twitter: http://twitter.com/joe_elway