Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Editing PS4 (server 2012) script on Windows 7....

$
0
0

This is a tough one to search for but its failrly straightforward.....

My development machine is a Windows 7 box.  My coding weapon of choice is PowerGui.  I have that loaded and I'm running PS4.  So I have a fairly large automated provisioning script that is written for 2008.  I am adding Server 2012 functionality to the script and 95% works but there are parts that can be improved through the use of the newer Server 2012 modules.

Example...... I don't need Diskpart anymore (woot woot), I can use native PS.  So in my script I have logic that runs PS commands for disk adds if you have Server 2012 and for Server 2008 I'm using my cumbersome DiskPart tricks.

Sounds fine except when I code in PowerGui all my PS4 disk commands are greyed out because the cmdlets are not available on Server 2008.  I know I am splitting hairs but is there anyway to have PowerGui load / recognize them for editing purposes?  I know they will not run but for editing its so much easier to have them color coded with all the built in syntax checking enabled.


Viewing all articles
Browse latest Browse all 6937

Trending Articles