Comments (4)
Interesting, I'm surprised this never came up before.
You could try replacing Get-IISSite with Get-Website. For the purposes of this script they should operate identically.
Please let me know if that works. In my testing on a 2019 server both commands returned the correct results.
I don't have a 2012R2 server to test on, so there may be additional functionality broken beyond just Get-IISSite.
from optimize-wsusserver.
I'll let you know when I have time to do it on my homelab first :)
from optimize-wsusserver.
Long story short. I couldnt' wait (patience over 9000) for it and had some spare time.
Resolved the Get-IISSite problem installing the nuget package: https://www.powershellgallery.com/packages/IISAdministration/1.1.0.0 this seem fixed. (you can state on the readme.md about it imo)
Everything working fine, just one problem I saw, but not really expert on PS scripting side tbh, here i'm running a localized WSUS (italian) and the: IIS:\Sites\WSUS Administration\ClientWebService
harcoded is not the same as on the italian side, instead it is IIS:\Sites\Amministrazione di Windows Server Update Services\ClientWebService
maybe it's possible to retrieve the name for it using a cmdlet for the IIS.
Regards
from optimize-wsusserver.
@LordDeimos666 Thanks for the solution. I'm going to close this as it didn't need any sort of changes to the script.
from optimize-wsusserver.
Related Issues (17)
- Doesn't work with PS7 HOT 2
- Link Broken HOT 1
- Get-WsusIISLocalizedNamespacePath doesn't exist HOT 2
- feature request - decline updates by title HOT 2
- Email output of Weekly and Daily Tasks HOT 2
- Permissions on ClientWebService\web.config HOT 3
- Errors HOT 4
- Windows Server 2019 Errors on -FirstRun HOT 1
- Get-WsusIISLocalizedNamespacePath returns empty path HOT 1
- WSUS DB Optimization Fails HOT 1
- First run Error HOT 1
- IIS path referenced is not localized HOT 2
- Some Error Messages HOT 1
- SQL server not supported HOT 5
- Issue with deepclean & suggestions HOT 8
- IIS Administration module is also a prerequisite HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optimize-wsusserver.