convert ps1 to bat
Hey, Is this .ps1 script: Get-ScheduledTask -TaskPath "\Microsoft\Windows\WindowsUpdate\" | Disable-ScheduledTask Get-ScheduledTask -TaskPath "\Microsoft\Windows\WindowsUpdate\" | Unregister-ScheduledTask -Confirm:$False Exactly the…
PowerShell
Error in the below code
Hi All, Could you identify what is the error in the below code. wget…
PowerShell

Powershell Script
I have powershell script to get defender status for all servers using below command. Below command was successfull if I run the script manually but if we run this script using schedule task the script is running but no any result. Anyone know…
PowerShell


Find Amortized Cost for Azure resources via PowerShell
Hello: I am trying to collect cost for Azure resources via Powershell. I have a script, but recently realized I am collecting actual, but not amortized cost. That means if any of my resources covered by Reserve Instance and/or Savings Plan I do not…
PowerShell
⚠️Unable to enable the Real-time Protection in Windows Security
Microsoft Windows [Version 10.0.26100.4351] (c) Microsoft Corporation. All rights reserved. C:\Windows\System32>winmgmt /salvagerepository and WMI repository is consistent C:\Windows\System32>"C:\Program Files\Windows…
PowerShell
PowerShell Script Not Running from Task Scheduler
Hi All, I've created a short powershell script to check the following and send an email notification if any of these conditions are met: system rebooted in the last 'x' mins. zohoworkdrive background process is not running. Z: drive is not mapped or…
PowerShell

Signed scripts in SCOM.
Hello everyone. I have SCOM 2016. On the servers for PowerShell scripts, the Execution Policy is set to All Signed. As I see it, SCOM sometimes creates temporary PowerShell scripts for checks itself, but they are not executed because they do not have a…
Operations Manager
Microsoft System Center
PowerShell

"Activate" function with new-mgteam
We create teams for our school using Powershell. We used to use the Powershell command new-team for this. Now we use the Graph module with new-mgteam. Since we created the teams with new-mgteam, the teams no longer need to be activated by an owner, but…
Microsoft Teams
Microsoft Graph
Microsoft Teams Development
PowerShell
PowerShell - Connecting to ExchangeOnline - Can no longer add/enable Remote Routing
First time posting, Last year I could use the following command on an account without issues (we are a hybrid migration of O365): Enable-RemoteMailbox TEST -RemoteRoutingAddress ******@OurDomain.mail.onmicrosoft.com -PrimarySmtpAddress…
PowerShell
WSL.exe Crashes in Administrator PowerShell with Offline Windows PC
Hello, I'm encountering an issue with WSL (Windows Subsystem for Linux) on my offline Windows 10 PC (Version 21H2, OS Build 19044.1288). When I run wsl from PowerShell (non-admin) it works fine, but when I run it from PowerShell as Administrator, it…
PowerShell
Using AZ CLI in a PowerShell Function App
I am trying to use the AZ CLI in a PowerShell Function App to automatically create a new Subscription each time a new client registers to use my services. It looks like I should be able to do it however, it is just not working. I have tried different…
Azure Functions
PowerShell
$PSVersionTable.PSVersion command not working
Powershell cloud command $PSVersionTable.PSVersion is not working This question is related to the following Learning Module
PowerShell
When i'm trying to Connect-IPPSSession it is giving error
It is giving error WARNING: Your connection has been redirected to the following URI: "https://ps.compliance.protection.outlook.com/uc/PowerShell-LiveId" Connect-IPPSSession : Connecting to remote server ps.compliance.protection.outlook.com…
PowerShell
Unable to publish PBIX via REST API (400 Bad Request)
Hello! My name is Yevhenii, I am a BI developer currently exploring publishing Power BI reports using the REST API. I have encountered a persistent issue: I am unable to publish PBIX files via the REST API (POST /imports returns 400 Bad Request), even…
PowerShell
I want to bulk insert from blob-to-blob. where I am having files names text files
function Copy-AzureBlobWithFileList { param ( [string]$SourcePath, # e.g. https://account.blob.core.windows.net/container/folder?SAS [string]$DestPath, # e.g. https://account.blob.core.windows.net/container2/folder?SAS …
PowerShell
Utilizing Remove-MgGroupMemberByRef to remove Specific user only from A group?
Hi People, After reading: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.groups/remove-mggroupmemberbyref Due to the lack of examples and documentation, I need some help using the Remove-MgGroupMemberByRef cmdlet. I wanted to remove…
Microsoft Graph
PowerShell
Microsoft Entra ID


BAT Files No Longer Open on Double-Click After Upgrading to Windows 11
After upgrading to Windows 11, .bat files no longer execute on double-click. Instead, nothing happens. Prior to the upgrade, these files opened and executed normally in Command Prompt. Here's what I have tried: Attempted to set cmd.exe as the default…
PowerShell

Run Powershell Scripts in Notepad++
Hi, I would like to execute/run PowerShell Scripts from Notepad++ See article below, https://itecnote.com/tecnote/r-how-to-execute-a-powershell-script-from-notepad/ Is this something that can be achieved ? Or it's not supported....
PowerShell
hyper v in windows powershell
i want to install hyper v from windows powershell for gaming.in control panel,in was not showing
PowerShell
Activate Azure benefit license for Azure Arc machines via Powershell or Azure Policy
Hi folks, is there a way to enable the Azure benefit license (Software Assurance) via Azure Policy or via Powershell? I only found some cmdlets/Policies for Azure Virtual Machines but not for Azure Arc Machines. Thanks