Powershell library for common DNN tasks to be used locally on the server
Powershell library for common DNN tasks to be used locally on the server
The intent for this project is to help quickly create a DNN environment with content that can be used for testing.
Adding users and roles and spreading those users across those roles can be done with this library easily and quickly.
This dll can be used as a Powershell module as follows:
import-module C:\Path\to\Dnn.Powershell.Local.dll -DisableNameChecking
The included commands will then be available to use in Powershell:
For help on commands use Get-Help like so:
get-help use-dnn -full
All commands interacting with DNN require you to set the environment to the right DNN installation. This is done using:
Use-Dnn C:\Path\to\YourDnn
This will look for a web.config at that place and query SQL server from the connection string found in that web.config. The used DNN
installation will remain active until you change it using Use-Dnn
again.