Search found 4 matches

by Squidge123
Tue Oct 09, 2018 9:55 am
Forum: PowerShell Studio
Topic: Saved ps1 files appear corrupted
Replies: 5
Views: 2141

Re: Saved ps1 files appear corrupted

Unfortunately, all those files that were affected I recovered (and overwrote) the file with a backup. If it happens again then I will post it to this thread. I guess this is not a game changer now that I realize what is happening it is easily rectified. But it is probably good to flag to the wider c...
by Squidge123
Mon Oct 08, 2018 4:12 am
Forum: PowerShell Studio
Topic: Saved ps1 files appear corrupted
Replies: 5
Views: 2141

Re: Saved ps1 files appear corrupted

No signing has ever been applied to scripts. This has affected a number of my scripts going back maybe 18 months and always seems to be when they are pretty complex involving codeblocks and jobs (which themselves make syntax checking a pain). After trying unsuccessfully to find the latest reported s...
by Squidge123
Fri Oct 05, 2018 8:39 am
Forum: PowerShell Studio
Topic: Saved ps1 files appear corrupted
Replies: 5
Views: 2141

Saved ps1 files appear corrupted

**BUG** After working for some time with certain powershell files, after copying the files to remote machines for execution, sometimes I will get syntax/parsing errors such as below. At E:\WGT\WGT_GetFarmsByServer2.ps1:577 char:108 + ... ypeInformation -Depth 10).Save("$PSScriptRoot\WGT_FarmsBy...
by Squidge123
Sat Jul 15, 2017 7:39 pm
Forum: PowerShell GUIs
Topic: Forcing Powershell GUI .exe to run under version 2
Replies: 1
Views: 1159

Forcing Powershell GUI .exe to run under version 2

I work in a mixed Sharepoint environment where I have developed a number of GUI utilities for use by the Operations team. A stumbling block has always been that a packaged .exe file will not run in our Sharepoint 2010 environment when it is necessary to load the Sharepoint snapin. This seems to be b...