SharePoint Online - PnP PowerShell - Sharing Links
Hi MS Q&A, Seeking advice and information if there are any PnP PowerShell cmdlets (not CSOM) available to identify existing Sharing Links in use similar to gaining similar output from the Settings > Site Usage > Shared with External Users…
Unable to install IIS on Server 2019 DC error 0x800f081f
I`m getting this error: I tried the following commands: Microsoft Windows [Version 10.0.17763.3650] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator.WIN-ONA542MGLKP>dism /online /enable-feature…

What is the alternative tool for RSAT for MAC machine?
Hi, We want to install powershell active directory , for that we need Remote Server Administration Tools, Since it is available only for Windows, what is the alternative tool which we can use for RSAT?
How to add LPR port manually?
Hi I'm trying to find a way to add a LPR printer port via PowerShell. The add-printerport creates standard TCP/IP port only. Basically what this Ok button does in the background I'd like to know. Figured so far, that it creates a bunch of…
get list of AzureDirectory roles that assigned for a specific user by powershell
Hi Support I would like to get a list of AzureDirectory roles that assigned to a specific user by powershell .. i tried many commands but keep getting the error : Get-AzRoleAssignment -SignInName "xxxxx@Anonymous .com" Get-AzRoleAssignment :…
4 keywords - Azure CLI, Azure PowerShell, Azure Cloud Shell and Bash
Hello everyone, Someone please explain why do we have 4 options in Azure cloud for any scripting? Also explain me the differences between the four options as shown below. 1. Azure CLI, 2. Azure PowerShell, 3. Azure Cloud Shell 4. Bash Thanks
How to get the serial number of the monitors using Powershell?
After a lot of research, try and error, I got a code that could get as close as possible to the monitors serial number but not the actual serial number. $Monitors = Get-WmiObject WmiMonitorID -Namespace root\wmi $LogFile =…
windows terminal中如何更改编码格式为utf-8?
windows terminal的默认编码格式为gbk,编译一些utf-8文件的时候会出现乱码,如何把windows terminal的默认编码格式改为utf-8?
Invoke-WebRequest to a web server with self-signed SSL certificate
I have an IIS website hosted in a Windows 2019 server. I enbled HTTPS/SSL using a self-signed certificate. Now in a client machine, I wanto use Invoke-WebRequest to connect to the server using HTTPS and it fails wjith no doubt. Invoke-WebRequest: The…
How to set PowerShell eventlog max size in a GPO
Hi there. I need to set the PowerShell event log in Windows max size in a GPO. I allready got the Eventlog Max size for: Application, Security, Setup, and System down in the: "Windows Components/Event Log Services" area My google foo has…

Get-Certificate cmdlet failed
I need to issue a certificate for a server. I run these commands: $cred = Get-Credential Get-Certificate -Template Templatename -CertStoreLocation Cert:\LocalMachine\My -Credential $cred But after the second command I get this error: …

How to use ForEach-Object -Parallel in Azure Devops Pipeline Agent.
I want to use a PowerShell script which has below cmdlet. When I tried to use MS Hosted Pipeline agent with Parallel feature I'm getting "Parameter set cannot be resolved using the specified named parameters" error. How can I execute the…
Azure Enterprise Applications - Configure Notification Email for all apps with SSO/SAML Configuration
Hello, Is there a way to configure the Notification Email Address for all Azure Enterprise Applications with an SSO/SAML Configuration? We want an internal sysadmin distribution list notified of all expiring SAML certificates, but this DL was not…
Check the EnableAIPIntegration and EnableAutoNewsDigest Values using PnP
Hi Experts, I was setting the values of EnableAIPIntegration and EnableAutoNewsDigest on the Sharepoint Instance using the Set-PnPTenant cmdlet and I am using Set-TenantSite cmdlet to change -ExternalUserExpirationInDays. But then I also want to check…

SharePoint online: Get permission from each document folder by PowerShell via CSV file
Hi, I'm looking for solution on following. I want to get permission from a document library the folder and subfolder with permission settings and want it as CSV file output. During searching, I found this script, but it doesn't include the…
extract .zip files from multilple locations with Batch or Script file
I have a bunch of folders that contain .zip files. is it possible to run a batch that will search for zip files in multiple folders and automatically unzip them in the parent folder?
Update Micorosoft Store and Store Apps with command line?
Hi To update Microsoft Store and Store Apps, I navigate to the Store and select "Get Updates", like above screenshot. Question: Is there any possibility to achieve the same with Command Line /Power Shell or DISM?
Windows Subsystem for Linux
Hi All I have installed Windows Subsystem for Linux on Windows Server 2019. The installed version is Ubuntu 22.04.1.7.0 When I click on WSL, it opens successfully. However, when other users click on WSL, nothing happens. They are local administrators on…
WinGet.exe upgrade --all -Exclude
How to exclude the list of apps [third-party application, MS applications, and MS KBnumbers] while running winget upgrade -all commands. Is there any parameter to exclude any application? It will be appriciated
What are the steps and procedure to use gMSA as the Windows Server Service Account?
After creating the gMSA using the below PowerShell, how can I successfully replace the services in all of my Windows Server Application servers? New-ADServiceAccount -Name New-gMSA -DNSHostName Mydomain.com -PrincipalsAllowedToRetrieveManagedPassword…

