powershell
Microsoft365DSC
powershell | Microsoft365DSC | |
---|---|---|
29 | 10 | |
608 | 1,415 | |
3.9% | 4.5% | |
9.9 | 10.0 | |
3 days ago | 7 days ago | |
C# | PowerShell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
powershell
-
“In a Month of Lunches”-Like for Graph for Powershell?
Here is my Module that includes my functions on Azure Extension Properties. It uses the PnP.PowerShellmodule instead of the Graph SDK.
-
Runbook only runs for 3 hours then throws: The process cannot access the file Microsoft.ApplicationInsights.dll' because it is being used by another process.
# Use system-assigned managed identity # https://mmsharepoint.wordpress.com/2023/05/04/authentication-in-azure-automation-with-managed-identity-on-sharepoint-and-microsoft-graph/ # https://pnp.github.io/powershell/articles/azureautomationrunbook.html # Connect to multiple sites # https://github.com/pnp/powershell/issues/1748 # https://robdy.io/multiple-pnp-connections/ # Prod $SourceStr = Get-AutomationVariable -Name 'SharePointSourceFolders' $Target = Get-AutomationVariable -Name 'SharePointTargetFolder' #$SourceList = $SourceStr.Split([System.Environment]::NewLine,[System.StringSplitOptions]::RemoveEmptyEntries) $SourceList = $SourceStr.Split("\n") # Commmon Foreach($Source in $SourceList){ Try{ Write-Output "Source Folder: $Source" #Dev #$SourceSiteConnection = Connect-PnPOnline -Url $SourceSiteURL -Interactive -ReturnConnection #Prod $SourceSiteConnection = Connect-PnPOnline -Url $SourceSiteURL -ManagedIdentity -ReturnConnection #Get the total Size of the folder - with versions $SourceFolder = Get-PnPFolder -Url $Source -Includes ListItemAllFields -Connection $SourceSiteConnection $SourceFolderSize = $([Math]::Round(($SourceFolder.ListItemAllFields.FieldValues.SMTotalSize.LookupId/1KB),2)) Write-Output "Source Folder Size: $Source : $SourceFolderSize" $job = Move-PnPFile -SourceUrl $Source -TargetUrl $Target -NoWait -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination -Force -Connection $SourceSiteConnection $jobStatus = Receive-PnPCopyMoveJobStatus -Job $job -Wait -Connection $SourceSiteConnection if($jobStatus.JobState -eq 0){ Write-Output "Job finished" $jobStatus.JobState $jobStatus.Logs $SourceFolder = Get-PnPFolder -Url $Source -Includes ListItemAllFields -Connection $SourceSiteConnection -ErrorAction SilentlyContinue if($SourceFolder){ Write-Output "Second Try because folder: $SourceFolder.Name remains" $SourceFolderSize = $([Math]::Round(($SourceFolder.ListItemAllFields.FieldValues.SMTotalSize.LookupId/1KB),2)) Write-Output "Second Try Source Folder Size: $Source : $SourceFolderSize" $job = Move-PnPFile -SourceUrl $Source -TargetUrl $Target -NoWait -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination -Force -Connection $SourceSiteConnection $jobStatus = Receive-PnPCopyMoveJobStatus -Job $job -Wait -Connection $SourceSiteConnection if($jobStatus.JobState -eq 0){ Write-Output "Second TryJob finished" $jobStatus.JobState $jobStatus.Logs } else{ Write-Error "Second Try Status: $jobStatus" } } } else{ Write-Error "$jobStatus" } } catch { Write-Error "An error occurred: ${Source}: $_" } # Dispose the connnection variables $SourceSiteConnection = $null Write-Output "Sleep for 2 seconds" Start-Sleep -Milliseconds 2000 }
- Using Batch with Sharepoint Powershell
- PowerShell for OneDrive
-
Access to Another User's OneDrive (GraphAPI and Microsoft.Graph issues)
Reading - https://github.com/pnp/powershell/issues/277
- My boss won’t allow linking our sharepoint site onto file explorer and it’s driving our users insane.
- SharePoint Website in andere Umgebungen verschieben.
-
Error while extracting Sharepoint links with Python
The PnP PowerShell module is the one I would recommend for accessing SharePoint: https://pnp.github.io/powershell/
- Setting up a flow around an.xlsx file located on onedrive, is it dumb?
-
how to sync folders from SharePoint to teams
PnP is the module - it is amazing. The SP cli is a painful (but powerful) nightmare. https://pnp.github.io/powershell/
Microsoft365DSC
- Intune with DevOps - dev/test/prod tenants
-
Did you know that you can backup your Intune (Endpoint Manager) in M365, for free? And that MS don't back it up for you?
Or MS' own DSC solution!
- Any way to automate creation of Intune policies?
-
Does Microsoft365 DSC support Power BI for exporting config
M365 DSC documentation has a list of 'resource list' at https://github.com/microsoft/Microsoft365DSC/wiki/Resources-List but this list does not translate to a few modules we have: Defender for Identity, Power BI, Azure information protection, Defender for cloud apps, defender for O365. Are these M365 components/features supported by M365 DSC, if so under which resources? are there any gotcha's when trying to use DSC to export the config and use it on another tenant?
- As sysadmin I use many PowerShell scripts on the daily basis. To make them more accessible, organized and easy to execute I created a tool for myself using .NET 5. Decided to share tool with community, may be it might be useful for someone
-
Anyone using Micrsoft365DSC for 365 automation / documentation ?
Microsoft365DSC is an Open-Source initiative hosted on GitHub, lead by Microsoft engineers and maintained by the community. It allows you to write a definition for how your Microsoft 365 tenant should be configured, automate the deployment of that configuration, and ensures the monitoring of the defined configuration, notifying and acting on detected configuration drifts. It also allows you to extract a full-fidelity configuration out of any existing Microsoft 365 tenant. The tool covers all major Microsoft 365 workloads such as Exchange Online, Teams, Power Platforms, SharePoint and Security and Compliance.
Links about: https://microsoft365dsc.com/ https://github.com/microsoft/Microsoft365DSC DSC Community Microsoft 365 Virtual Marathon - Microsoft365DSC, The next best thing since sliced bread
-
3.1.13 Employ cryptographic mechanisms to protect the confidentiality of remote access sessions.
If handling CUI (CMMC ML3 or higher), you'll need to demonstrate practice and process maturity, take a look at Microsoft365DSC https://github.com/Microsoft/Microsoft365DSC. Combination of detective controls to implement: generate alerts if the configuration that requires encryption changes/generate logs providing positive verification that the configuration is in place; perform automated audits of the configuration on a regular schedule to validate that the configuration is in place. In both cases, retain the evidence (log files, alerts, DSC exports, etc.) so assessors can see that the configuration has been in place and that oversight is continuous and proactive.
-
How to go from helpdesk to Microsoft 365 Administrator
Use https://github.com/microsoft/Microsoft365DSC to capture your environment or making changes to it to, commit to a public repository and add to your resume.
- Managing Microsoft 365 At Scale
What are some alternatives?
Office365-REST-Python-Client - Microsoft 365 & Microsoft Graph Library for Python
ComputerManagementDsc - DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
smletsexchangeconnector - SMLets PowerShell based Exchange Connector for controlling Microsoft System Center Service Manager 2016+
IntuneManagement - Copy, export, import, delete, document and compare policies and profiles in Intune and Azure with PowerShell script and WPF UI. Import ADMX files and registry settings with ADMX ingestion. View and edit PowerShell script.
PnP-PowerShell - SharePoint PnP PowerShell CmdLets
ImportExcel - PowerShell module to import/export Excel spreadsheets, without Excel
ExchangeAnalyzer - Exchange Analyzer - Checks Exchange Server 2013 or 2016 organizations for common configuration issues and recommended practices.
SP-Server-Workflow-Scanner - This workflow scanner mimics the SPO Modernization scanner functionality, in relation to the workflow scan reports. It can be run on SharePoint Server 2013 or 2016 to locate your existing classic workflows and provide information that will help you to prepare for a transformation to alternative solutions such as Power Automate. Developed by the Modern Work team from the Industry Solutions Delivery group at Microsoft.
EWS-Office365-Contact-Sync - Uses Exchange Web Services to synchronize a Global Address List in Office 365 to a user's mailbox
office365-cli - Manage Microsoft 365 and SharePoint Framework projects on any platform [Moved to: https://github.com/pnp/cli-microsoft365]
IntuneBackupAndRestore - PowerShell Module that queries Microsoft Graph, and allows for cross-tenant Backup & Restore actions of your Intune Configuration.