Setting PIN Complexity through a BAT script
Hello my company does not own an AD, so when we configure new workstations, we've got to set Group Policies manually, I've been working on a script to automate the task, but I am stuck with setting my pin complexity settings in my script. reg add…
How to search all folders in OneDrive for PDF containing a word?
I need help with listing full pathname of PDF files containing a word. Get-ChildItem -Path C:\Users\Me -Include *.pdf -File -Recurse -ErrorAction SilentlyContinue | Select-String -pattern “Tax” | group path | select name | Out-File -FilePath…
How to find when rule was created in Office 365 Outlook
One of my clients email was compromised and a rule was created. Want to find out where the user was located when accessing the account and when the rule was created.
Running Powershell Scripts Across Tenants using Az Automation and System-Assigned Managed Identity
I have some Exchange Online PS scripts that I'm running in my own tenant using system-assigned managed identity to avoid interactive and certificate based sign in. Is it possible to run those scripts in another tenant? Say, for example, a customer wants…
How can I Uninstall MS SARA for Enterprise via PowerShell?
Hello, I am looking for a way to uninstall MS SARA for Enterprise via PowerShell. I have looked at the SARA for Enterprise documentation, and it does not give any guidance on this matter. Note: I am an IT Technician trying to automate our PC build…
Extraction of IAM roles in Azure via script
Hello All, is there a way to get all Azure IAM role assignment with also the details of the groups? I explain better: if I go to the Azure portal and click download role assignment I get a list of users and groups with the pertaining role. I would like…
How to generate a working SAS token for Azure Blob Storage via Powershell 5.1 native code.
Despite following the documentation found here: https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas, I am unable to generate a working account SAS token for use with Azure Blob Storage. Particularly, one which authorizes writing…
Unable to fetch disabled users across subscriptions
Hello Team, I'm trying to get list of disabled users across all subscriptions under our tenant. But when I run the below script it is not fetching the data instead loading VS code. If I run Get-disabled users command it is giving the list of disabled…
Unauthorized when using Add-DistributionGroupMember to add user to Exchange managed Distribution
I followed the steps in this article https://learn.microsoft.com/en-us/powershell/exchange/connect-exo-powershell-managed-identity?view=exchange-ps&WT.mc_id=M365-MVP-9501 to use my Azure Automation System managed identity to connect to ExchangeOnline…
Add extra authetication methods in Entra
Hi , In Entra , if i filter for a user -->Authentication method , i can see the user is capable with 2 authntication methods . I use Powershell to filter , since Entra won't show which is availble . ExtensionData …
I need help with PowerShell script to disable search indexing on a list of sites and subsites.
I have cobbled together this script to disable search indexing of sites listed in the sites.txt file, but I'm having trouble figuring out how to apply the same change to all subsites under the sites.txt list. Any PowerShell SMEs who are familiar with…
/powercfg Module to sum up all the Power consumption (Battery and AC)
powercfg /spr /output "c:\sleepy.xml" /xml /duration 1 Is there a better way to collect all the used Powerinformation and sum the mW number? My Goal is to collect the total Powerconsumption (Battery and AC Usage) in total. The reason behind it…
Not able to create Virtual Network Rule for MySQL flexible server using powershell code
Hello Team , Actually we have IAC infracture to deploy MYSQL DBaaS services. However the existing terraform modules now has been depreciated and we are trying to upgrade the latest terraform module to deploy the same. Now the issue is:- In the existing…
Connect-PnPOnline : The term 'Connect-PnPOnline' is not recognized as the name of a cmdlet. Cant get around this
Hi All i have been going over this for the last few days but i cant get PnP.PowerShell to work on my SharePoint site. BTW: i am the owner and administrator of the SP site. I can install PnP.PowerShell (as an administrator) but when i …
Is there any way to scale up the azure webapp vertically (change app service plan) automatically?
Is there a way to automatically scale up an Azure Web App vertically (by changing the App Service Plan)? Has this functionality been completely removed by Azure? I attempted to use an Azure Automation Account with a PowerShell Runbook, but encountered…
Storage Spaces can't remove disk
W10. Storage pool composed of four drives. I had two drives get degraded, in my storage pool, and had to replace them. The dead drives are now marked as "retired" , and has been physically removed, but I can't actually remove them from the…
How to fix the following error
Following a lab from Cyberinsight for creating private dns zone which has been created and it showing in virtual network links. Next step is to create a virtual machine to test the configuration, but I'm getting this error, " New-AzResourceGroup: A…
How to export Distribution List & its nested Distribution Lists' members to CSV file
Hello, We want to export all members of one large distribution list and its nested distribution lists. How can we do that? Regards, Raj
Custom Scheduling Intervals for Intune Proactive Remediation
Hi everyone, I’ve been using Intune’s proactive remediation feature and noticed that the scheduling options are limited to intervals like once an hour. However, I need more granular control, such as scheduling tasks to run every minute or every two…
How to enable cloud kerberos via powershell
I am looking for the proper scripts to install cloud kerberos to use for WHFB in a Hybrid environment. I have found a few but none are the same. Also are there any security impacts to do this for already established on prem certs or…