We have a PowerShell script
script.ps1 on a hidden shared folder
\\Server\Share$. We have a bat file
Initiator.bat, which executes the script. The shortcut to the batch file is placed on the user's desktop, which is where they run it from.
Everything works fine with normal share, but when I changed the share to a hidden share by putting a $ at the end, the remote execution does't work, even though I have updated the shortcut.
It doesn't even give a error, it simply shows a command window. It immediately works if the $ is removed from the share.
Should I be using a different syntax? How do I make the scripts work and execute when they are on a hidden share?