Comments (5)
Hi @josemaparicio I think I've seen this before, but I'm spacing what was going on. What OS are you runnign this on?
from webadministrationdsc.
Hi,
I'm running the script in a Windows Server 2008R2 with powershell 5. I've tested in a Windows Server 2012 R2 and it worked just fine without the where statement!
from webadministrationdsc.
What version of the resource are you using? I'm showing the dev version has those lines as:
$Website = Get-Website | Where-Object -FilterScript {
$_.Name -eq $Name
}
Also I remember rewriting that to work with 2008R2 as I ran into that problem as well. Could you try updating to the dev version and see if the problem goes away?
from webadministrationdsc.
Hi,
I downloaded 1.7.0.0 from the powershell gallery, should have cloned the repository but I thought the version from the gallery was good enough. I tried the repo version and it worked ok. I will use the github version from now on. Thanks for your help :)
Regards,
Jose.
from webadministrationdsc.
Ah, I think it's been a while since we've published (I have some PRs open that'll help with that) so the gallery might be a bit out of date. Glad to hear we've got you fixed up. I'm going to close this feel free to open a new issue if you run into another problem.
from webadministrationdsc.
Related Issues (20)
- xWebConfigPropertyCollection: Adding system.webServer/security/authorization fails Test-TargetResource HOT 3
- xWebAdministration: Rename master branch to main
- Parameter 'PhysicalPath' should point to existing path, on Azure File Share HOT 4
- Unable to configure IIS using PowerShell DSC Resource xWebAdministration v3.20 HOT 3
- Can you set multiple file extensions to allowed for request filtering? HOT 1
- Suported? - xWebSite - Windows Authentication - Advanced Settings/Providers HOT 2
- WebApplication: Integration test failing
- How to add credentials with empty password in xWebAppPool. HOT 2
- Confusing package names in PowerShell Gallery HOT 5
- Name will not take ".Net6 Core ", Net6 Core works but want the "." HOT 1
- WebAppPoolDefaults : Add Missing Configuration Items
- xWebAppPool and xWebApplication cannot delete entities in use and do nothing HOT 1
- Website: PowerShell DSC resource DSC_WebSite failed to execute Test-TargetResource functionality with error message: System.Exception: Please ensure that the PowerShell module 'WebAdministration' is installed.
- Website: unable to change advanced Authentication Settings HOT 1
- IisFeatureDelegation wipes out config HOT 1
- IIS site binding new SSL flags
- IisMimeTypeMapping ansible config? HOT 1
- WebAdministrationDsc: Move historic change log back to the file CHANGELOG.md
- WebConfigPropertyCollection needs to allow null or empty strings for specific collection items like '/system.webServer/security/requestFiltering/hiddenSegments'
- IisModule - Using to remove at server level doesn't work 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 webadministrationdsc.