Search found 36 matches

by MrFanciful
Tue Apr 12, 2016 3:59 am
Forum: PowerShell Studio
Topic: SQLPS Module Empty
Replies: 2
Views: 776

SQLPS Module Empty

Product, version and build: PowerShell Studio 2016 5.2.119 32 or 64 bit version of product: 64 bit Operating system: Windows 8.1 Ent 32 or 64 bit OS: 64 bit PowerShell Version: 5 I'm required to create a script to automate the verifying SQL database backups. It's the first time I've been requiring t...
by MrFanciful
Fri May 09, 2014 5:23 am
Forum: Wish List and Feature Requests
Topic: Powershell Studio wish list request
Replies: 0
Views: 5872

Powershell Studio wish list request

Hi I'm hoping this would be quite easy to implement. One thing that I'd like is when you include a variable inside a string, the variable retained the variable colour rather than changing to the colour assigned to strings. Then if you put the ` character before the variable so as to change the varia...
by MrFanciful
Thu May 08, 2014 2:20 am
Forum: PowerShell Studio
Topic: Issue with Breakpoint and If statement
Replies: 8
Views: 2821

Re: Issue with Breakpoint and If statement

I tried your Set-PSBreakpoint suggestion and it worked. It came down to how I'm running it. I'm planning on making this into a module so it can be run as a cmdlet so I'm testing it by loading the script into the current stack and then running the function as a cmdlet. Setting a break point in the sc...
by MrFanciful
Thu May 08, 2014 1:38 am
Forum: PowerShell Studio
Topic: Issue with Breakpoint and If statement
Replies: 8
Views: 2821

Re: Issue with Breakpoint and If statement

Hi I've just tried a breakpoint at the if statement and had the same behaviour as in the video. Even after a full reboot of my laptop. Powershell Studio seems to have a few quirks for me because as I've stated in another thread, the console window in Powershell Studio doesn't list my mapped network ...
by MrFanciful
Wed May 07, 2014 9:15 am
Forum: PowerShell Studio
Topic: Issue with Breakpoint and If statement
Replies: 8
Views: 2821

Re: Issue with Breakpoint and If statement

Thats great, thanks a lot. Still learning all this stuff.

Just so you can see how my breakpoints are behaving, here is a quick video I just captured. Not sure if this is proper behaviour and I'm just not using them correctly.

https://www.youtube.com/watch?v=qllWDmadcco
by MrFanciful
Wed May 07, 2014 7:32 am
Forum: PowerShell Studio
Topic: Issue with Breakpoint and If statement
Replies: 8
Views: 2821

Issue with Breakpoint and If statement

Hi I'm working on a script to check if a particular folder exists on server, if not create the folder and then copy a file to that folder. I want to be able to either specify the server names from a list, manually type them or get them from an OU. I've been trying to say that if the user hasn't spec...
by MrFanciful
Sun May 04, 2014 1:15 am
Forum: PowerShell Studio
Topic: How to change PowerShell version?
Replies: 3
Views: 1454

Re: How to change PowerShell version?

I'm going to assume that you're running Windows 7. Windows 7 comes with Powershell V2 so to get the cmdlets for versions 3 or 4, you'll need to install the Windows Management Framework updates from the link below. http://www.microsoft.com/en-gb/download/details.aspx?id=40855 Please note though that ...
by MrFanciful
Fri May 02, 2014 1:46 am
Forum: PowerShell Studio
Topic: Error with curly braces
Replies: 4
Views: 1569

Re: Error with curly braces

As good as Powershell is, I think the engineers of it could have made a better distinction, or at least a better alias.

Thanks for your help as always
by MrFanciful
Thu May 01, 2014 9:07 am
Forum: PowerShell Studio
Topic: Error with curly braces
Replies: 4
Views: 1569

Re: Error with curly braces

Ah that works. Had a quick read of this thread after making the change which explains the difference between foreach and Foreach-Object, in case anyone else runs into this: http://social.technet.microsoft.com/Forums/en-US/e8da8249-ea91-4772-ae85-582a4b37425b/powershell-foreachobject-vs-foreach?forum...
by MrFanciful
Thu May 01, 2014 8:21 am
Forum: PowerShell Studio
Topic: Error with curly braces
Replies: 4
Views: 1569

Error with curly braces

Hi I'm going through the brilliant Powershell series on Channel9 (People reading this: check it out if you haven't already) and I was modifying the Function Advanced snippet that ships with Powershell Studio. I removed the Try/Catch scriptblocks from the Begin, Process and End scriptblocks and chang...