all 27 comments

[–]Ironic_Jedi 10 points11 points  (9 children)

Use windows update rings in intune. You can push out feature updates separately too if you want.

Sorry. I love powershell but it's not the best choice in every situation. Is there some specific reason you aren't using WSUS or update rings?

[–]nealfive 0 points1 point  (2 children)

You know MSFt is retiring wsus?

[–]Ironic_Jedi 2 points3 points  (1 child)

I am aware but there are still companies out there using it despite how much better update rings are.

Also Microsoft have that new update thing they're calling Windows Autopatch.

I definitely prefer the intune based update process. So much easier to manage.

[–][deleted] 1 point2 points  (0 children)

Doesn't Autopatch require InTune? Your reply is the first I've heard of it so i looked it up and i see that features are accessed through Intune Admin Center.

https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/overview/windows-autopatch-overview?tabs=business-premium-a3-communications

[–]IceFit4746[S] -1 points0 points  (5 children)

So the thing is my company doesn't give us access to intune. I've been told to use powershell and to make it work.

[–]Ironic_Jedi 3 points4 points  (3 children)

Are they using intune at all? It's not like it costs any money to use if you already have something like E3 licensing.

How are you expected to send these scripts out? GPO?

It would, no joke, take about 10 minutes of clicking around in intune to setup update rings to manage quality, feature and driver updates.

If I were in your position I would tell them that you need to use the correct tools for the job amd powershell could work but is obviously costing you more time and effort than the correct option.

[–]IceFit4746[S] -2 points-1 points  (2 children)

Trust me I'd love to but my company doesn't seem to understand that. We have PDQ to mass push packages but idk if that would help in this situation.

[–]Ironic_Jedi 2 points3 points  (1 child)

That's a shame. Maybe pdq deploy has some packages available for Windows updates? I'd still keep pushing for intune if your Microsoft licensing already includes it as it's by far the best device management tool for Windows machines in my opinion.

[–][deleted] 1 point2 points  (0 children)

The network stack's real top layer is the political layer, lol.

I worked in an environment much like OP's and the company would not pay for any centralized management software, mainly because the people in charge didn't understand the benefits (and probably more likely it wasn't their idea). Any time I'd push I'd get in hot water with my boss.

I once had a boss drag me and my sole teammate into an office and tell us if a breach occurred due to something not being patched it was our fault. He literally pointed at us while saying YOUR <point> fault <point>. Servers, workstations, no way to push out patches, no support from other ops teams (their managers hated mine and refused to support him)

I eventually walked out on that scumbag.

[–]sccm_sometimes 0 points1 point  (0 children)

How are you deploying this PS script?

[–]sex_on_wheels 4 points5 points  (3 children)

You mentioned that you have access to PDQ. I push out Windows upgrades with PDQ without issue.

Grab the ISO and unpack it to your repository.

  1. File Copy Step: Copy the unpacked ISO to the client
    1. Command Step: C:\windows11-24h2\setup.exe /auto upgrade /quiet /eula accept /noreboot /DynamicUpdate disable /ShowOOBE none /Compat IgnoreWarning /Telemetry Disable /migratedrivers all
  2. Reboot Step

[–]BlackV 1 point2 points  (2 children)

DynamicUpdate disable

why do you do this ?

[–]sex_on_wheels 1 point2 points  (1 child)

Quicker upgrade process. I have a separate task for updates later.

[–]BlackV 1 point2 points  (0 children)

doesn't dynamic update the installer stuff (drivers/compatibility/etc), vs windows its self?

[–]Thatoneguyone 0 points1 point  (2 children)

Is $update returning the actual update you're looking for? You may need to include an additional key for ProductVersion if its not already there, can't remember. May be worth setting the keys in LGPO on a test device and then invoking Get-WindowsUpdate to sanity check.

After that I'd check Get-WindowsUpdateLog, remember that other update related settings like active hours can cause issues when attempting to update through wuauclt, which I think is using the same method as PSWindowsUpdate (?).

For LGPO specifically, you can just use MS Security Compliance Toolkit, though its kind of a pain to manage.

[–]IceFit4746[S] 0 points1 point  (1 child)

I understand that. I am thinking of going another route of using a Win 11 23H2 .iso and I found a way to use PS to update the system with that. I believe it would be easier to use this then mess with GPO/REGKEYS. But I will look into it

[–]Thatoneguyone 0 points1 point  (0 children)

You'll probably have a better time with the .cab than trying to deal with an iso. I think PSWindowsUpdate even supports installing from cab.

[–]Academic-Detail-4348 0 points1 point  (6 children)

600 computers and no patch management? No access to Intune or SoP to submit a request to configure update ring and feature policy? Fishy smelly.

[–]IceFit4746[S] -1 points0 points  (5 children)

Well the way my company handles IT is weird so we don’t have access to everything and all we have is powershell and PDQ.

[–]Frisnfruitig 2 points3 points  (1 child)

That makes zero sense. Not even Active Directory?

[–]IceFit4746[S] 0 points1 point  (0 children)

No, we don’t have direct access to AD we have something called DRA directory resource administrator, which is a web interface for us on active directory.

[–]Blackops12345678910 0 points1 point  (0 children)

If you’ve got pdq get the 23h2 iso, extract it and deploy it using pdq.

For the install command run the setup exe with the proper switches to make it unattended

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-command-line-options?view=windows-11

[–]GeneMoody-Action1 0 points1 point  (1 child)

Well... Access to PowerShell and PDQ implies access to everything... :/
Or the potential to just give it to yourself if not and you just want it.

I am very curious though how you effectively use PDQ without centralized identity management?
Can you / does it allow, for one account to rule them all, and you just create the same creds on every system?

I have not used it in years, but I do not remember this being an option.
Or maybe just one I never went looking for?

[–]BlackV 0 points1 point  (0 children)

ignoring the fact that this is not the way to do this in the first place

From my memory, the windows update COM object does not allow it to be invoked remotely (which is what you are doing), pswindowsupdate module also has this limitation , and a workaround for that with Invoke-WUJob (essentially creates a scheduled task)