python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Default Powershell Terminal is 7.2 but scripts run as Powershell 5.1
Notice in my VS Code, a fresh terminal, the very first line indicates it is properly defaulted to Powershell 7.2.2 - just as I believe it should.
But then in this same screenshot, the first script I r...
bkwdesign
Votes: 0
Answers: 2
I am unable to get splatting to work with New-ADUser using given and created attributes
I am processing an array of AD User data pulled from one domain to recreate in another. I have created a hash table linking the New-ADUser parameters with the user data imported from a CSV (populated ...

GeoffS
Votes: 0
Answers: 3
Implicit conversion to bool of struct defined in C# fails in PowerShell
Why does an implicit conversion to [byte] work, but when replacing byte by bool it no longer works?
I. e. the following works...
Add-Type -TypeDefinition @'
public readonly struct MyByte
{
private...

zett42
Votes: 0
Answers: 1
How to Stop powershell form Converting the variable assigment of a boolean to Uppercase letter
I am trying to format a json and do dynamic variable assignment but once the boolean value is assigned powershell is changing the casetype for the first letter to uppercase.
I still want to maintain t...

wehelpdox
Votes: 0
Answers: 1