unable to connect Azure
Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…
Warning PowerShell ID 300
Hi, More than a year after reporting the problem, I continue to receive the same PowerShell warning despite everything working normally and all versions being up to date. Maybe with this new information we can better understand the problem. I know it…
Access Blob storage using SAS Key via PowerShell
Hi I want to be able to access Blob storage using a SAS key in PowerShell. I have the SAS key set up on the storage account, limited to the IP of the server I'm running the PowerShell from. I want to be able to use the key without signing into Azure or…
Windows 2022 Server TLS 1.2 is enabled - PowerShell Error
Windows 2022 Server TLS 1.2 is enabled - PowerShell Error WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «» For PowerShell to work I can run [Net.ServicePointManager]::SecurityProtocol =…
How can I check if my OnPremise Exchange Server is still sending email as relay to the outside world?
How can I verify and check if my Exchange Servers are still sending emails to the external world? Because from this page I cannot see any list of servers: https://admin.exchange.microsoft.com/#/reports/onpremunpatchedserverdetails
WinGet.exe upgrade --all -Exclude
How to exclude the list of apps [third-party application, MS applications, and MS KBnumbers] while running winget upgrade -all commands. Is there any parameter to exclude any application? It will be appriciated
Azure File share mounted drive showing Disconnected Network Drive
I am using Microsoft Azure Fluent API with RunPowerShellScript method to execute powershell script. My file share drive mounted properly but it's showing disconnected .When i click on disconnected drive it's showing files properly. But same powershell…
Exporting Power Platform environment as CSV or Spreadsheet file?
How can I export the list of Power Platform environments shown in this page: https://admin.powerplatform.microsoft.com/environments as .CSV file ? I need to perform an audit of thousands of unused environments in my tenant.
copy files using robocopy
Hi All My VM is hosted in Azure. I want to copy a folder (which contains subfolders and files, and some of the subfolder and file names exceed the 255-character limit) from one local drive to another. My local drive is the E drive, and the destination…
PowerShell - Get-Localuser PasswordExpires
Hi Guys How do I check if the local user has "password expires" true or false? Thank you very much in advance
KMS migration from 2012 OS to 2019 OS
Hi There, We have our working KMS services currently running in Windows 2012 R2 server and we are looking to plan for migration to 2019 OS. Server is hosted in our vcenter host and need a plan to execute this. Kindly assist us with the steps to go…
Credential Manager, PnP Powershell and SQL Agent Proxy permissions
Hi, I have SQL Agent Job that runs cmdexec via Proxy user and executes pnp ps1 script that picks credentials from Credential Manager and connects to Sharepoint online. This is the commands that connects to Sharepoint: Connect-PnPOnline -Url…
Azure Cloud Shell is stuck on Connecting terminal...
So i have an issue where i try to connect to azure cloud shell and it says Requesting a Cloud Shell.Succeeded. Connecting terminal... and it just stuck there for more than 40 minutes now. Is there anything i can do? I try different browsers, chrome,…
Does the schema upgrade while promoting server from cmdlet
Hi We are planning to promote the server using the cmdlets Install-ADDSDomainController -CreateDnsDelegation:$false -DomainName $Domain While promoting the servers from the Server Manager GUI then it also upgrades the Schema as well, so when we promote…
Why do all web parts in a site page show as ErrorWebPart when using Powershell
When using PowerShell to try modifying web parts on a site page (SP 2013/2016), all web parts (CEWP, CQWP, List, etc...) read as ErrorWebPart. I read some really dated posts on this issue, but never found a good solution for PowerShell. I also read that…
Using Git commands with Service Principal authentication.
I have been granted service principal access to my Azure DevOps repository. Below is the script I'm using: $resource="499b84ac-1321-427f-aa17-267ca6975798" $TenantId=" " $ClientId=" " $ClientSecret=" " $TokenUri =…
PS script deployed via GPO not installing
Hello experts, I could use some help determining why a PS script deployed via Group Policy is not applying. I suspect it is due to the ExecutionPolicy restriction however I have attempted to bypass in the script parameters as well as adding the bypass…
Powershell Error
Hi I am running the following script to get folders and their permissions on file shares. This returns all the folders and their permissions in a csv file. $OutFile = "C:\Temp\Permissions.csv" # Insert folder path where you want to save your…
Windows Powershell and Visual Studio Running Extremely Slow
Hello, I work as an IT support engineer for my company and a user reached out to me saying that they have been experiencing issues with their VS code and Powershell commands running very slow. I recreated the same environment on my laptop, and I had the…
Export users
Hi all, We create users in on-premises Active Directory, and they are synchronized to Azure AD. I have two requirements:For every user in Azure, I see an Object ID. Is this Object ID coming from the on-premises Active Directory, or is it assigned by…