项目作者: DNNCommunity

项目描述 :
Powershell library for common DNN tasks to be used locally on the server
高级语言: C#
项目地址: git://github.com/DNNCommunity/Dnn.Powershell.Local.git
创建时间: 2019-06-17T20:22:13Z
项目社区:https://github.com/DNNCommunity/Dnn.Powershell.Local

开源协议:

下载


Dnn.Powershell.Local

Powershell library for common DNN tasks to be used locally on the server

Intent

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.

Use

This dll can be used as a Powershell module as follows:

  1. import-module C:\Path\to\Dnn.Powershell.Local.dll -DisableNameChecking

The included commands will then be available to use in Powershell:

  • Use-Dnn
  • Add-Role
  • Add-Roles
  • Add-User
  • Add-Users

For help on commands use Get-Help like so:

  1. get-help use-dnn -full

Environment

All commands interacting with DNN require you to set the environment to the right DNN installation. This is done using:

  1. 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.