Sometimes, it can be useful to execute an Application / Package in the SCCM Software Center using Powershell.
For example, if an application is only available, not required, in the deployment and you want to install several package without logging to the computer.
Unfortunately, there is no built-in powershell cmdlet to do this. We must call method with a specific dll.
When you want to use DFS (Distributed File System), and get benefit of the replication, you have to create a shared folder and install features on each server. It can be time consuming to do this for a lot of server.
To create it quickly, you can create a package on SCCM with a Powershell script, and deploy it to all of your servers.
Create shared Folder for DFS
You can find below a powershell script to execute :
Create a folder.
Share it with a specific group.
Install Windows Features to enable DFS Replication.