Questions tagged [powershell-v7]
The powershell-v7 tag has no summary.
13 questions
0 votes
3 answers
82 views
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 ...
0 votes
1 answer
1k views
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 ...
0 votes
0 answers
281 views
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 ...
0 votes
1 answer
3k views
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....
0 votes
0 answers
141 views
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 ...
1 vote
0 answers
808 views
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 ...
0 votes
1 answer
1k views
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 ...
1 vote
1 answer
2k views
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 ...
1 vote
0 answers
211 views
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. ...
4 votes
1 answer
3k views
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 5.1: https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/windows-...
1 vote
1 answer
1k views
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 ...
2 votes
1 answer
382 views
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' ...
22 votes
2 answers
84k views
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: ...