imabdk / powershell Goto Github PK
View Code? Open in Web Editor NEWAll my PowerShell scripts which I'm referencing in the various posts on https://imab.dk
Home Page: https://imab.dk
All my PowerShell scripts which I'm referencing in the various posts on https://imab.dk
Home Page: https://imab.dk
Hi Martin i am search for your SCCM-ClientHealthMonitor.ps1
please add the last version too many thanks
Hey
$items empty at first login on a new (no other users) computer. Script fails. ($items.GetType().IsArray)
If I am enrolled with Windows Hello for Business but I login with Username and Password and then I try and request a certificate using the template that enforces using the Microsoft Passport Key Storage Provider
CSP.
Using
Get-Certificate -Template 'WHFB Template' -CertStoreLocation cert:\CurrentUser\My SubjectName 'cn=test'
Then I get a UAC prompt to unlock the TPM using Face / Fingerprint / Pin.
Do you know if there is a way to determine if I have unlocked the TPM / Logged in with Windows Hello for Business in Powershell to prevent the prompt from happening?
Hi!
I noticed desktop-config.json is written incompletely in "userAccounts" section resulting in Teams stuck on splash screen. In my case there are 5 nested levels in this section. But default Depth of ConvertTo-Json is 2.
Fix:
$newContent = $json | ConvertTo-Json -Depth 8
I used 8 just as precautions for future changes in json structure, 5 will work just fine.
Script fails to run. Output as follows:
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:168 char:21
+ Sign up
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:195 char:190
+ ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:195 char:266
+ ... p-link-symbol float-right text-normal text-gray-light pr-3">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:197 char:159
+ ... d-block link-gray no-underline f5 Bump-link--hover">Mobile <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:197 char:235
+ ... p-link-symbol float-right text-normal text-gray-light pr-3">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:198 char:170
+ ... d-block link-gray no-underline f5 Bump-link--hover">Actions <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:198 char:246
+ ... p-link-symbol float-right text-normal text-gray-light pr-3">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:199 char:176
+ ... lock link-gray no-underline f5 Bump-link--hover">Codespaces <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:199 char:252
+ ... p-link-symbol float-right text-normal text-gray-light pr-3">→</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\toast\Install-RSATv1809v1903v1909v2004v20H2.ps1:200 char:172
+ ... -block link-gray no-underline f5 Bump-link--hover">Packages <span cla ...
+ ~
The '<' operator is reserved for future use.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
Suggesting to add a check if the wuauserv service is running.
It is not running by default in my org.
Get status around line 155 $wuSvsStatus = (get-service suauserv).Status
Before issuing cmdlet Restart-Service
, check if $wuSvsStatusis -eq "Running"
Else Start-Service suauserv
And then in the finalizing of each parameter option, in the same place as the reset of the registry entry ("UseWuServer"), return the service it to it's original state. Running if running, and stopped if stopped.
I am attempting to use your script in a VDI environment and the script throws message:
VERBOSE: Microsoft Teams application not installed
Teams is installed.
Teams was installed using the MSI installer and the "ALLUSER=1" flag which runs Teams in the per-machine installation mode rather than the per-user mode.
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.