Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Parsing issue with script to query FQDN #13

Closed
braimee opened this issue May 2, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@braimee
Copy link

commented May 2, 2019

Describe the issue
In the update.bat file there's a wmic statement to query the domain's FQDN, and it doesn't seem to parse properly, and therefore is saved as a variable that breaks when used later in the script.

To Reproduce
Steps to reproduce the behavior:

  1. Run this command (within the .bat):
(wmic computersystem get domain | findstr /v Domain | findstr /r /v "^$") > fqdn.txt
  1. The fqdn.txt result (for me) is:
7min.sec 


(There are extra spaces after "7min.sec" and several carriage returns in the fqdn.txt)

Expected behavior
A clean 7min.sec saved in the fqdn.txt

Screenshots
See the fqdn.txt, which has extra spaces:

Screen Shot 2019-05-02 at 2 31 51 PM

@braimee braimee added the bug label May 2, 2019

@duncan-ncc

This comment has been minimized.

Copy link
Collaborator

commented May 2, 2019

This has already been highlighted in #4 for which a fix is currently being tested.

@duncan-ncc

This comment has been minimized.

Copy link
Collaborator

commented May 3, 2019

Fixed in #14

@duncan-ncc duncan-ncc closed this May 3, 2019

@braimee

This comment has been minimized.

Copy link
Author

commented May 3, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.