how to fix this error : Method invocation failed because | [Deserialized.Microsoft.IIs.PowerShell.Framework.ConfigurationElement#bindings#binding] does not contain a | method named 'AddSslCertificate'.
Hello, I'm trying to automate the creation of the SSL certificate in the iis server i wrote a powershell that do this but i m getting this error : Line | 1 | Import-Module -Name WebAdministration -Force -SkipEditionCheck | …
How to schedule a script and setup email notification via Task scheduler or any other way?
How to schedule a script and setup email notification via Task scheduler or any other way? As I have gone through some blogs and online links but its shows traditional ways and seems "Email Send" option is deprecated in Task Scheduler. See…
How to test a synapse link service from a powershell script?
How to test a synapse link service from a powershell script?
Task scheduler cannot run script, works with the same user directly over powershell
Hello Everyone I am trying to run a Scheduled task, that should run a powershell script every evening. Even though I can run the script with the SYSTEM-USER without any issues, it does not work when I try to run over task scheduler. The script does not…
After applying a pnp site template to a SharePoint site, the homepage content is aligned in the center of the page
Using Invoke-PnpSiteTemplate to apply a template to a site causes the homepage content to be aligned in the center of the page. How can I avoid this? I want the content to be aligned to the left.
Powershell new user issue
Hello. I am currently trying to learn the basics of using Powershell with Office365 and one of those is creating a new user. I enter the below code as a test: new-msoluser -UserPrincipalName "HYang@mirador.com" -DisplayName "Harp Yan"…
How to find user's Downloads folder in PowerShell?
There are a number of posts on the web saying to effectively concatenate the expansion of %USERPROFILE% and "\Downloads" to locate the Downloads special folder. That is horribly broken because a) it's not localized, and b) users can change the…
How to load assembly path in the new runtime experience in Automation Accounts' runbooks?
We have a runbook that we use to log to Application Insights. We use it for making logs both from Azure and Hybrid workers. In hybrid workers the logging works correctly, but in Azure it fails with Cannot find type…
no license file found for appx bundle
I am trying to install appxbundle, the drivers are installed correctly. But during the appxbundle installation it is throwing the above error.
Using Powershell is there a way to find if a SharePoint Online site has a retention policy applied to it.
I am working on an automation and have found the option to exclude a SharePoint site from a compliance retention policy What I am looking for is to create a loop to check if the site has had the retention policy removed. So really just a cmdlet that…
Get all the windows update and put in to the ciminstance
I have to get all windows update to put inside ciminstance, i already try using this script $wmiCustomNamespace = "Get_Update_SCDA" $wmiCustomClass = "W32_Updates" $classExists = Get-CimClass -Namespace root\$wmiCustomNamespace…
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…
How to Correctly Find the Downloads Folder in PowerShell?
There are a number of posts on the web effectively saying to concatenate %UserProfile% and "Downloads" in order to find the path to the Downloads special folder. That is just wrong because a) "Downloads" is not localized, and b)…
Powershell script needed
closed.....
Automating the Client Secrets rotation using KeyVault or any methods before the expiry date?
I need to rotate the Client Secrets in my existing subscriptions before the expiry date. How can I achieve it for multiple subscriptions when using the suggested method ttps://learn.microsoft.com/en-us/azure/key-vault/secrets/tutorial-rotation? Can I…
How to unenroll windows device from Intune using PowerShell?
Hello Experts, We have looking for some PowerShell script or command to unenroll the Windows device from Intune without user interaction. We are trying to enroll the device using the graph api query. we have deleted the device object from the managed…
Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1
Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…
Partner center - automation to add security group to relationships
Hello, I would like to automate the ways we onboard our customer in partner center. When one of our customer accept the request, we are adding some security groups in the relationships with different Entra delegated roles (Under the tab "admin…
Powershell - Enable Bitlocker & Create recovery txt file output network directory
Hello, I have been searching to try and find a PowerShell set of commands or script to enable bit locker on remote machine and save the text recovery file to a UNC network path. I do not want to lock requiring pin or text to start the PC; just to save…
Powershell error while connecting with exchange
Hi Team, Good day. Getting error "Content within this application coming from the website listed below is being blocked by Internet Explorer Enhanced Security Configuration." while running (connect -exchangeonline) command in…