Powershell CMD for Hotfix to entire OU

I have a hotfix to apply to all computers.
I want to be able to push out to each OU respectively.

I have a working script:
@echo off
IF EXIST c:\windows\H0tf1x.txt goto end
wusa.exe \\srv-install\Install\Admin\Microsoft\HotfixTimeIssue\451549_intl_x64_zip\Windows6.1-KB2738974-v3-x64.msu /quiet /norestart
echo MS Hotfix installed > %SystemDrive%\windows\H0tf1x.txt
:end

Is there a way to use powershell or use cmd to execute the script, or just the wusa.exe cmd?
drmpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

loftywormCommented:
When you are talking OU, use a GPO
Let me see if I can get something specific...
0
loftywormCommented:
You can do it either by scheduled task at any time or at startup/shutdown;
0
loftywormCommented:
Sorry, here is a pic
scriptgpo.jpg
0
drmpAuthor Commented:
The hotfix is actually going to fix our GPO scheduled task issue.
The issue is the time/date is off/ahead 1 day or 1 hour on the clients....

So thats why I'm looking for a way to execute this manually, to a group of computers.
0
loftywormCommented:
Ahh, that explains much.
So, do you want to find the OU members, and then update from a central location, or are you asking something different?
the powershell command I think you are looking for is Get-ADOrganizationalUnit
I am not to familiar with it, but I the syntax is simply worked out.  I validated it is on a 2012r2 box and working for me
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.