WSUS Script To Add List Of Computers To A Group In WSUS
Maybe your like
- Home
- About
Share this:
- X
Related
3 responses to “WSUS Script to add List of Computers to a Group in WSUS”
-
Hi, thanks for publishing this script 🙂 I have used it and works fine, but I have one tiny problem. I use Rapid Deployment from HP (Altiris)to manage my servers and created a job that exports the servername to the srvlist.txt. The problem is that all servernames are stored in uppercase i Rapid Deployment and the script/WSUS don\’t like that. The logfile says: Machinename not found in WSUS.Is it in some way possible to have the script convert/read the list in lowercase?I have zero knowledge of powershell and would be very thankful for any advice. Thanks,Toby
Reply -
Is it possible to have the script just look at the unassigned container and if the computer name start with a certain naming convention then move to an appropriate container?
Reply -
This script was quite useful for me last night. I did have some problems running the script under PowerShell 2, and had to update some of the code.
The “add servers” loop uses some comparison operators to generate boolean matches which do not appear to work as designed. I replaced these with “$object | where-object” clauses instead. I also eliminated (or reduced) the chances of multiple server name matches by using the “-match” (Regular Expression) comparison operator, instead of “-like”, which allows for ambiguity.
Finally, I added casting to the variables to prevent confusion, and cleaned up the indentation. The updated script can be found here: http://blog.uvm.edu/jgm/2011/05/06/wsus-programatic-access/
Reply
Leave a comment Cancel reply
Windows Powered via RSS

- Comment
- Reblog
- Subscribe Subscribed
-
WindowsPowered Sign me up - Already have a WordPress.com account? Log in now.
-
-
-
WindowsPowered - Subscribe Subscribed
- Sign up
- Log in
- Copy shortlink
- Report this content
- View post in Reader
- Manage subscriptions
- Collapse this bar
-
Tag » Add Computer To Wsus Group Powershell
-
Add-WsusComputer (UpdateServices) - Microsoft Docs
-
Add-WsusComputer - Windows-powershell-docs - GitHub
-
Add Computers To WSUS Group Using PowerShell
-
WSUS: Managing Groups With PowerShell | Achieve More
-
Scripts/Import-1 0.9.0 - PowerShell Gallery
-
Configuring WSUS Computer Groups
-
Distribute Computers Across Several Groups For WSUS Using ...
-
[Server 2012][WSUS] Adding Computers From AD Security Group To ...
-
How To Get Computer Group Membership With Or Without PowerShell
-
How To Work With The WSUS PowerShell Module - TechTarget
-
Install And Configure WSUS On Windows Server 2019 - Prajwal Desai
-
Use PowerShell To Make WSUS Suck Less
-
Patch Manager Computer Groups - SolarWinds Documentation
-
Using PowerShell To Output WSUS Group Information - DailySysAdmin