Giter VIP home page Giter VIP logo

printermanagement's Introduction

Included Resources

  • PrinterDriver
  • Printer

PrinterDriver

Install a printer driver. ###Syntax

PrinterDriver [string]
{
    DriverName = [string]
    [InfPath = [string]]
    [Environment = [string]] { x86 | x64 }
    [Ensure = [string]] { Present | Absent }
}

###Properties

  • DriverName: Specifies the printer driver name.
  • InfPath: Specifies the path to the printer driver INF file in the driver store. INF files contain information about the printer and the printer driver.
  • Environment: Specifies the printer driver environment.
  • Supported values are 'x64' or 'x86'.
  • If not specified, it defaults to 'x64'.
  • Ensure: Whether the role is to be installed or not.
  • Supported values are Present or Absent.
  • If not specified, it defaults to Present.

###Configuration

Configuration PrinterDriverExample {
    Import-DscResource -ModuleName PrinterManagement
    PrinterDriver PrinterDriverExample {
       DriverName = 'Microsoft XPS Class Driver'
       Environment = 'x64'
       Ensure = 'Present'
    }
}

Printer

Creates and shares a local printer.

###Syntax

Printer [string]
{
    Name = [string]
    DriverName = [string]
    PortName = [string]
    [Comment = [string]]
    [Location = [string]]
    [Published = [bool]]
    [ShareName = [string]]
    [Ensure = [string]] { Present | Absent }
}

###Properties

  • Name: Specifies the name of the printer.
  • DriverName: Specifies the name of the printer driver for the printer.
  • PortName: Specifies the name of the port used or created for the printer.
  • Comment: Specifies the text to add to the Comment field for the specified printer.
  • Location: Specifies the location of the printer
  • Published: Specifies whether or not the printer is published in the network directory service.
  • If not specified, it defaults to $false.
  • ShareName: Specifies the name by which to share the printer on the network.
  • Ensure: Whether the role is to be installed or not.
  • Supported values are Present or Absent.
  • If not specified, it defaults to Present.

###Configuration

Configuration PrinterExample {
    Import-DscResource -ModuleName PrinterManagement
    Printer SharedExamplePrinter {
        Name = 'Example Printer'
        DriverName = 'Microsoft XPS Class Driver'
        PortName = 'PORTPROMPT:'
        ShareName = 'Shared Printer'
        Published = $true
        Ensure = 'Present'
    }
}

printermanagement's People

Contributors

iainbrighton avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.