tcox8 / osd-reporting Goto Github PK
View Code? Open in Web Editor NEWThis script creates a webpage to show SCCM OSD Reporting
This script creates a webpage to show SCCM OSD Reporting
The completed date is showing up from the previous computer on computers that have not completed yet.
Hello mate!
Sucessfully implementated your script. Both from cmd and task scheduler the script runs sucessfully, its refresh the index.html, but unfortunately it gives me this message. Could you help, whats wrong with my enviroment?
Thanks.
At least one device was detected as starting the Task Sequence but there is an issue sorting the steps.
Could the time zone adjustments be implemented as a variable, or checked from server clock to comply with DST adjustments?
Re-arranging the results to make the newest computer on top caused the headers to not populate correctly.
Originally, computers that were older than 24 hours would be removed from the reporting. During some of the 2.0 code rework, this was broken. This would cause the columns to contain the wrong information for that device.
The $TimeinHours variable doesn't do anything. The query is hardcoded to 24 hours.
I followed the detailed guide.
Here is my Task Scheduler parameters:
-NoProfile -ExecutionPolicy Bypass -File "E:\Sources\OSD\Scripts\OSDReporting.ps1" -SQLServer "uswc01.ad.com" -Database "CM_WCE" -TSAdvertisementID "WCE2003E" -TaskSequenceID "WCE001E7" -IISPath "C:\inetpub\OSD"
USCWC01.ad.com is the actual hostname of the server; however I have a CNAME that redirects osd.sccm.uswc01.ad.com to USWC01.ad.com. I would like to use osd.sccm.uswc01.ad.com for this webpage.
Browsing to osd.sccm.uswc01.ad.com:80 results in a blank page in Firefox and Edge. However, the custom favicon displays in the tab (the little home icon). Any ideas why this page isn't populating?
If I manually run the PS1 script and type in the parameters, I get these errors:
Cannot index into a null array.
At E:\Sources\OSD\Scripts\OSDReporting.ps1:271 char:1
+ $DriverIndexStart = $TSDriverSteps[0].name #Get the name of the first ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
At E:\Sources\OSD\Scripts\OSDReporting.ps1:273 char:85
+ ... nceObject $TSSteps.Name -DifferenceObject $TSDriverSteps.Name -PassTh ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand
Cannot index into a null array.
At E:\Sources\OSD\Scripts\OSDReporting.ps1:277 char:1
+ $TSStepsNoDrivers = $TSStepsNoDrivers[0..($index -1)] + "Install Driv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Hi,
I've set up the site as shown in the set up guide, but when the script runs, in IIS and webpage it just shows
"No devices have been detected as starting the Task Sequence"
Am I missing something here?
When a TS fails out, the final error is no longer in the last column. This causes an issue when the computer is reimaged with the same name.
Hello,
I'm missing PCs from the overview now.
When I run the exact same query as the script is using directly on the database, I do see the missing PCs being returned:
The only difference between the 2 is that the MININT PC was installed with PXE, and the DFTE0527 (and 2 others which are also missing in the overview) were re-imaged via Software Center.
What could I be missing here?
Method of changing report timestamps from month/day/year format to day.month.year (or other) without the need of altering the ps1 file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.