Skip to main content

Back From Asia

I’m back from a multi week training trip to Asia and Micronesia.  I spent about 3 weeks in both Yokosuka, Japan, and Guam, USA delivering training on Windows 7 and PowerShell.  What I found on my trip was the alarming amount of resistance to automation.  Let me just go on the record of pointing out the amount of automation already built into the Windows Operating systems.  Your client operating systems most likely have some type of scheduled task to defrag the drives.  Look at your patch management or malware updates.  All of this is done through automation.  So where did this resistance come from?

The client worked on a network spanning Europe and Asia.  With over 10,000 seats, they needed help.  When I asked about the use of PowerShell, they were very interested to know more, but were currently not allowed to use it.  The managers wanted all processes to be verified visually.  The last time I checked, not to many people manually access each and ever client to see if this weeks 20+ updates have been applied.  Just to give you an idea of how long that would take, lets say it takes 2 minutes remote in, check the installed patches, and then log off.  That would require about 330 hours of none stop work to verify those updates.  In other words, you would not be able to finish all those checks before the next set of updates arrived.  More then likely, they are using an automated processes.

With PowerShell, you can tell PowerShell to read the feedback.  It could be what is acceptable in a string or integer value.  It could be a return code.  Maybe the remaining storage capacity or current network utilization.  What ever value your people are looking at, you can script for it.  Think about it.  If your people had to run a process manually 10,000 times and then check a value (or more) what is the probability of error?  I would say 100%.  With automation, you can be sure that the job will both get done and be reported properly.

A key to this is learning PowerShell properly.  I get a lot of requests for help from people who have been struggling for months to try to learn a concept in PowerShell,  Most likely after a week of PowerShell training, you will be able to better understand how to approach your task and how to code for it properly.  Please feel free to contact me and I will let you know when my next publically available PowerShell class is. 

Comments

Popular posts from this blog

How to list all the AD LDS instances on a server

AD LDS allows you to provide directory services to applications that are free of the confines of Active Directory.  To list all the AD LDS instances on a server, follow this procedure: Log into the server in question Open a command prompt. Type dsdbutil and press Enter Type List Instances and press Enter . You will receive a list of the instance name, both the LDAP and SSL port numbers, the location of the database, and its status.

How to run GPResult on a remote client with PowerShell

In the past, to run the GPResult command, you would need to either physically visit this client, have the user do it, or use and RDP connection.  In all cases, this will disrupt the user.  First, you need PowerShell remoting enabled on the target machine.  You can do this via Group Policy . Open PowerShell and type this command. Invoke-Command –ScriptBlock {GPResult /r} –ComputerName <ComputerName> Replace <ComputerName> with the name of the target.  Remember, the target needs to be online and accessible to you.

Error icon when creating a GPO Preference drive map

You may not have an error at all.  Take a look at the drive mapping below. The red triangle is what threw us off.  It is not an error.  It is simply a color representation of the Replace option of the Action field in the properties of the drive mappings. Create action This give you a green triangle. The Create action creates a new mapped drive for users. Replace Action The Replace action gives you a red triangle.  This action will delete and recreate mapped drives for users. The net result of the Replace action is to overwrite all existing settings associated with the mapped drive. If the drive mapping does not exist, then the Replace action creates a new drive mapping. Update Action The Update action will have a yellow triangle. Update will modify settings of an existing mapped drive for users. This action differs from Replace in that it only updates settings defined within the preference item. All other settings remain as configured on the mapped drive. If the