Avatar of sunhux
sunhux
 asked on

PowerShell command from AD server to get last boot-up (or uptime) & MS patches applied

From AD server, I wud like to issue command (can be Powershell or
Windows batch script) to the various Win 2008 R2 servers to obtain the

a) last boot-up time (or uptime)
b) MS patches applied the last 1 week
c) MS patches applied the last 1 month

Ideally the command has parameters to take in the username &
password of my adid (domain id)
PowershellScripting LanguagesMicrosoft Legacy OS

Avatar of undefined
Last Comment
sunhux

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
xaichen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
sunhux

ASKER
Was expecting the command to take in a server's name,
the domain login id & password.  Could you enhance
that command?
SOLUTION
xaichen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
sunhux

ASKER
> don't think there is any way to output the password of the user
I don't need the above but I need to run the script from the AD
server & it will prompt for my domain id+password to login to
the server I'm trying to get the information.

I don't want to login individually to each server (as there are
hundreds of them), I want to gather the data just by login to
the AD server to run the script & the script pulls the data from
the hundreds of servers in the domain.
sunhux

ASKER
Partial & not that accurate solutions
Your help has saved me hundreds of hours of internet surfing.
fblack61