Questions tagged [powershell-v7]
13 questions
21
votes
2 answers
Cause of Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes
Steps
Launch PowerShell 7 on Windows 10.
Actual result
PowerShell 7.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/powershell
Type 'help' to get help.
Warning: PowerShell detected that you might be using a screen…
4
votes
1 answer
PowerShell 7.0 / 7.1 and .NET runtimes
A Microsoft Doc has a table for required versions of .NET Framework for PowerShell versions 3.0 to…
HeadInCloud
- 53
2
votes
1 answer
Unable to get years lapsed difference from a certain date with powershell custom date?
I cannot get the time difference from a certain date using Powershell like below:
$Date = '11/12/2001'
(New-TimeSpan -Start (Get-Date -Date $Date) -End (Get-Date)).ToString("'yyyy' Years 'MM' Months 'dd' Days 'hh' Hours 'mm' Minutes 'ss'…
Senior Systems Engineer
- 1,335
- 2
- 37
- 73
1
vote
0 answers
How to mount a Windows UNC Path on ubuntu using PowerShell Core
Background: I have an ubuntu machine that hosts a couple applications that I am in charge of and I want to automate the backup of the database that powers these applications. I noticed that PowerShell is now cross platform, so I figured a simple…
Jeffrey Quinn
- 111
1
vote
1 answer
Linux servers stopped being able to use PowerShell remoting over WinRM using NTLM on remote Windows Servers
So basically we have a team with Linux servers running PowerShell Core (a mix of 6 and 7) that have to execute remote Windows PowerShell commands on Windows servers. Problem is, the team never got Kerberos working for authentication and is relying…
codewario
- 568
1
vote
0 answers
Remote Windows Update using Powershell to a air-gapped server
My setup has a Windows 10 Desktop that runs "Windows Admin Software" to manage a directly connected Dell Server. This set up is functioning smoothly. The Desktop is connected to Internet.
The challenge is that this server is (and, desirably be) NOT…
quasar66
- 109
1
vote
1 answer
How are PowerShell and .NET runtimes related?
I understand there is a relationship between PowerShell and .NET, but I can't locate the details via Google. I was able to setup a fresh Linux instance that didn't have PowerShell or .NET, and then only installed PowerShell. PS cmdlets worked…
HeadInCloud
- 53
0
votes
3 answers
Powershell to find disabled users in Active Directory
I am using this to find users that are disabled in AD:
Get-ADUser -Filter 'Enabled -eq $false' -Properties Name, SamAccountName | Select-Object Name, SamAccountName
It does not show any disabled users except the krbtgt user:
Name …
0
votes
1 answer
How can I set ACLs on Microsoft DNS records using PowerShell 7
We have thousands of records in our Microsoft DNS servers, and some of them are specific to one department. That department has had ACLs set on their records so that their IT staff can modify their own DNS records. Some of the ACLs now seem to be…
K. McGregor
- 63
0
votes
0 answers
Access multple tenants as Global Administrator with principal from single tenant (PowerShell 7)
My goal here is to be able to use the service principal of an Enterprise Application in source tenant to authenticate towards/connect to destination tenants as Global Administrator.
In source tenant I have added an Enterprise Application. I am able…
Tedd Hansen
- 704
0
votes
1 answer
Error when importing certificate via PowerShell to Local Certificate Store. Missing PrivateKey Information
I have have tried the following ways to import a certificate to the localmachine store via PowerShell. The console was running as administrator.
Import-PfxCertificate -Exportable -Password (secure.string) -CertStoreLocation Cert:\LocalMachine\My…
Jessie
- 312
0
votes
0 answers
Accessing remote database from Windows machine
I tried to connect to a remote MySQL instance from my script in WSL2 but it always failed. I tested using the following command Test-NetConnection -ComputerName my-db.com -Port 3306 from PowerShell v7 and got this result:
ComputerName :…
Dorklord
- 101
0
votes
1 answer
How to update Azure AD MS Group Mail and ProxyAddresses field using PowerShell
I need to update email address domain for all Azure AD Groups (of all types Unified, Dynamic ... ) and I am using PowerShell 7 with latest stable AzureAD module.
I have an issue with setting new value to "Mail" and "ProxyAddresses" properties using…
Hrvoje Kusulja
- 264