-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add Last Known Network to Get-GSChromeOSDevice #376
Comments
I just had a quick look at this. All that is required is to update to the latest DLLs for the Directory API. I have compiled the module myself incorporating some of the other changes that I have made. This version has the updated DLLs and contains the lastKnownNetwork property. From what I can tell the build process (build.ps1 in the root) automatically downloads the latest versions of the DLLs. So you could try building it yourself. Otherwise, I assume that the DLLs will be updated with the next release. |
Do you mind sharing how you got those dlls? I'm pretty desperate and I'll give it a shot myself. Thanks! |
The DLLs can be downloaded via Nuget. I have found the easiest way is to build the module yourself by downloading the source from the Github repo. Then run the build.ps1 file. When I built it the first time it prompted to install the required modules for the build process but I still ran into some errors. From memory I needed to install Git and then it worked fine. From what I understand the build process will download the latest versions of the Google DLLs and the specified versions of the Newtonsoft.json.dll. To get the updated version of that one simply modify the |
------ UPDATE----- I seem to have fixed this by renaming the folder it downloaded from PSGSuite to PSGSuite-main. So I'm trying to follow the directions located at https://psgsuite.io/Initial%20Setup/ I downloaded git and installed it on my windows 10 box. I copy and paste the commands and I get this error: Error: 10/31/2022 9:28:47 AM: Any ideas? Or can you share with me the link to the DLL's from google and I can just download it directly? Thanks so much! ------ UPDATE----- I seem to have fixed this by renaming the folder it downloaded from PSGSuite to PSGSuite-main. |
So now I am getting this issue: Error: 10/31/2022 9:51:31 AM: And now I'm really stumped. |
Hmm. I am not super familiar with the build process so I am not sure why that would be happening. To get the DLLs the names are found in the I am not certain but I think it should be as simple as replacing the DLLs in the already installed module directory. eg, |
So I finally got it working, what a project.... I had to get the files from NuGet and replace them manually. Here's the steps I took:
Thank you for all the help @Foggy2 |
For step 8, if you download the Newtonsoft.Json.dll from the internet you may also need to right click the file, select properties, and check "Unblock" and apply. The module would not import until I did this. |
Is it possible to add the lastKnownNetwork info from https://developers.google.com/admin-sdk/directory/reference/rest/v1/chromeosdevices to the Get-GSChromeOSDevice function?
The text was updated successfully, but these errors were encountered: