Find Jobs
Hire Freelancers

Customizing my PowerShell Script

$10-30 USD

Завершено
Опублікований almost 8 years ago

$10-30 USD

Оплачується при отриманні
Hello, I´ve here a Script to cleanup a WSUS Server. But I have more than 10 Servers. Who can customize the Script for me, so I can cleanup ALL WSUS Servers in one Run? Here is the Script: #Region VARIABLES # WSUS Connection Parameters: [String]$updateServer = '[login to view URL]' [Boolean]$useSecureConnection = $False [Int32]$portNumber = 8530 # Cleanup Parameters: # Decline updates that have not been approved for 30 days or more, # are not currently needed by any clients, and are superseded by an aproved update. [Boolean]$supersededUpdates = $True # Decline updates that aren't approved and have been expired my Microsoft. [Boolean]$expiredUpdates = $True #Delete updates that are expired and have not been approved for 30 days or more. [Boolean]$obsoleteUpdates = $True # Delete older update revisions that have not been approved for 30 days or more. [Boolean]$compressUpdates = $True #Delete computers that have not contacted the server in 30 days or more. [Boolean]$obsoleteComputers = $True # Delete update files that aren't needed by updates or downstream servers. [Boolean]$unneededContentFiles = $True #EndRegion VARIABLES #Region SCRIPT # Load .NET assembly [void][[login to view URL]]::LoadWithPartialName("[login to view URL]") # Connect to WSUS Server $Wsus = [[login to view URL]]::getUpdateServer($updateServer,$useSecureConnection,$portNumber) # Perform Cleanup $CleanupManager = $[login to view URL]() $CleanupScope = New-Object [login to view URL]($supersededUpdates,$expiredUpdates,$obsoleteUpdates,$compressUpdates,$obsoleteComputers,$unneededContentFiles) $[login to view URL]($CleanupScope) #EndRegion SCRIPT
ID проекту: 10832662

Про проект

1 пропозиця
Дистанційний проект
Активність 8 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Hello I came across this task and have updated your script to make it work for multiple server names. The trick is to wrap the entire script in a function, make it take in a parameter that sets a string array, then go through the array iteratively/or with PS job for parallel to run the clean up part. Happy to share my updated version with some comments in there to explain the process. Since it took such a short time, I'll share it with you if you accept the bid - 10USD seems a bit high, willing to bump down on this
$10 USD за 0 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор GERMANY
Bietigheim-Bissingen, Germany
5,0
7
Спосіб оплати верифіковано
На сайті з груд. 7, 2015

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.