AsBuiltReport / AsBuiltReport.Microsoft.AD

Repository for AsBuiltReport Microsoft Active Directory module
https://techmyth.blog/posts/homelab-ad-doc-using-asbuiltreport/
MIT License
63 stars 18 forks source link

New-AsBuiltReportConfig Error #127

Closed kennyparsons closed 1 year ago

kennyparsons commented 1 year ago

Bug description

Due to org policy, I cannot install the asbuilt module from PSGallery. I have installed everything else. I'm on a Windows Server, acting as a jumpbox to the real domain controllers.

Install-Module -Name PSPKI
Install-WindowsFeature -Name RSAT-AD-PowerShell
Install-WindowsFeature -Name RSAT-ADCS,RSAT-ADCS-mgmt
Install-WindowsFeature -Name RSAT-DNS-Server
Install-WindowsFeature -Name GPMC

I installed AsBuiltReport.Microsoft.AD in my powershell modules path and it is recognized as a module.

However, when run New-AsBuiltReportConfig, I get this:

New-AsBuiltReportConfig -Report Microsoft.AD -FolderPath 'C:\Users\A-Kenny.Parsons\Documents\AsBuilt' -Filename asbuilt1
New-AsBuiltReportConfig : The term 'New-AsBuiltReportConfig' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ New-AsBuiltReportConfig -Report Microsoft.AD -FolderPath 'C:\Users\A- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-AsBuiltReportConfig:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Command-line input

New-AsBuiltReportConfig -Report Microsoft.AD -FolderPath 'C:\Users\A-Kenny.Parsons\Documents\AsBuilt' -Filename asbuilt1

Steps to reproduce

  1. Install RSAT tools via: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD#powershell-v5x-running-on-a-domain-controller-server
  2. Install this module manually via: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD#github
  3. Run New-AsBuiltReportConfig

Expected behaviour

config to be created

Screenshots

No response

Operating System

Windows Server 2022 DC

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.20348.1366
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.1366
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PowerShell Modules

Name                       Version
----                       -------
AsBuiltReport.Microsoft.AD 0.7.14
PScriboCharts              0.9.0

Additional Context

No response

Before submitting

rebelinux commented 1 year ago

You need to install the AsBuiltReport.Core module:

https://github.com/AsBuiltReport/AsBuiltReport.Core

I have updated the README file to point out the requirements

https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD#wrench-system-requirements

Thanks.

kennyparsons commented 1 year ago

Also, PScribo (PScriboCharts is the only listed dependency). Thanks for the help.