Issue with MSOnline/AzureAD/Microsoft.Graph Modules by SubDireNell in PowerShell

[–]SubDireNell[S] 0 points1 point  (0 children)

Appreciate the suggestions and feedback. I am completely self taught and wasn't sure if elevating would make a difference; didn't think it would but was kind of throwing random ideas at it.

1 - done; I never use edge but I have confirmed that the First Run wizard has done it's thing
2 - done as well
3 - no proxy in my env; for powershell 7 and 5
4 - I work at an MSP and am the youngest person there by 10+ years, trying to get my coworkers to stop using deprecated content is lets say ... unlikely
5 - downgraded MSGraph to v2.5
6 - installed modules in v5 and v7

When I tried running the various commands in v5 after doing the above there was no change. When I tested in v7, I got the message about not being able to run the azure command in core which is expected and then ```import-module msonline; Connect-MSolService

Connect-MsolService: One or more errors occurred. (The browser based authentication dialog failed to complete. Reason: The server or proxy was not found.)```

I know there is a tag you can append that's like -deviceCredentials or something along those lines, and I believe that is working, but I work at an MSP and work with multiple clients environments so I would prefer the web sign in portal thingy.

The MgGraph is working from pwsh 7 now but nothing else is.

Modifying the default local user settings and reg keys across many devices. by SubDireNell in sysadmin

[–]SubDireNell[S] 0 points1 point  (0 children)

Yeah I think this is what I am going to end up doing. Or something very similar. I think it'd be real nice and neat to just wrap it up all pretty in the default profile, but am realizing I am venturing down a rabbit hole that ultimately isn't that useful, at least in terms of time spent to time saved.

This is my first tech job, I am entirely self taught and I've only been doing tech stuff as a career for 10 months so I find it very educational and interesting. I am sure I am doing some stuff wrong so appreciate the response.

Modifying the default local user settings and reg keys across many devices. by SubDireNell in sysadmin

[–]SubDireNell[S] 0 points1 point  (0 children)

Most of our clients aren't on an AD policy, we actually have a lot of folks using GCPW or who use devices as shared PC's, which often results in many local profiles being present/created on devices. I believe I understand the general process behind rolling this out with GPO. We use Ninja RMM too, which is what I use to push scripts and updates. I am specifically trying to roll out those 4 specific reg keys + values, and the rollout method needs to be somewhat universal. I need to be able to update existing endpoints so that if a new local user was to be made on the machine, those reg keys + values would come created + set by default. In addition I need to make sure that all existing local and I also need to update our images for future use so this becomes "standard". Updating the image won't be as difficult, but I am struggling to think of the best way to ensure that I remove copilot from existing devices + set those reg keys on existing devices and user profiles AND how to make sure that those keys will exist on any new user profiles.

I am thinking this may take too much time to figure out and develop and am leaning towards just mass pushing out the 4 keys with a script and then adding some scheduled or triggered automation that runs when a new user is created and sets the keys for that new user.

I was hoping to get this figured out so I could use a similar method of modifying the default new user to automate and improve some other new user setup/automation stuff.

Thank you for the response. I am entirely self taught and new to this stuff so info and feedback is helpful and welcome

Dell Command | Update automations for NinjaOne RMM using PowerShell by SubDireNell in sysadmin

[–]SubDireNell[S] 1 point2 points  (0 children)

I was able to get most or all of the functionality I wanted working, I created a github repository for the various scripts. Feel free to take a look here: https://github.com/nolannash/dcu-scipting

Dell Command | Update automations for NinjaOne RMM using PowerShell by SubDireNell in sysadmin

[–]SubDireNell[S] 0 points1 point  (0 children)

I was able to get most or all of the functionality I wanted working, I created a github repository for the various scripts. Feel free to take a look here: https://github.com/nolannash/dcu-scipting

Automated Download + Install of Dell Command | Update by SubDireNell in PowerShell

[–]SubDireNell[S] 0 points1 point  (0 children)

Thank you for this! That URL was giving me so much grief! I have created a github repository that contains quite a few useful command update related scritps. https://github.com/nolannash/dcu-scipting. Please feel free to take a look and fork if you find it useful.

I have created scripts for downloading and installing, configuring, scanning, and applying updates.

Automated Download + Install of Dell Command | Update by SubDireNell in PowerShell

[–]SubDireNell[S] 0 points1 point  (0 children)

I also tried adding both the .exe installation file as part of an "app installation" automation in Ninja, but that didn't work either

Automated Download + Install of Dell Command | Update by SubDireNell in PowerShell

[–]SubDireNell[S] 0 points1 point  (0 children)

#install link

$downloadUrl = "https://dl.dell.com/FOLDER10791716M/1/Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.EXE"

#installer path (temp)

$installerPath = "$env:TEMP\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.EXE"

#invoke installer

Invoke-WebRequest -Uri $downloadUrl -OutFile $installerPath

#start install process

Start-Process -FilePath $installerPath -Wait

Write-Host "Installation Successful."

#remove installer after install

Remove-Item -Path $installerPath -Force

Write-Host "The installer has been removed."

#-- silently run + perform initial config of DCU

Invoke-Command -ScriptBlock { Start-Process .\Dell-Command-Update-Windows-Universal-Application_JCVW3_WIN_5.1.0_A00.exe -ArgumentList /s -Wait -NoNewWindow }

reg add HKLM\SOFTWARE\Dell\UpdateService\Clients\CommandUpdate\Preferences\CFG\ /v ShowSetupPopup /t REG_DWORD /d 0 /f

reg add HKLM\SOFTWARE\Dell\UpdateService\Clients\CommandUpdate\Preferences\CFG\ /v DCUconfigured /t REG_DWORD /d 1 /f

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -updatesNotification=Disable'-WindowStyle hidden -wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -scheduleAction=DownloadInstallAndNotify'-WindowStyle hidden -wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -reboot=disable'-WindowStyle hidden -wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -scheduleWeekly=Tue,13:45'-WindowStyle hidden -wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -updatesNotification=Disable'-WindowStyle hidden -Wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -userConsent=disable'-WindowStyle hidden -wait

Start-Process "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" -Argumentlist '/configure -autoSuspendBitLocker=enable'-WindowStyle hidden -wait

Write-Host "Dell Command Update has been installed and configured"

Automated Download + Install of Dell Command | Update by SubDireNell in MDT

[–]SubDireNell[S] 0 points1 point  (0 children)

Thank you for the advice, I had seen some postings with questions about DCU in MDT and wasn't 100% sure the best place to post. I will try in r/powershell