@theopenem_admin said in Non-working shortcut when created via Toec:
I suspect that wscript.shell needs a user context instead of service.
I was able to get around it by using file copy to place the shortcut. Thanks for your time looking into it.
@theopenem_admin said in Non-working shortcut when created via Toec:
I suspect that wscript.shell needs a user context instead of service.
I was able to get around it by using file copy to place the shortcut. Thanks for your time looking into it.
I'm trying to create a shortcut via Toec with the following power shell lines. This works when ran on manually by running the power shell script on a test computer, but via Toec the behavior is different.
Toec creates the shortcut but when you double click it, it doesn't open at all.
$shell = New-Object -comObject WScript.Shell
$shortcut = $shell.CreateShortcut("C:\Users\Public\Desktop\Staff Shortcuts.lnk")
$shortcut.TargetPath = "\servername\DesktopShortcuts\Staff Shortcuts"
$shortcut.IconLocation = "shell32.dll,43"
$shortcut.Save()
Update: I created a zip with Winrar and but the same thing happened.
If I try to copy the files over without zipping them through the Instant Module Runner, I get an error saying "Could Not Start Instant Module".
@theopenem_admin I had zipped the files with whatever the default for 7-Zip version 23.01 is when you right click on the folder and select Add to "fillename.zip". I'm able to extract it with 7-zip without any issue as well. I looked for encoder setting in 7-Zip but was not able to find any.
I noticed that the file copy of Toems changes certain language files when they are copied and extracted from a zip.
The left picture shows the original and the right picture shows how they appear after a file copy to a client computer. I have attached the language files that I was testing with.
One program that I'm trying to install won't install correctly due to the language file changes.
I'm trying to apply a .reg file using reg.exe via the command module. I have tried different working directories but haven't had any luck. Thanks
Are these application log errors normal?
I did generate the keys and imported them per the documentation. Also, everything appears to be working, so its the reason I'm asking. It possible the generate key errors appeared after I finished installing Toems and I didn't generate the keys before error appeared.