Azure / securedworkstation

Intune managed Secured workstation
MIT License
233 stars 54 forks source link

Repo is not usable #23

Open msterri opened 1 year ago

msterri commented 1 year ago

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 commented 1 year ago

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

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

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

thenikk commented 11 months ago

Any update on this?

TheUniquePaulSmith commented 11 months ago

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.