Comments (4)
Can you give a little bit more info on how you would like this to behave?
from powerstig.
I would like the cmdlet to resolve a relative path for the destination parameter. For example if my current directory is c:
and I run:
ConvertTo-PowerStigXml -Path c:\stig.xml -Destination .\Temp
I would like the output to be saved to the Temp folder. Currently when that is run it errors and and doesn't save the output unless I provide an absolute path like c:\Temp
as the destination.
I've been able to get my desired outcome by modifying line 202 of Functions.PowerStigXml.ps1 with:
$OutPath = Get-OutputFileRoot -Path $Path -Destination (Resolve-Path -Path $Destination)
from powerstig.
Makes sense to me, Can you submit a PR for this?
On a side note, none of this convert module code will be published to the PS gallery. It is only intended to be used here to convert the STIG file that we will publish to the gallery. With this in mind, you only need to update the unreleased section of the readme if you are submitting a converted STIG file or one of the STIG.* modules.
from powerstig.
As I was working on Issue #19 I realized this can be fixed in that PR, so once PR #23 closes, this will be resolved.
from powerstig.
Related Issues (20)
- Update PowerSTIG to Parse/Apply Microsoft Windows Server 2016 STIG - Ver 2, Rel 8
- Update PowerSTIG to Parse/Apply Microsoft Windows 11 STIG - Ver 1, Rel 6
- Update PowerSTIG to Parse/Apply Microsoft Windows 10 STIG - Ver 2, Rel 9
- Update Powerstig to parse\apply Canonical Ubuntu 18.04 LTS STIG - Ver 2, Rel 14
- Update Powerstig to parse\apply U_MS_SQL_Server_2016_Instance_V2R12
- Update Powerstig to parse\apply Microsoft .Net Framework 4.0 STIG - Ver 2, Rel 4
- Update Powerstig to parse\apply Microsoft Edge STIG - Ver 1, Rel 8
- Update Powerstig to parse\apply Microsoft Office 365 ProPlus STIG - Ver 2, Rel 12
- Update Powerstig to parse\apply Microsoft Office System 2016 STIG - Ver 2, Rel 3
- Windows Server 2022 - "Cannot find an appropriate constructor for type System.Security.Principal.NTAccount" HOT 3
- Update PowerSTIG to Parse/Apply Oracle Linux 8 V1R10
- Add a param to pass a custom rule file path to the STIG constructor
- Update Powerstig to parse\apply U_MS_Edge_V2R1_STIG
- Update Powerstig to parse\apply Microsoft Windows 10 STIG - Ver 3, Rel 1
- Update Powerstig to parse\apply Microsoft Windows 11 STIG - Ver 2, Rel 1
- Update Powerstig to parse\apply Microsoft Windows Server 2019 STIG - Ver 3, Rel 1
- Update Powerstig to parse\apply Microsoft Windows Server 2022 STIG - Ver 2, Rel 1
- Update Powerstig to parse\apply Microsoft IIS 10.0 Server STIG
- Update Powerstig to parse\apply Microsoft Office 365 ProPlus STIG - Ver 3, Rel 1
- Update Powerstig to parse\apply U_MS_SQL_Server_2016_Instance_V3R1_Manual_STIG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerstig.