Deleting Storage Account Pending Migration to SRP in Powershell
After much research on these forums and online in general, I'm trying to run the following two commands in attempt to delete a storage account that is pending migration to SRP: Move-AzureStorageAccount-Abort -StorageAccountName…
Can someone explain to me how to Get Mailbox folder permissions in recoverable items use PowerShell? Its possible are not
Get-MailboxFolderPermission -Identity " testid@223.microsoft.com\Recoverable Items"
Azure Automation : Az commands not recognized anymore using powershell 7.2
Hello, Since May 1, all my runbooks stopped working with all Az commands not recognized anymore. It was working perfectly for many months. All my runbooks are using powershell 7.2 Please help
Get-EXOMailbox -> How to obtain all mailboxes with pagination
Hi, I am using cmdlet Get-EXOMailbox -resultSize unlimited. But this return a lot of data and it take a lot of time. I would like to use some skip or nextLink but it is not working. I tried this: Get-EXOMailbox | select-object -Skip 10 -First 10…
File System Ownership problems with USB hard drive (Windows 10, Windows 11, Seagate External USB Drive))
I have a Seagate external USB hard drive that I am using to back up photos. I am having a recurring problem with this drive, that when I use it on a new computer, I get a "access denied" error, that can be fixed by running the takeown command…
How to onboard On-premise Windows Servers on Azure Arc on scale using PowerShell (PSSession)
We are planning to onboard our on-premises Windows Server (lowest version is 2012 R2) to Azure Arc on a scale (Approx. 400 Servers). We downloaded PS script from Azure Arc and ran from one of the servers to other remote servers using PS Session to…
How to Get the Folder and all Sub-Folders GUIDs using Power Shell
I have a request to provide a list of sub-Folder GUIDs. I can generate one Folder GUID from this script, but I need the sub-folders within it. Can you assist with a script that will provide a list of sub-folder GUIDs? Cheri #Variables $SiteURL =…
powershell to get all users and their managers recursively
I am looking to pull all Active Directory users and their managers all the way up to the chain. I get how to do get-aduser -filter * -properties * | select name, manager export-csv -path "csv path" I also get: $Users = Get-ADUser -filter *…
Using Get-MgUser to query on multiple -Search criteria
I am attempting to replicate a Get-AzureADUser command using Get-MgUser. The previous command (Get-AzureADUser -Top 5000 | Where-Object {($.AccountEnabled -eq "True") -and (($.CompanyName -eq "CompA" -or $.CompanyName -eq…
How to use ForEach-Object -Parallel in Azure Devops Pipeline Agent.
I want to use a PowerShell script which has below cmdlet. When I tried to use MS Hosted Pipeline agent with Parallel feature I'm getting "Parameter set cannot be resolved using the specified named parameters" error. How can I execute the…
How to trace unread emails status in specific time/date range for all users in Exchange On-prem
Hello Team, I have a case where customer request an assistant to trace all unread emails with specific time range in their organization. Is there any way to perform this activity at one go? Any PowerShell script I can find? Environment is Exchange…
Finding current Logged in user while running as System Object
Hello experts We are executing a PowerShell script that requires retrieving the following details: $fromDomain = $env:USERDOMAIN $computerName = $env:COMPUTERNAME $userProf = $env:USERPROFILE $username =…
Sending email though powershell with Microsoft Graph
I am using the following powershell script to test the functionality of email notification using Microsoft Graph. The emai script sends the email but in the inbox of the receiver I am getting a failed delivery. # Configuration $clientId = " " …
Is it possible to have a Power Automate Flow create a onedrive sync of a specific folder? Or PowerShell script?
Is it possible to create a Power Automate Flow to do the following: Click a button Power Automate form appears Form requests a name of a folder from the user. User enters an existing folder name in a SharePoint Online Library. OneDrive Opens if not…
Windows Powershell Suddenly pops and uses too much RAM. How do I resolve this?
Hi I'm Using an HP Victus Laptop. I have attached a screenshot of the device model and its information. Probleme : The Windows powershell sudennly pops up out of nowhere and it runs as a background process.To close it I have to use taskmanager to end…
export the output
Hi all i want to execute the below syntax on few servers and i have created a collection and added the Servers to it. When i execute manually from powershell i get the output but i want to export that output to a text file under c:\windows\Temp folder.…
Add exact upns
Hi All i have userprincipalnames in a csv file in the below format. usernames user1@contoso.com user2@contoso.com i want to add these users to AD group from powershell. if there are any other user with user1.a@contoso.com or user2.a@contoso.com. i…
Intune PowerShell - Enforce script signature check
Could someone explain the PowerShell script Enforce script signature check in the Intune Portal? https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/powershell There isn't any documentation or instructional piece available…
Cannot run "Connect-AipService"
This is the error I get after runinng these commands Update-Module -Name AIPService PS /home/aggie> (Get-Module AIPService –ListAvailable).Version Major Minor Build Revision 3 0 0 1 The following error I get when I run…
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…