• 0

Script Host: Permission Denied: 'GetObject'


Question

Hey guys,

New Script host coming up, but we haven't had any changes made to this file. The error is as follows:

Script: ********\legalnotice.vbs
Line: 15
Char: 1
Error: Permission Denied: 'GetObject'
Code: 800A0046
Source: Microsoft VBScript Runtime Error

Now I've opened up legalnotice.vbs. Here is what line 15 is. Bear in mind, nothing has changed recently to my knowledge so I don't know what it is.

Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

Any ideas?

2 answers to this question

Recommended Posts

  • 0
  Punkrulz said:
Hey guys,

New Script host coming up, but we haven't had any changes made to this file. The error is as follows:

Script: ********\legalnotice.vbs
Line: 15
Char: 1
Error: Permission Denied: 'GetObject'
Code: 800A0046
Source: Microsoft VBScript Runtime Error

Now I've opened up legalnotice.vbs. Here is what line 15 is. Bear in mind, nothing has changed recently to my knowledge so I don't know what it is.

Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

Any ideas?

Did the security permissions change on the account in which this script is run? If the script hasn't changed, then your environment has.

  • 0
  azcodemonkey said:
Did the security permissions change on the account in which this script is run? If the script hasn't changed, then your environment has.

Monkey,

Yes, the environment has changed at one point by my co-worker. He changed the some settings involving WMI in the group policy. I have, however, reverted his changes back to the defaults and thus theoretically should have resolved the problem.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • far from? it was the biggest issue in browser news when the change was announced. The lead up was months of Google/MS going back and forth on fix-break repeatedly and it being found that Google was specifically breaking YouTube based on the browsers userstring.
    • As a person that had moved from Chrome to Old Edge I disagree. It was very quick, and its built-in PDF handling was amazing. New Edge/Chrome is still catching up to it in that regard. It also used a LOT less memory than Chrome did.
    • I still really miss set tabs aside in legacy Edge and full screen of thumbnails for open tabs from (I think) later releases of IE.
    • The catch is you have to get it to actually install first. We still have a few machines in our environment that just refuse to install it, via WU, the KB's or an ISO, it just always fails.
    • 128GB and 256GB Samsung Galaxy Tab S10 FE are selling at their lowest prices once again by Fiza Ali Two variants of the Samsung Galaxy Tab S10 FE tablet are selling at their lowest prices once again (purchase links toward the end of the article). Both the 128GB and 256GB models are powered by an octa‑core processor peaking at 2.9GHz, backed by 8GB and 12GB of RAM, respectively. Both the devices share the same 10.9‑inch TFT display that delivers a WUXGA+ resolution of 2,304 × 1,440 pixels, a 90Hz refresh rate, and a 16 million‑colour palette along with full S Pen support. Photography and video capabilities are also identical, with a 13MP autofocus rear camera and 12MP front‑facing camera; both of which capture UHD 4K video at 30 fps and play back 4K content at up to 60 fps. The device further includes dual AKG‑tuned speakers for immersive audio. Connectivity features including dual‑band Wi‑Fi 6, Bluetooth 5.3, USB 2.0 Type‑C and GPS/GLONASS/BeiDou/Galileo/QZSS positioning are same as well, as is the 8,000 mAh non-removable battery, rated for up to 20 hours of wireless video playback. Moreover, the tablets are equipped with an array of sensors including accelerometer, gyroscope, geomagnetic, hall, and ambient‑light, and a side‑mounted fingerprint reader. Both tablets integrate SmartThings hub functionality and support the full range of Galaxy Buds accessories. The internal storage of the devices is expandable by up to 2TB via microSD. Finally, Samsung guarantees security updates for the tablets through April 30th, 2032. 128GB Samsung Galaxy Tab S10 FE WiFi Android Tablet: $449.99 (Amazon US) - $449.99 (Samsung US) - $449.99 (Newegg) 256GB Samsung Galaxy Tab S10 FE WiFi Android Tablet: $519.99 (Amazon US) - $519.99 (Samsung US) - $519.99 (Newegg) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Week One Done
      SmileWorks Dental earned a badge
      Week One Done
    • Community Regular
      vZeroG went up a rank
      Community Regular
    • Collaborator
      Snake Doc earned a badge
      Collaborator
    • Week One Done
      Snake Doc earned a badge
      Week One Done
    • One Month Later
      Johnny Mrkvička earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      589
    2. 2
      Michael Scrip
      199
    3. 3
      ATLien_0
      196
    4. 4
      +FloatingFatMan
      133
    5. 5
      Xenon
      122
  • Tell a friend

    Love Neowin? Tell a friend!