Variable with Word's Content.Text has differences from its' Set-Content'ed simple text file; contents handelted differenly by regex
$documentText = @" Frau Anna Mustermanowa Hauptstr. 1 48996 Ministadt per beA per Mail: [email protected] AKTEN.NR: SACHBEARBEITER/SEKRETARIAT STÄDTL, 2904/24/SB Sonja Bearbeinenko +49 211 123190.00 21.11.2024 …
Automating Daily Metric Collection and Storage in Private Azure Environment
I want to extract the metric values of VMs configured in the Azure environment and automatically save them as CSV files to a Storage Account on a daily basis. While my PowerShell script is working, I am facing difficulties in saving the data to the…
Guest access expiration report for SharePoint Online site?
Hi, In my tenant, Guest access expiration is set for 180 days. I need to generate report for a SPO site that how many guests' users already lost access and how many guest users going to lose the access in future. Is there a way to get this report using…
Get free/used disk space on all our VMs for reporting purposes
Hi, Within our corporate environment, we have hundreds of Windows Azure VMs deployed to users via Citrix DaaS. For monitoring purposes, we would like to see free/used space on C drive. The goal is to have a reports showing disk space status on C drive…
Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal
We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App and i get the error "Cannot call this API with…
Why is my "help" command in Windows 11 Home powershell not giving a list of other commands to use with the "helped command"?
I am learning how to use the PS and whenever I use the "help" cmd, it does not display other commands. My PS is shown in the first image, and my online course is shown in the 2nd. In the 3rd image, I have already tried update-help and the…
Writing a powershell script to add users from a csv to a group in Active Directory?
We are wanting to use a CSV file to bulk upload users to a certain security group. Some users in the CSV will already be in the group. Is there a good source to help write this powershell script?
Does verb 'pintohome' be fully disable since later version of win10?
I have a powershell script helps to pin some folder to Frequent Folder to quickly achieve them. It used to work well on win10. But recently i found it that the script will be fully stucked unless i kill the window or thread, but its still ok the do it…
Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal
We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App and i get the error "Cannot call this API with…
Microsoft Defender for Endpoint creates a large amount of Powershell Logs
Hello, we are using Defender for Endpoint and MS Sentinel. To enhance security, we would like to enable Powershell logging on all devices. But when we enable it, we get 10 times more logs than before. I analyzed the incomming logs and found out that…
Re-labeling Sensitivity labels quickly through powershell
I need a way to use powershell to change the sensitivity label of some files that have an old label applied to them to the current label I have for all files.
Help sideloading eappx file via powershell for multi users
I'm trying to sideload an encrypted appx (eappx) app via powershell. Add-AppxPackage -Path ./Appfile.eappx works fine. However it only installs the app for the current user. To install for all users on the machine I've seen suggestions to use…
Users with MFA: Enabled, Disabled, Enforced
I manage a Azure AD Does anyone have a PowerShell script that can help me get all users from Azure Active directory with MFA: Enabled, Disabled, Enforced Thanks for the help.
DBATools fails with network path not found error.
I want to use DBATools to get details of and configure my Always On cluster. I successfully installed DBATools, DBATools.Library, and Sqlserver modules and verify with Get-Module -ListAvailable. When I run Get-DbaAgReplica -SqlInstance…
Adding Shared Mailbox to the Outlook Application using powershell
Adding Shared Mailbox to the Outlook Application using powershell Open Microsoft Outlook click on file menu account settings select Email tab doubleclick on Email In Exchange Account settings select more settings Go to advanced add…
How to rename a large amount of photographs with Windows Powershell using exif data?
Hi to all, as in the subject I would like to ask for help on how to rename a large amount of photographs using Windows Powershell. Specifically I was currently using this string: " Get-ChildItem | Rename-Item -NewName {"IMG_" +…
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…
Assign S/MIME certificates (.cer files) to multiple Exchange Mailboxes using Set-Mailbox cmdlet and UserSMIMECertificate parameter
Hi all, I have a CSV input file which contains a number of mailbox PrimarySMTPAddress values e.g. PrimarySMTPAddress [email protected] [email protected] [email protected] I also have corresponding .cer (S/MIME Public certificates) stored on a file server for…
create external user
I would like to invite an external user via PowerShell. Can anyone help me with the PowerShell syntax for the required settings? I am mostly using the default settings.
create external user
Hi I would like to invite an external user via PowerShell. Can anyone help me with the PowerShell syntax for the required settings?I am mostly using the default settings.