gwblok / garytown Goto Github PK
View Code? Open in Web Editor NEWGaryTown Scripts, Downloads, Etc
GaryTown Scripts, Downloads, Etc
garytown/Office365/o365_install.ps1
Line 178 in 8f51813
Afternoon So myself and a fellow worker are busy working on OSD Cloud and would like to find out if there is any possibility of incorporating Winget into the Task sequence.
At the same time is there away to speed up the curl download for the OS.
Running the latest version of the detect script 23.3.9.1, receive the following errors.
Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Version".
At C:\Users\xxx\Desktop\Update-DellApps-Detect.ps1:235 char:24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WARNING: Name resolution of proxy-recastsoftware.com failed
No Proxy Server Found, continuing without
Downloading Dell Cab
VERBOSE: GET with 0-byte payload
VERBOSE: received 284281-byte response of content type application/vnd.ms-cab-compressed
Expanding the Cab File...
Loading Dell Catalog XML..
VERBOSE: GET with 0-byte payload
VERBOSE: received 231375-byte response of content type application/vnd.ms-cab-compressed
Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Version".
At C:\Users\xxx\Desktop\Update-DellApps-Detect.ps1:315 char:32
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not compare "10.9.1.11" to "". Error: "Cannot convert value "" to type "System.Version". Error: "Version string portion was too short or too long.""
At C:\Users\xxx\Desktop\Update-DellApps-Detect.ps1:404 char:17
if ($DCMVersion -gt $CurrentVersion)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non-Compliant, Exit 1, to trigger Remediation to Update Software
File OSD/BGInfo/BGInfoRegBuilder.ps1
Line 597 $SMSTSModel = (Get-CimInstance -ClassName Win32_ComputerSystem).Mode
Should $SMSTSModel = (Get-CimInstance -ClassName Win32_ComputerSystem).Model
Hi,
thanks for nice work!
I want to try to add time/date Parameter for a schedule start of the task sequence. But i dont see in the code where i can set the time, have you an idea?
is this the ADV_ProgramWindowStartTime Value ?
For version 4.4.0, the Universal App section in the Dell XML file does not have the letters UWP, so it doesn't get filtered out. FYI for the Intune detect script
Fix line 71 in o365_download.ps1 to $NewFolder = New-Item -Path $ODTExtractPath -ItemType Directory -Force
the original line is $NewFolder = New-Item -Path $OSDExtractPath -ItemType Directory -Force
and it needs to be
$NewFolder = New-Item -Path $ODTExtractPath -ItemType Directory -Force
Hi Gary,
CVE-2023-24932 remediation has some new steps after the April updates:
https://support.microsoft.com/en-us/topic/kb5025885-how-to-manage-the-windows-boot-manager-revocations-for-secure-boot-changes-associated-with-cve-2023-24932-41a975df-beb2-40c1-99a3-b3ff139f832d
The remediation script looks like it will need an update.
Thank you for your work in the euc community.
I was going to test both:
In both cases i started without providing parameters and then inputted them interactive in the dialog
Both scripts fails for me with a:
You cannot call a method on a null-valued expression error
Example from BootImage2Excel.ps1
Any idea what i might be missing here?
When running the HPIA-PR-Detect.ps1 script in PowerShell or VS Code it results in the following errors:
PS C:\git\source\internal> . 'C:\Scripts\HPIA\HPIA-PR-Detect.ps1'
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:94 char:18
+ }
+ ~
The Try statement is missing its Catch or Finally block.
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:314 char:2
+ }
+ ~
The Try statement is missing its Catch or Finally block.
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:327 char:36
+ Write-Host "Trigger Remediation"
+ ~
The string is missing the terminator: ".
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:315 char:6
+ else {
+ ~
Missing closing '}' in statement block or type definition.
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:84 char:35
+ if ($HPIAIsCurrent -eq $false){
+ ~
Missing closing '}' in statement block or type definition.
At C:\Scripts\HPIA\HPIA-PR-Detect.ps1:34 char:22
+ Function Install-HPIA{
+ ~
Missing closing '}' in statement block or type definition.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingCatchOrFinally
Similar issue also occurs for other scripts.
VS Code raises the below for lines 310 - 312 and 316 - 318.
The character U+2013 "–" could be confused with the ASCII character U+002d "-", which is more common in source code.
Replacing as recommended doesn't resolve.
If I run Update-DellApps-Detect.ps1 I get the following error message but the Dell Command | Monitor was installed.
<![LOG[error from script =Der Wert "System.Object[]" vom Typ "System.Object[]" kann nicht in den Typ "System.Version" konvertiert werden.
In C:\WINDOWS\IMECache\HealthScripts\8bca1ee6-4593-40dc-ab38-85e673f41f47_1\detect.ps1:296 Zeichen:13
[Version]$DCUVersion = $DellItem.vendorVersion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get-Date : "System.Object[]" kann nicht in den Typ "System.DateTime" konvertiert werden, der für den Parameter "Date"
erforderlich ist. Die angegebene Methode wird nicht unterstützt.
In C:\WINDOWS\IMECache\HealthScripts\8bca1ee6-4593-40dc-ab38-85e673f41f47_1\detect.ps1:297 Zeichen:42
~~~~~~~~~~~~~~~~~~~~~
]LOG]!>
Function Install-HPIA{
[CmdletBinding()]
Param (
[Parameter(Mandatory=$false)]
$HPIAInstallPath = "$env:ProgramFiles\HP\HPIA\bin"
)
Error when running:
Install-HPIA : Cannot bind argument to parameter 'HPIAInstallPath' because it is null.
Manually setting the variable works.
I moved this out of the function to be with the other variables line 22 and it works.
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.