As this script is intended to run unattended as a PowerShell job on a Windows server, Event logging will be used.
Prepare for Logging
- Post author By csharp
- Post date
- Categories In Inventory True Up, Powershell, Scripting
As this script is intended to run unattended as a PowerShell job on a Windows server, Event logging will be used.
This is the folder structure for the daily server CMDB true up reports. The code snippet assumes that the script it’s part of is deployed as a PowerShell scheduled job running on the server that provides the file share and therefore absolute paths are used. Create the Folder Structure and Implement the File Naming scheme: […]
Problem Statement: Your organization uses ServiceNow and ServiceNow Discovery to populate and manage your server CMDB. How do you validate that the server CMDB server inventory is correct? How do you do this on an on going basis? Goals: Automate all data gathering and reporting. Compare the server inventory against sources of truth for deployed […]
Required PowerShell Modules: ImportExcel: Douglas Finke has created an amazing module for creating Excel workbooks, even when Excel is not installed on the system you run the script from. This is a must have for your pragmatic PowerShell tool box. I use it all the time. I’ve linked to it’s page on the PowerShell gallery. […]
Problem Statement: There are times when having historical information on the configuration of a server is useful for trouble shooting. Or to check for readiness for some major upcoming change in the environment. Goals: Data gathering must be automated Reports to be generated on an as-needed basis Monthly reports to be generated and stored in […]
As I get work done with PowerShell and we continue to prepare for the migration to the AD environment of the company that a acquired us it occurs to me that it will helpful for the team to have ready to hand some DNS related details about our server inventory. Seems like a good task […]