Why can't I use Invoke-WebRequest twice?
Hi All, I need to rely on the first Invoke-WebRequest to piece together a URL for the second Invoke-WebRequest, but the second time is forcibly terminated. My Script: Import-Module -ErrorAction Stop…
How to get list of all attribute in AD
Hello, How To get list of all attribute in AD(default and custom attribute ) in csv file. Thanks Rich
How to launch Microsoft Edge to a specific Workspace?
How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch? Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that…
How can I get list of runbooks that uses a particular Database using PowerShell in a runbook
Hi , we have created plenty of runbooks to load data to our SQL warehouse. and the runbooks are keep increasing due to business need. we are in need of achieving particular task. that requires list of runbooks that is using the specific xyz database.…
Why "Request administrator consent" if it has already consented?
I would like to migrate my PowerShell reporting script from using MSOnline module to Microsoft.Graph equivalent. Whenever I launch Connect-MgGraph -Scopes "User.Read.All" I get stuck with the following Request administrator consent…
SCOM 2019 R2 Powershell script monitor not running
I have SCOM2019 and I have problems running my scripts in PowerShell. I can't find the website: https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379. Where can I find this Management-Pack. Error: Script or Executable Failed to run
How to retrieve CPU and memory metrics for all Azure App Services
I am trying to retrieve CPU and memory metrics (Max, Min, Avg) for all App Services in a specific Azure subscription: # Connect to Azure account Connect-AzAccount -UseDeviceAuthentication # Specify the subscription ID …
'Get-AtpPolicyForO365' is not recognized as the name of a cmdlet.
Get-AtpPolicyForO365 : The term 'Get-AtpPolicyForO365' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Using…
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…
Powershell Script to temporarily activate PIM with MFA?
Hello Everyone I am trying to write a script that temporarily activated a PIM Role to my account...the issue is, that my account is secured with MFA, so this does not work: $roleDisplayName = "License Administrator" $roleDefinitionID =…
Issue adding new owner to Outlook shared calendar
Trying to add a new owner to a shared mailbox as the option is not longer available in Outlook application. Using PowerShell command Add-MailboxFolderPermission -Identity sourceuser.ac.uk:\calendar\ma_test -User destinationuser.ac.uk -AccessRights…
issue fixed
issue fixed
How to automate turning off or suspending some Azure services to save money?
What Azure objects can we suspend or turn off outside business hours to save running costs? App Service: The app service implements the message compose experience in the team tab and the messaging endpoint for the bot. Service Bus: The individual…
Is it possible to programmatically select folders in a library from displaying or not in OneDrive
Good Afternoon, Does anyone know if it's programmatically possible to develop a script where it would be able to turn 'on' or 'off' (to make visible or not) the folders in a user's OneDrive sync from a SharePoint Library? As shown here: I suspect that…
Unlink OneDrive account from PC
Hi Team, Is there a way to automate the process of unlinking of OneDrive account? As for 1-2 accounts, we perform manual steps: open the OneDrive settings, go to the account tab, and click Unlink this PC. But for thousands Laptops/desktop we don’t want…
How to get the SQL Server version details (CU) install in sql server VM from cloud shell?
Hi, What are the options available to get SQL server versions(CU) install in SQL Server VM. THis is needed to maintain the wiki package for multiple vm across the multiple environment, I have tried $serverName =…
Windows Powershell and Visual Studio Running Extremely Slow
Hello, I work as an IT support engineer for my company and a user reached out to me saying that they have been experiencing issues with their VS code and Powershell commands running very slow. I recreated the same environment on my laptop, and I had the…
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…
How to execute System.Windows.Forms as ServiceNotification or DefaultDesktopOnly
We are working on the PowerShell to Pop out message forms to the user Accounts and we are using Add-Type -AssemblyName System.Windows.Forms to create the user interactive messages. We are currently using the SCCM to deploy the PowerShell script across…
How to download group report in MIM system. Using powershell command or is there other way to download the data.
Hello all, How to download group report. Including Displayed Owner, Owner, alias, Account Name, Display Name, Members. Is there powershell script? Thank you.