Comments (8)
Hi Heidi,
The xSPInstallPrereqs uses Get-xSharePointAssemblyVersion to get the version number from prerequisiteinstaller.exe (from the InstallerPath property). This gives us the version number of the prerequisite installer, which lines up with the version number of SharePoint we are dealing with as well, meaning we can use that to determine which prerequisite installations to check for. From our own testing it works fine for both versions - have you seen this not work correctly somewhere though? Would be keen to know what scenarios it doesn't work in so we can accommodate them.
- B
from sharepointdsc.
Ah, OK, I think the actual problem may be that I'm running powershell version 4.The version property that's used in Get-xSharePointAssemblyVersion appears to have been introduced in v5. Are you still intending to support v4 at this stage, or do I just need to upgrade?
from sharepointdsc.
We are absolutely looking to support PowerShell 4 as well - let me spin up an environment where I can validate that and I'll let you know how I go. What we do though should have been working fine though but I'll confirm. Do you have a specific error message or logs or anything you can share with me about your error that you can share with me?
from sharepointdsc.
OK it would appear you are correct Heidi - I can see how we address this as well, I'll work on getting a fix pushed in for this one and post here when it is resolved.
from sharepointdsc.
Hey Heidi,
I have a fix that appears to be working in my repo - I'll do some integration and functional tests with it to make sure it behaves correctly in a few scenarios and then I'll post the fix. Expect it within a few days to a week, and I'll post here and close this issue when it's done.
Thanks for reporting the bug!
from sharepointdsc.
Excellent! Thanks for the quick response, and all the work you've put into this project.I'm just getting started with DSC, and it's great being able to do so much.
from sharepointdsc.
Hi @heidi2 - the fix for this issue is included in pull request #78 - I'm just waiting on a code review before I move this in to the dev branch though. In the mean time if you want to apply the fix to your own scripts the change is in xSharePoint.Util.psm1, in the Get-xSharePointAssemblyVersion function, the one line it uses should be:
return (Get-Command $PathToAssembly).FileVersionInfo.FileMajorPart
This will work in PS4 and PS5, so should resolve the issue you are seeing while we get the rest of the changes in that pull request reviewed and moved in. I'll keep this issue open until the fix is officially part of the dev branch though.
from sharepointdsc.
This fix is now merged in to the dev branch and will be in the next release - closing this issue
from sharepointdsc.
Related Issues (20)
- Pass empty string to parameter HOT 1
- [SPSearchIndexPartition] Regression introduced with with the fix for issue #1376
- [SPProductUpdate] Resource does not support SPSE yet
- [SPProductUpdate] Resource pauses the Search Service
- [SPInstallPrereqs] Multiple instances of the VC++ Redist causes issues
- [SPShellAdmins] Get-SPDatabase cmdlet cannot be found
- [SPConfigWizard] Add possibility to temporarily dismount content databases during config wizard
- SPHybridConfig: New resource proposal HOT 1
- SPTrustedRootAuthority - Error while adding Trusted Root Authority via CertificateThumbprint
- SPInstallPrereqs: sqlncli.msi is no longer required after November 2021 CU HOT 2
- SPPublishServiceApplication - Set-TargetResource does not work
- Issue while exporting the site configurations with certificate thumbprint HOT 2
- [Export] Export doesn't work in SPSE
- [SPFarm] Import-Module SharePointServer causes exception in SharePoint Subscription 23H1 HOT 3
- SPCertificateSettings: Unable to set contacts when previously blank
- Intro and SPSite Enhancement
- DSC Resource HOT 1
- Least-privileged security model enabled after Oct 22 CU
- Visio Graphics Service Application
- SPFarm: Add SPServerCertificatePipeBind Support for the Central Administration with SPSE 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 sharepointdsc.