Cannot run New-AzActionGroup after New-AzActionGroupReceiver
Hello, I am trying to create a new action group using PS. The group will use webhook. To achieve this I need to create an action group receiver. Code: $ActionGroupShortName = 'Alert' $ActionGroupReceiverName =…
Ways on how to manage azure Devices and Find device location per office
Hi, Im on creating some automation to delete all stale devices in Entra ID (not in intune) and i need to find a way to find each device location so i can separate them every office. are there any ways to check the device location or physcial location? im…
Problems with DNS policy
Hi, community. I made a DNS policy for subnet, zone scope and added record type A. My A record, made above, resolving on client from subnet, it's OK. But while policy enabled, that client can't resolving other records in domain. Appears error: ***…
PowerShell custom module call crashing PowerShell session
Hey, Currently running into an issue with a custom PowerShell script that I own. The script has been in production almost daily for the past 4-5 years but the past couple weeks it's been erroring out on me for reasons I don't understand. The script in…
Change Product Key of Windows Server 2022 using Ansible and/or PowerShell script
Hi there, I am trying to automate the process of provisioning a Windows Server based Virtual Machine using Azure and Ansible. My company has some Windows Server product keys available through the Microsoft Partner Program. My goal is to use one of these…
Group membership
Hi All The following script doesn't work for AD groups. Members of ADGroup1 should be able to add or remove users from other AD Group. please guide me. # Define the $owner that will be able to manage the members of $group $owner = "ADGroup1"; …
Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?
I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of…
Troubleshooting Non-functioning Mouse Cursor on Laptop
My laptop's mouse cursor is not showing up. I have tried connecting a wired mouse to check if the issue is with the touchpad. However, even the wired mouse is not working. The problem is temporarily solved upon restarting the PC, but it comes back after…
Access to C:\Data not allowed . Error Code 22853
Access to C:\Data not allowed . Error Code 22853 Any workway around this ?
Could someone kindly help me to set the max memory for SQL via powershell
Hi Experts, Could someone please help me to set the max memory in SQL for the below request. I have checked the below link. But I am not able to make out. Because I am not expertise in scripting and PowerShell. So need your help. …
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
I am getting error, When I am trying to update the GPO by executing gpupdate /force.
Hi Experts, I have applied the GPO to disable windows auto update and Trying to update the GPO. But I am getting below error while I am trying to update the GPO. "Windows failed to applied the {F312195E-sD90-447A-A3F5-08DFFA24735E) settings .…
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
How to browse and delete files under C:\System Volume Information\DFSR\Private directory ?
How to force delete the below file from my DFS replication staging area? C:\System Volume…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
Powershell backup and then send email. send email has issues
<# Script: Backup database with email notification Version 1.3 - May. 31, 2024 This script performs full and transaction log backups of the Mobile database and sends email notifications. #> Variables $serverName = "TFS" $databaseName =…
Error Handling in ForEach-Object -Parallel CMDLET.
I Use a PowerShell 7 Script to Validate Resource Group and its JSON contents DisplayName, ObjectID and Role Definition Name. My Script will use Parallel block to loop through the subscriptions and validate RG First and then foreach Role Definition it has…
Could not find any service with display name ‘XCELERAINST ’
Hi Experts, I was trying to install MSSQL 2019 via powershell. During the MSSQL installation we are setting instance service name as XCELERAINST. As per our code we trying to check the service XCELERAINST. If the XCELERAINST service already present then…
EventID for the GPO
I have enabled the GPO (Turn on PowerShell Transcription): Computer Configuration-Administrative Templates-Windows Components-Windows PowerShell. Turn on PowerShell Transcription: Enabled. Should I see any other Event ID besides 4103 in Event Viewer with…
Need to configure Report to check daily backup, patch and Reboot status for azure virtual machine using Powershell script
Need to configure Report to check daily backup, patch and Reboot status for azure virtual using Powershell script
![](https://techprofile.blob.core.windows.net/images/lERuGqIsfE-3j2IJgoDLSw.png?8D844E)
Connect-Exchange Online (Error while sending the request)
Hello, I'm getting the below Error while connecting to Exchange Online (PowerShell Script) when called from .Net Application. #Import-Module ExchangeOnlineManagement #Connect-ExchangeOnline -Credential $Creds An error occurred while…
Exporting user last login to M365 or Azure to .CSV file ?
How can I extract and export the last user login time to the M365 portal or Azure AD as .CSV file? is there any PowerShell script or GUI procedure?
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)