Powershell scripts in System Center Orchestrator 2022
Hi all, We are trying to move from SC Orchestrator 2012 to 2022 version. in previous version, we were using the Powershell integration Pack which allowed us to run PowerShell scripts in remote machines and use output of those scripts in runbook. Since…
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"; …
Run script on multiple users (using Excel table)
Hello everyone, im trying to build a PowerShell script that runs a command multiple times but with different URLs, but i cant quite understand how to build it. The point is to remove a user from the Share Point sites listed in the column D. So lets say…
Getting certificates details using Invoke-Command powershell gives error
Invoke-command -computername server1 -ScriptBlock { dir cert: -Recurse | Where-Object { $_Subject -like 'server1' }} Gives error The system cannot open the device or file specified. Please help on how to this.
Problems with managed identity and sharepoint
I have an azure function that creates sites in sharepoint. The problem is that after giving Sites.FullControl.All permissions under Microsoft Graph on the Managed Identity that the Azure function authenticates with, it creates the site correctly but when…
Azure Virtual Desktop Auto Shutdown and Power On
Hello All, We're currently managing a pool of 30-40 VMs, and to optimize our licensing costs with Microsoft, we're planning to shut down idle VDI VMs that haven't been used in over 8 hours. To automate this process, could you assist us with a PowerShell…
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…
How to get list of Reservations in Azure via Powershell that include remaining cost or cancellation fee?
I'm trying to use powershell or the Azure API to get a list of all of my reservations in USWest and USWest2 that are in a provisioned state of Succeeded (or not archived), along with their remaining cost like you can in the UI (see attached picture).…
In Purview,How to assign the glossary to the assets for bulk upload using script?
Hi, We have recently started using purview. One of the task we did is we defined our glossary and uploaded to the purview. Now we want to assign the glossary to the assets we have in purview. I am facing the issue with the payload and mapping step. …
About PS script
My requirements are My Azure AD users have company name attributes some have same names and some have different and some have no company name attribute Same company name atrribute users must see the calender of each other but different company name…
WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa
Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…
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. …
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 .…
TCP connect to (<ip address> : <port>) failed
Hello, On a new Win11 laptop, I can't succeed to connect a network drive to a File Share with PowerShell. Here's a table listing the context: StepWin10Win11Connected to Azure P2S VPNYesYesConnection methodPowerShellPowerShellResource group A / Storage…
ExchangeOnline Powershell - Get-QuarantineMessage -ReleaseStatus Requested: no results
I'm having a problem running a Get-QuarantineMessage Powershell script for ExchangeOnline in Powershell. My manager is able to run it connecting to the exact same account and get results. When I run it, I just get brought back to the prompt without any…
Use PowerShell to enable 'Send copies of group conversations and events to group members' on a dynamic O365 group
I have done quite a bit of researching and asking 'Co-Pilot' without any luck. Essentially, I want to do what the title says, which is: Enable 'Send copies of group conversations and events to group members' for the specified group using PowerShell. The…
How can I assign User Role Policy (Role Assignment Policy) to a Mail-enabled security group using PowerShell?
I am trying to remove Forward option from OWA for our corporate users. I can create a new role and role policy can assign it to one single user or multiple users one by one, but I do not want manual process. We have hundreds of users, so I want to assign…
How do I upgrade multiple Windows 10 Pro users who have an Office 365 Enterprise license to Windows 11 Enterprise without reimaging the computer
How do I upgrade multiple Windows 10 Pro users who have an Office 365 Enterprise license to Windows 11 Enterprise without reimaging the computer?
PowerShell issue?
I am currently studying Powershell and in the book I am using it gives me this command to run........PS Cert:>GCI -Recurse > C:\a.txt; notepad.exe a.txt.....yet when I run this command the file opens up and it is blank. A little help please.
Effect of MC792991 Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals
Hello Team, Greetings! This is Joni. Due to the Microsoft post as follows, a partner need to address how this affects to end users' resources and workloads. Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals…