Powershell script for enabling location services not running?
I need to enable location services on a few select PC's in my environment, and since you can only disable location services via GPO and not enable them via GPO (thanks, Microsoft!) I was planning on just pushing the basic script out through my SMA. Reading through the this - Native Powershell Support (316677) (quest.com) - it looks like all I need to do is create an online shell script, throw my PS command in it (Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Value Allow), name it something.ps1 and it should push normally. I'm finding that it's pushing the script out to the PC, but not running it in Powershell. I thought we could run these natively now without creating a file packaging the commands to invoke Powershell to start first. Am I just mistaken about the new update here?
Be the first to answer this question