Git Product home page Git Product logo

cwiccs's Introduction

cwiccs's People

Contributors

m0zgen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cwiccs's Issues

Windows JSON implements - save json files on Windows 10 warnings

On Windows 10

Notice: - Read help .\cwiccs.ps1 -help 
Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\disks.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\local-audit-policies.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\local-password-policies.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\local-registry-policies.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\local-users.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\ports.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\requred-services.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\restricted-services.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\settings.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\soft.json'

Set-Content: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:687:34
Line |
 687 |          $data | ConvertTo-Json | Set-Content -Path $dataFile
     |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified path is invalid. : '\\device.json'

OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042

This issue found only in the VSCode terminal, another terminal does not has this issue (tested on PowerShell 5 - 7)

Client OS does not has several registry keys

On Windows 10

Interactive logon: Smart card removal behavior - OK
Recovery Console: Allow automatic administrative logon Get-ItemProperty: C:\Users\<userName>\Documents\GitHub\cwiccs\modules\reg-handler.ps1:14
Line |
  14 |          Get-ItemProperty -Path $Path | Select-Object -ExpandProperty  …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' because it does not exist.

Get-ItemProperty: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:448
Line |
 448 |  … rrentState = (Get-ItemProperty -Path $p -Name $key.Value_Name).$( $ke …
     |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' because it does not exist.

- FAIL (0 required, current state )
Recovery Console: Allow floppy copy and access to all drives and all folders Get-ItemProperty: C:\Users\<userName>\Documents\GitHub\cwiccs\modules\reg-handler.ps1:14
Line |
  14 |          Get-ItemProperty -Path $Path | Select-Object -ExpandProperty  …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' because it does not exist.

Get-ItemProperty: C:\Users\<userName>\Documents\GitHub\cwiccs\cwiccs.ps1:448
Line |
 448 |  … rrentState = (Get-ItemProperty -Path $p -Name $key.Value_Name).$( $ke …
     |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole' because it does not exist.

- FAIL (0 required, current state )
User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode - OK

OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042

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.