Getting error while running the command on AZ powershell
While running microsoft graph commands on azpowershell getting this error
How can I calculate a persons age in Powershell
I very new to Powershell so appologise for probably asking a very basic question. I need to write a script to show how old a member of staff is in years and months. I need to convert a string that is in the format of "25-09-1973" to a date…
Issue with PowerShell script copying files between blob containers
Hello team, I am experiencing issues with a PowerShell script that copies files from one blob container to another. Specifically, I am trying to run this script from a function app. Can anyone assist me in resolving this issue?
![](https://techprofile.blob.core.windows.net/images/8DR0o1q680GHEYJ9ZNB_KA.png?8DA826)
How to expand PowerShell MS Graph Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject Microsoft.Graph.PowerShell.Models.MicrosoftGraphVerifiedPublisher?
Using PowerShell for Microsoft Graphs, how can I expand or convert the below attributes or columns? CreatedOnBehalfOf : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject VerifiedPublisher :…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
Need Help Disabling Windows Firewall Profiles via PowerShell for Ansible Automation
We have a requirement to set Windows Firewall profiles to "off" using Ansible Automation. Despite various attempts, the profiles reset/enabling upon reboot due to Group Policies. I am not able to disable the windows firewall profiles through…
![](https://techprofile.blob.core.windows.net/images/pxpvXcfHUkGs_31NHERBiA.png?8D83C7)
Can't use powershell to connect to Azure AD with a Google authentication account
Hi there, I'm trying to connect my Powershell to Azure AD. After inputting connect-azuread and inputting my account in the pop-up browser, there will be an error message from Google at last. I tried to use the credential from a successful command…
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…
Ways on how to manage azure Devices and Find device location per office
Hi, Im on creating some automation to delete all stale devices in Entra ID (not in intune) and i need to find a way to find each device location so i can separate them every office. are there any ways to check the device location or physcial location? im…
Disable "Allow this computer to turn off this device to save power" for I2C HID device solely
My laptop just randomly disabled my touchpad and I found out that the checkbox: "Allow the computer to turn off the devices" may be the problem. So I think the powershell script or registry could turn that checkbox off on startup, but don't…
After federating a domain, it takes 15 minutes for Azure to reflect that
When I run this command: $domain = "contoso.com" Set-MsolDomainAuthentication -DomainName $domain -FederationBrandName "SethCall" -Authentication federated -IssuerUri $issueruri -ActiveLogOnUri $LogOnUrl -PassiveLogOnUri …
Parallel copy of files on multiple servers
I want to copy all the files in a folder called test from ServerA to multiple Servers. I am using command like below, however it is not copying the files: Executing the below script from ServerA $serverlist = New-PSSession -ComputerName ( Get-Content…
Connect-ExchangeOnline started giving a strange error
Hello all, I created a script in powershell to collect mailbox information from our tenants on Exchange Online. It stopped working somewhere aroung the 1st of May. Im going to explain what my process is in some detail and when the error occurs. There are…
How to enable schedule patching on azure vm using powershell
I am using below command as per documentation https://learn.microsoft.com/en-us/azure/update-manager/prerequsite-for-schedule-patching?tabs=new-prereq-powershell%2Cauto-portal&WT.mc_id=Portal-Microsoft_Azure_Automation#code-try-4 But it is asking to…
Need to add line for reboot
Hi, I have a script that is working, but I need to add a line to restart the machine after 8 hours and it should give a notification as well. I will deploy this script using Intune through the Win32 method, so I also need to know what detection logic to…
Can I get the Powershell script to block the users sign-in and remove the licenses and convert the usermailbox to sharedMailbox and assign the sharedmailbox to someone else by using script in M365 by using input file?
Can I get the Powershell script to block the users sign-in and remove the licenses and convert the usermailbox to sharedMailbox and assign the sharedmailbox to someone else by using script in M365 by using input file?
![](https://techprofile.blob.core.windows.net/images/mmZjVX7E9E2norR_QCwc-w.png?8DC8CC)
Script to loop through a CSV file and to exit loop once all users have been licensed in M365
Hi all, I have an input CSV file like this: UserPrincipalName user1@test.com user2@test.com When I license these users in M365, it can take a couple of moments for the Get-MSolUser "IsLicensed" attribute to be set to "True". I would…
![](https://techprofile.blob.core.windows.net/images/mmZjVX7E9E2norR_QCwc-w.png?8DC8CC)
Enable applocker powershell commandlets in Home versions of Windows
According to this site, I should be able to apply local applocker polices on Home versions of Windows. I cannot get the Set-AppLockerPolicy command to run in powershell. I am running Windows 10 Home Version 22H2 (OS Build 19045.4529). I have applied…
Move mails from one folder to another folder via powershell script for all mailboxes
Hello, Recently, I have done a cross tenant mailbox migration by manually export and import pst procedure. Now, I have been facing an issue. My all mails were imported in outlook on the web under TargetRootFolder which created by System. Now, I want to…
powershell script to check all Entra ID Role Assignment Members
Hi, Im checking on how i can manage to get all members of Entra ID Role Assignment and Administrators. when i try to export the file only the Scope with Directory is exported, not all members are exported. When i tried the Get-AzureADDirectoryRoleMember…
![](https://techprofile.blob.core.windows.net/images/a1395d6d60e64acc8c1bfc104037f1aa.png)
Cannot run New-AzActionGroup after New-AzActionGroupReceiver
Hello, I am trying to create a new action group using PS. The group will use webhook. To achieve this I need to create an action group receiver. Code: $ActionGroupShortName = 'Alert' $ActionGroupReceiverName =…