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

Repo is not usable #23

Open
msterri opened this issue Jul 17, 2023 · 3 comments
Open

Repo is not usable #23

msterri opened this issue Jul 17, 2023 · 3 comments

Comments

@msterri
Copy link

msterri commented Jul 17, 2023

The repo doesn't seem usable anymore.
I can no longer run the scripts to import the policies into the instance, among other issues.
They fail with assembly errors it seems things have changed in the powershell module and graph.
There are already a lot of things wrong with this repo and the documentation that goes along with it.

Is there an alternative out there to have a simple way to do PAW's with Intune?
If not will this repo be brought up to the 2023 level?

I'd expect better from MS on this.

@marcosgm
Copy link

marcosgm commented Sep 27, 2023

PS C:\Users\pawadmin\Downloads\se\PAW> & '.\MasterScript PAW.ps1'

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run C:\Users\pawadmin\Downloads\se\PAW\MasterScript PAW.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): Y
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
Please specify your user principal name for Azure Authentication: xxxxxxxxxxxxxxx
Checking for AzureAD module...

AzureAD Powershell module not installed...
Attempting module install now

NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet
provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\pawadmin\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by
running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install
and import the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y

WARNING: Install the latest PowerShell module, the Microsoft Graph PowerShell SDK, for new features and improvements!
https://aka.ms/graphPSmigration
Adding Device Configuration Profiles

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run C:\Users\pawadmin\Downloads\se\PAW\Import-PAW-DeviceConfiguration.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R

Checking for AzureAD module...
AzureAD PowerShell module not found, looking for AzureADPreview
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program
Files\WindowsPowerShell\Modules\AzureADPreview\2.0.2.183\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' or one
of its dependencies. The system cannot find the file specified."
At C:\Users\pawadmin\Downloads\se\PAW\Import-PAW-DeviceConfiguration.ps1:90 char:1

  • [System.Reflection.Assembly]::LoadFrom($adal) | Out-Null
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : FileNotFoundException
    
    

Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program
Files\WindowsPowerShell\Modules\AzureADPreview\2.0.2.183\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll'
or one of its dependencies. The system cannot find the file specified."
At C:\Users\pawadmin\Downloads\se\PAW\Import-PAW-DeviceConfiguration.ps1:92 char:1

  • [System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : FileNotFoundException
    
    

Cannot find type [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]: verify that the assembly containing this type is loaded.

@thenikk
Copy link

thenikk commented Dec 17, 2023

Any update on this?

@TheUniquePaulSmith
Copy link
Contributor

Any update on this?

There haven't been any updates to this repo from MS in a long time, my guess is maybe they abandoned it in lieu of Intune Security Baselines? I speculate this is probably more or less a bridge gap solution to helping adopt the Enterprise Access Model.

Here is a fork of their repo I made if you want a (hopefully) working version of what is documented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants