The cluster is connected to Azure Arc and I can see the cluster resources on azure arc. But when I perform any commands to the cluster from Cloudshell, it says cluster not found under the resource group.
This is the error I'm getting while accessing the cluster on Azure Arc. This is my cluster connected to AzureArc.
How to add a Sql code to a powershell script
backup_report.txtI have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a…
how to set proxy on invoke-webrequest
can someone help me with how I can pass proxy here in this script and if I am missing any syntax here? Full script in comment section! running into defender.ps1 is not recognized and a invalid err token error Invoke-WebRequest @parameters .\defender.ps1…
How can I combine 2 get-ADComputer queries in 1
Can someone please help me? I am trying to find computers that match this criteria (see from screenshot Screenshot 2024-06-26 085801.png) Right now I have 2 queries, Find all enabled computers : $allEnabledComputers=Get-ADComputer -Filter…
Remove-FileLabel cmdlet is getting stuck sometimes
Hi, I have been exploring the new Microsoft Purview Infromation Protection PowerShell Module. I have been testing Remove-FileLabel cmdlet. Remove-FileLabel -Path "C:\Users\user\Documents\sample" -JustificationMessage "Migration…
powershell script to disable and move computers to other ou
I want to disable a bunch of computers and move them to another OU in AD thru Powershell. Cannot get to work though, have tried several scripts but it does not work: cannot find object beneath dc=xxx,dc=xxx However when i do a move adcomputer in…
Listing file information filtered on values in a file
Hi, I would like to list sizes on all files in a directory, but the listed file names must match filenames picked up from a file. Basic information file size from this; Get-ChildItem -Path "\servername\DATA\files" -File | Select-Object…
Powershell - DLP - Add Rules to the DLP Policy
Hi Im trying to making Add Rules to DLP Policy with PowerShell # Add Rules to the DLP Policy $RuleName = "DlpRule" $ContentContainsSensitiveInformation = @( New-DlpSensitiveInformationTypeRuleCondition ` -SensitiveInformationType…
![](https://techprofile.blob.core.windows.net/images/iR_yc8GIz0SciJoNPxWq-g.png?8DBA55)
Get-AdminPowerApp fails when authenticating using service principal
I registered an application and added it as a Service Principal according to this guide: https://learn.microsoft.com/en-us/power-platform/admin/powershell-create-service-principal. I then logged in as this service principal. I am trying to get a list of…
Powershell to copy the folder and files
Dear All, Currently using the below script to copy the single file but I need to copy folder, subfolder and files also. Can you someone help me with this and I need to see the progress of the copy $sourceFiles = Read-Host "Enter The Restored…
![](https://techprofile.blob.core.windows.net/images/as_Tu4nfLUeUI0EOf39xtg.png?8D9529)
How to change SQL Server Failover Cluster IP addresses with PowerShell
Hello, I am trying to create a script that will change Windows Failover Cluster and SQL Server Cluster IP addresses. I can do this by using Failover Cluster Manager GUI, but I need to script it in PowerShell. I cannot find any information on how to…
Synchronization of disabled and enabled Onepremise Active Directory users with Microsoft entra
Hi, Currently when I deactivate a user in the Onpremise active directory it remains activated in Microsoft Entra. I want the user's status to be updated as soon as a change is made to the active directory. I looked at the Synchronization Rules Editor…
What is the purpose of enabling Windows Server internal firewall for internal AD Domain servers?
People, I wonder if enabling the internal Windows Server firewall feature is going to be very helpful or not ? Because I must also create the firewall rule to allow RDP on port 3389 and ICMP ping and also the WMI for the PowerShell remoting feature for…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
1. I am Trying to download the Language and Optional Features ISO & Inbox, Apps ISO for Windows Server 2022 Standard Evaluation But I can't find the download link . Please Provide me the Link
Hi Microsoft Team, I'm trying to download the "Language and Optional Features ISO" & "Inbox, Apps ISO" for Edition - "Windows Server 2022 Standard Evaluation", Version - "21H2" from Microsoft officials' website…
Windows 2019 servers patch failed
windows 2019 servers getting security patch failed and when I tried manual then stuck on 80% then I tried to clear table but again stuck, what is solution and how to fix this issue. we have tried below steps DISM /Online /Cleanup-Image /RestoreHealth …
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
How to Set the Group of users Password never expire and password not reset via powershell
How to set Group of AD Users Password never expiry and not reset the password Via Powershell
how to enable internet connection share on windows server core 2016
please, how to enable internet connection share on windows server core 2016, just with command line console or powershell.
Scripting installation of extension in Edge
What is the best way to force installation of extension in Edge (and Chrome)? I have 2 possibilities but which one is preferred? Use ExtensionSettings registry string and configure the extension Use the ExtensionInstallForceList registry key, obtain…
How to get a list of AD users that are set to change password at next logon
Hello, I am trying to export a list of all users in AD including a column for "ChangePasswordAtLogon" attribute. I have tried a lot of different variations but none of them have worked. This is one of the formats that didn't work. …