Errors in Powershell running RealtekAudioDriverIntegration.ps1 script


  1. Posts : 4
    Windows 11 23H2
       #1

    Errors in Powershell running RealtekAudioDriverIntegration.ps1 script


    Hello to everybody!
    I am new here but I've been very often trying to find solutions for various Win related problems.
    I wish all the best to all forum members.
    I've been long time on Win 10, now on Win 11 23H2, X64. The mobo is Asus ROG Maximus X Hero, Z370, with integrated Asus S1220 Codec.
    When running script "RealtekAudioDriverIntegration.ps1" which I found on this forum, multiple errors emerged which I copied in a text file in attachment.
    What do these errors mean ?Error in Powershell.txtError in Powershell.txt
      My Computer


  2. Posts : 831
    Windows 7
       #2

    The script is trying to delete and create a new RealtekAudioDriverIntegration.log file on your Desktop.

    There could be a permissions problem writing to your Desktop, or a previous file there owned by Administrator or another user. From your PS window, check C:\Users\borja\Desktop for the log file and delete it.
      My Computer


  3. Posts : 4
    Windows 11 23H2
    Thread Starter
       #3

    There is no folder such as C:\Users\borja\Desktop in Windows 11

    I have only: C:\Users\borja\OneDrive\Desktop and C:\Users\Public\Public Desktop.

    Also there is no RealtekAudioDriverIntegration.log file. Therefore no such file can be deleted.

    Maybe it is different in Windows 11 and the script needs to be modified for Windows 11 ?

    The location of desktop folder in the registry in: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    is: C:\Users\borja\OneDrive\Desktop
      My Computer


  4. Posts : 831
    Windows 7
       #4

    This script doesn't expect to be running on any user profile that has OneDrive hosting the Desktop and other folders.

    To correct the script, this block of lines needs to be updated (first two lines):
    Code:
    ### Output Log Information
    $Desktop = [Environment]::GetFolderPath("Desktop")
    $LogFile = "$Desktop\RealtekAudioDriverIntegration.log"
    Get-ChildItem $LogFile -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue
    New-Item $LogFile -ItemType File | Out-Null
    Set-Content $LogFile "Realtek Audio Driver Integration log information" -Encoding Unicode
      My Computer


  5. Posts : 4
    Windows 11 23H2
    Thread Starter
       #5

    Windows 11 by default puts Desktop and Documents folders on OneDrive. The files in these folders are stored on local hard drive and also synced up to the cloud. They are in two places. They do this by default because the average user doesn't bother to back things up.

    - - - Updated - - -

    garlin said:
    This script doesn't expect to be running on any user profile that has OneDrive hosting the Desktop and other folders.

    To correct the script, this block of lines needs to be updated (first two lines):
    Code:
    ### Output Log Information
    $Desktop = [Environment]::GetFolderPath("Desktop")
    $LogFile = "$Desktop\RealtekAudioDriverIntegration.log"
    Get-ChildItem $LogFile -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue
    New-Item $LogFile -ItemType File | Out-Null
    Set-Content $LogFile "Realtek Audio Driver Integration log information" -Encoding Unicode
    Yes I understand it now. But still don't know how to define variable $Desktop ?
      My Computer


  6. Posts : 831
    Windows 7
       #6

    If you created a Local User account, instead of using a MS Account, then OneDrive doesn't move everything to under the OneDriver folders. OneDrive's folders are kept in parallel. It's only when you use a MS Account as your account type, then Windows will default to keeping everything on OneDrive.

    This is a sneaky planned Windows trick to convert users into using paid OneDrive subscriptions. By defaulting to using OneDrive as your primary folder location, it is more likely you will exceed the synced disk space quota without noticing. After that, you're "asked" to begin an OneDrive subscription to increase your disk space.

    Anyway, there's your bug fix and I've already posted it to the original thread.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:44.
Find Us




Windows 10 Forums