Storage Spaces - disk failure
Hello everyone! One of my disks in Storage Spaces suddenly failed, and it was simply impossible to keep it physically connected and boot the OS at the same time. So, I bought a new disk, swapped with the old one, and added it to the Pool in Storage…
How to set scope after connecting to Microsoft Graph using non-interactive method?
I've successfully connected to Microsoft Graph using non-interactive method (Client Id, Client Secret), but I'm receiving Insufficient privileges error when running Get-Mguser due to not setting the scope. I have tried running the commands mentioned in…
Runbook Error when trying to read table with VM power states, stoped VMs that are recorded as stop and deleting the rows after the fact.
This is an after updates update manager post-script to shut down vms after they are started for updates if they were off before pre-script. Thus, keeping the environment as it was before processing updates. This is also run on a portal.azure.com…
Is it possible to get a PowerShell script that represents an operation in Azure Portal?
Hello, When I use Azure Portal and trigger some operation, like Deployment of Azure AI multiservice account, I would like to get a PowerShell script that represents that operation. Is that possible? In the "Overview" of the deployment operation…
Login error using powershell
I'm trying to run a script from local powershell but it giving me below error from today: The provided account "" does not have access to subscription name "<>". Please try logging in with different credentials or a different…
A Powershell Script to remove Microsoft Teams Classic
Anyone who can share a powershell script that will remove Microsoft Teams Classic? Current script i have is that it will detect if Teams classic is installed then it will proceed to remove. Check if Microsoft Teams Classic is installed $teamsClassic =…
Add-PnPFile : Cannot contact site at the specified URL https://<<Customer Tenant>>.sharepoint.com/sites/Training. The app principal does not exist.
Hello Team, Getting error while executing Add-PnPFile command. Add-PnPFile : Cannot contact site at the specified URL https://<<Customer Tenant>>.sharepoint.com/sites/Training. The app principal does not exist. By going through some…
Task Scheduler is unable to fetch credentials from Windows Credential Manager. It’s returning null for the username and password
We have one Task Scheduler job using Credential Manager to store service account credentials(Generic). After a password change, we started facing this issue. We have a PowerShell script configured as a Task Scheduler job that uses Credential Manager to…
can't create app service with publish model "container" over Powershell
Hey guys, the last couple days I tried to write a powershell script which creates a azure app service and some deployment slots for it. First - it seems to work fine but later I realized that the publish model is "always" on "Code"…
High CPU usage for vmmem
Hi, I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine. It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is…
For all folders in both local drive and OneDrive 365 Home, how to list all files containing certain words and output their full pathnames into either Excel or text file?
For both local drive and OneDrive 365 Home, I need help to find all pdf files with names containing "ABC" and file content containing certain text The search results as follows: Full pathname of each file list format is either Excel rows…
Connecting Security & Compliance PowerShell
I get this error msg, when trying to connect Security & Compliance PowerShell Could not find a part of the path 'C:\Users\username\AppData\Local\Temp\tmpEXO_5ewf3wn0.oir\exchange.format.ps1xml'. At…
AADSTS700016: Application with identifier <Id> was not found in the directory <Company>.
Good morning. I hope you are well. When trying to connect with: Connect-PnPOnline -Url "https://name-admin.sharepoint.com" -Interactive Or with: Connect-PnPOnline -Url "https://name-admin.sharepoint.com" It is throwing the…
New Azure VM RDP login displays powershell cant close to get to desktop
Created a new Azure VM for first time. Can RDP and login to the public IP. Set SConfig to not run, Powershell console stays open cant exit and get to desktop
Where can I find the complete list of all official GUID for all first-party Microsoft service principal?
Is there any way to create or generate a complete list of all official GUIDs for Microsoft Applications or services? So far I can only find it here:…
Need script for Citrix workspace uninstallation
I want to uninstall Citrix Workspace on some machines that have different versions. Please suggest a script that can help me achieve this goa
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…
How to Exclude a User from Auditpol - Discovered a possible bug with auditpol.exe
Hello all, I am trying to exclude a user from being audited on a Server 2019 Domain Controller. Using the following: Auditpol /set /user:adm.svc.acc /subcategory:"Logon" /Success:disable Reason for doing so, it's a service account that is…
White screen while trying to use Azure cloud shell
Azure powershell is a white screen that i cant do anything with. I Disabled extentions for safari, deleted cache data, and reloaded the page, Safari is the newest version. I need to be able to use Azure Powershell, what could be the problem?
Assign Calendar Privileges with Powershell
Im trying to assign Calendar Permissions to Owner and Member, Owner should have read&write while members only read. This is the code i came up with. the error i got was the following: Specified method is not supported. Status: 400…