Pesky_UK

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • Pesky_UK
    Participant

    Hi Britgirl. Outputs for you:

    PS C:\WINDOWS\system32 > whoami

    nt authority\system

    $env:USERPROFILE

    C:\WINDOWS\system32\config\systemprofile

    $env:COMPUTERNAME

    [removed by forum admin]

    Get-CimInstance Win32_ComputerSystem | Select-Object -ExpandProperty UserName

    [removed by forum admin]\[removed by forum admin]

    ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(544) | Out-File -FilePath $log -Append

    Error Occured: Out-File : Cannot bind argument to parameter 'FilePath' because it is null.
    At C:\Program Files\Gorelo\Agent\AppData\Scripts\00000000-0000-0000-0000-000000000000-execute.ps1:1 char:126
    + ... ntity]::GetCurrent()).IsInRole(544) | Out-File -FilePath $log -Append
    + ~~~~
    + CategoryInfo : InvalidData: (:) [Out-File], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.OutFileCommand

    Pesky_UK
    Participant

    No, but in the upcoming version 10, when you publish a machine to NoMachine Network, and are logged in while doing so, it will be automatically added to your Machines book. Can this be helpful to you?

    Is this logged in to NM on my machine or logged in to NM on the remote machine? If only logged in to my machine then yes, it will help a lot. If I have to also be logged in to the remote machine then no, I would consider that a security problem.

     

     

    Pesky_UK
    Participant

    There is still the requirement to be logged in though.

    Unless you can think of a way around this problem? I can add them manually, that’s not a problem, but I’d quite like it to be automagic!

    in reply to: Windows 11 map connected drive to public desktop #54588
    Pesky_UK
    Participant

    Here is a perfect example:

    1. I connect to a remote machine using the login details for the remote built-in administrator account. The remote user is logged in as themselves (local or microsoft acocunt with member of administrators group).
    2. If I want to share a drive privately it wants to map it to c:\users\administrator\……
    3. If I want to share the drive publicly it wants to map it to c:\programdata

    Screenshots attached.

    Preferably it should map to c:\users\public\desktop so that the share is available no matter who is logged in.

     

    in reply to: Windows 11 map connected drive to public desktop #54587
    Pesky_UK
    Participant

    With 1 the remote user is either a local or a microsoft account and are members of the administrators group.

    in reply to: MacOS Tahoe – System Settings #54552
    Pesky_UK
    Participant

    Here’s a bash script that will check the version of the installed NoMachine. If it is greater than 9.1.24 (current version that required the fix above) then it will remove the fix and restart nxserver.

    As always, check unknown scripts.

    # Check macOS version and remove fix if required
    version=$(sudo /etc/NX/nxserver --version | sed 's/NoMachine - Version //')
    if [ "$(printf '%s\n' "9.1.24" "$version" | sort -V | head -n1)" != "9.1.24" ]; then
        echo "Version $version is greater than 9.1.24. Updating configuration..."
        sudo sed -i '' '/DisplayServerExtraOptions "-oldeventapi 1"/d' "/Applications/NoMachine.app/Contents/Frameworks/etc/node.cfg"
        echo "Restarting NoMachine..."
        if ! sudo /etc/NX/nxserver --restart; then
            echo "Failed to restart NoMachine."
            exit 1
        fi
    else
        echo "Version $version is not greater than 9.1.24. No changes made."
    fi

     

    in reply to: MacOS Tahoe – System Settings #54551
    Pesky_UK
    Participant

    For those of us with remote machines having to remove the fix will cause problems.

    Can the fix removal be programmed into the next update or is there a way to check the version programatically and remove if required?

     

    in reply to: Windows 11 map connected drive to public desktop #54536
    Pesky_UK
    Participant

    Any machine I tried it on had a Microsoft or local user account (admin level) and the built-in Administrator acocunt enabled.

    I connect as the built-in Administrator account, and go to drives and connect as drive Z. The connection as an admin account maps to /users/administrator and connection as user account maps to programdata folder.

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54455
    Pesky_UK
    Participant

    Is there a command line to update the software or does it have to be done from the GUI?

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54449
    Pesky_UK
    Participant

    Ah, I’ve just realised what is causing the problem.

    I use brew to remotely install NM but it’s installing version 8.16.1_2 which is the latest version on homebrew.

    Can someone update the package on homebrew please?!

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54448
    Pesky_UK
    Participant

    This is what I get when running it on a Mac (permissions etc already granted):

    bash-3.2# /etc/NX/nxserver –networkadd –visible-set myemail@address.com
    NX> 500 ERROR: Invalid command: ‘networkadd’

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54443
    Pesky_UK
    Participant

    I mean programatically from terminal – sorry, I should have specified that!

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54438
    Pesky_UK
    Participant

    @Britgirl I know that NM can be remotely installed on macOS but I can’t get either of the ID’s using the same syntax as for Windows. Even with the system extension enabled, privacy etc it doesn’t want to work.

    Any suggestions?

     

    in reply to: Strange colour with SurfacePro 11 #54380
    Pesky_UK
    Participant

    Have a look at your HDR settings.

    in reply to: Remotely deploying NoMachine with NoMachine Network? #54325
    Pesky_UK
    Participant

    Brilliant @Britgirl, works perfectly.

    For future searchers here is a very simple powershell script that will install NM on a Windows machine using choco and assign it to an email address. Chocolately also performs a silent install:

    choco install nomachine -y
    & 'C:\Program Files\NoMachine\bin\nxserver.exe' --networkadd --visible-set your@email-address.com

    The output of nxserver will also give you the Machine ID and Access ID required to add the connection to your address book.

     

Viewing 15 posts - 1 through 15 (of 15 total)