Coder Social home page Coder Social logo

ztrhgf / useful_powershell_modules Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 4.0 2.58 MB

Source code for modules placed in PowerShell Gallery and on my https://doitpshway.com blog.

Home Page: https://doitpshway.com

PowerShell 100.00%
modules powershell

useful_powershell_modules's People

Contributors

ztrhgf avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

useful_powershell_modules's Issues

Missing module when calling the get-intunereport cmdlet

Hi!

first off I wanted to thank for this useful module. I wanted also to report an issue with it when running the Get-IntuneReport cmdlet:
Import-Module : The specified module 'Variables' was not loaded because no valid module file was found in any module directory

It looks like it's loading a module which is not in the IntuneStuff module...

Get-CorrespondingGraphCommand incorrect Table headers

last line of the code

Microsoft appear to have changed the Header names on the source page so the $table values containing the command maps are now headed differently.

So $."Azure AD cmdlets" should be $."Azure AD cmdlet" and $."Microsoft Graph PowerShell cmdlets" should be $."Microsoft Graph PowerShell cmdlet"

Getting GRS Hash from IME log broken

https://github.com/ztrhgf/useful_powershell_modules/blob/ecc93abe4de3dbf726de4d2393cf738eade6f0c1/IntuneStuff/IntuneStuff.psm1#LL7149C85-L7149C85
$appMatch = Select-String -Path $intuneLog -Pattern "[Win32App] ExecManager: processing targeted app .+ id='$appId'" -Context 0, 2
should be changed to
$appMatch = Select-String -Path $intuneLog -Pattern "[Win32App][V3Processor] Processing subgraph with app ids: $appId" -Context 0, 1

and

$hash = ([regex]"\d+:Hash = ([^]]+)\]").Matches($match).captures.groups[1].value

$hash = ([regex]"\d+:Hash = ([^]]+)]").Matches($match).captures.groups[1].value
should be changed to
$hash = ([regex]"\GRS\(.*)\").Matches($match).captures.groups[1].value

Greets,
RW

connect-msgraph - intune module - PS7

Nice module! The device policy features was especially useful.

Though I ran into issues running it with PS 7...

Well not your part of the module but connect-msgraph included in the intune module.

When I just run the cmdlet to interactively auth receive the following in PS7 but not 5. Haven't dug into it really to see if workstation or other cause but as the intune module sadly hasn't been updated in 4 years figured it might just be incompatible.

Connect-MSGraph: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Invoke-IntuneScriptRedeploy BUG RuntimeException

Hi when selecting a script, (any of them) for redeploy, I get this error output. Please advise, Id love to you your tools, they look impressive and really useful.

The keys are all there in the registry ?

Also is there a way to start the scrip and not have the result details column showing as default? Many Thanks

PS C:\Windows\system32> Invoke-IntuneScriptRedeploy -scriptType script -getdatafromintune
WARNING: Preparing redeploy for script cc832524-5bb8-4bdf-8d36-748c5926bc45 (scope xxxxxxxxxxxxxxxxxxxx.co.uk) by
deleting it's registry key
BUG??? Script cc832524-5bb8-4bdf-8d36-748c5926bc45 with scope xxxxxxxxxxxxxxxxxxxx.co.uk wasn't found in the
registry
At C:\Program Files\WindowsPowerShell\Modules\IntuneStuff\1.4.4\IntuneStuff.psm1:6509 char:25

  • ... throw "BUG??? Script $scriptId with scope $scopeId wasn't ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (BUG??? Script c...in the registry:String) [], RuntimeException
    • FullyQualifiedErrorId : BUG??? Script cc832524-5bb8-4bdf-8d36-748c5926bc45 with scope xxxxxxxxxxxxxxxxxxxx.co.uk
      wasn't found in the registry

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.