Windows.PowerShell History

Hide minor edits - Show changes to output - Cancel

 
 
July 23, 2014, at 10:36 AM by MichaelPaulukonis -
Changed line 34 from:
[[http://ss64.com/ps/syntax-run.html|from within PowerShell]] or [[http://ss64.com/nt/syntax-run.html|running PowerShell fomr CMD prompt@]
to:
[[http://ss64.com/ps/syntax-run.html|from within PowerShell]] or [[http://ss64.com/nt/syntax-run.html|running PowerShell from CMD prompt]]
 
 
July 23, 2014, at 10:27 AM by MichaelPaulukonis - execution policy and running scripts
Added lines 29-34:
* Set the [[http://ss64.com/ps/set-executionpolicy.html|execution policy]]
** [@Set-ExecutionPolicy RemoteSigned@], for example


!! Running Scripts
[[http://ss64.com/ps/syntax-run.html|from within PowerShell]] or [[http://ss64.com/nt/syntax-run.html|running PowerShell fomr CMD prompt@]
 
 
July 23, 2014, at 10:22 AM by MichaelPaulukonis - script extension
Changed line 1 from:
Wikipedia:Windows_PowerShell
to:
[[Wikipedia:Windows_PowerShell]]
Added lines 17-20:


!! Extension
[@{scriptname}.ps1@] - but who could forget that, right?!!
 
 
July 03, 2014, at 09:48 AM by MichaelPaulukonis - tags
Changed lines 57-59 from:
http://stackoverflow.com/questions/872510/can-i-use-powershell-in-shell-mode-for-emacs

to:
[[http://stackoverflow.com/questions/872510/can-i-use-powershell-in-shell-mode-for-emacs]]

Changed lines 62-66 from:
[[Programming/Chocolatey]] has a simple install with PowerShell
to:
[[Programming/Chocolatey]] has a simple install with PowerShell


!! Category Tags
[[!CommandLine]] [[!Shell]] [[!PowerShell]]
 
 
June 13, 2014, at 11:12 AM by MichaelPaulukonis -
Added lines 47-52:


!!! link-dump
[[http://newdelhipowershellusergroup.blogspot.com/2012/02/accessing-windows-environment-variables.html|accessing environment variables]]

[@$env:<variable>@]
 
 
June 02, 2014, at 09:05 AM by MichaelPaulukonis - get guid with powershell
Added lines 44-46:

!!! Create a new GUID
[@[guid]::NewGuid()@] As found [[http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/25/powertip-create-a-new-guid-by-using-powershell.aspx|here]].
 
 
December 16, 2013, at 11:27 AM by OtherMichael -
Changed lines 14-18 from:
to:
For [=WinXP and beyond=] there is the [[http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx|MS Powershell]].

[[http://blogs.msdn.com/mikeormond/archive/2008/11/10/twitter-powershell-script.aspx|script for Twitter]]

Added lines 25-33:


[[#console2]][[#console]]
!! Use with Console2
See [[Programming.Shell#console2]]

NOTE: when configuring PowerShell do NOT use a custom text-color, as this will over-ride custom colors coming out of PS. Unless you like the monochrome look. In which case, go at it.

 
 
December 10, 2013, at 11:11 AM by OtherMichael - xrefs, small script, install notes
Changed lines 14-17 from:
!! use powershell to install Chocolatey
Which then allows a whole buncha ''nice'' stuff to be installed
'''easily.'''
[http://chocolatey.org|Chocolatey] has a simple install with PowerShell
to:

!! Installation
[[http://blogs.technet.com/b/danstolts/archive/2011/03/07/how-
to-install-powershell-on-windows-server-2003-and-enable-remote-powershell-management-all-servers-should-have-this-done.aspx|Install powershell on windows Server 2003]]
[[http://www.tech-recipes.com/rx/2521/windows_server_2008_install_windows_powershell/|Install powershell on Windows Server 2008]]
*
'''NOTE:''' Powershell does come with Server2008, but you may need to install it (see instructions).
* If you can't find it, search the programs files, and add it to your PATH variable
* then [@powershell@] should be available on the command-line

Added line 40:
[[Programming/Chocolatey]] has a simple install with PowerShell
 
 
December 10, 2013, at 11:08 AM by OtherMichael -
Changed lines 14-28 from:
to:
!! use powershell to install Chocolatey
Which then allows a whole buncha ''nice'' stuff to be installed '''easily.'''
[http://chocolatey.org|Chocolatey] has a simple install with PowerShell

!! some scripts
!!! delete all visual-source-safe files from a project
Where [@.\@] is the path to you project -- in this case, being executed from within the project root.
[@
get-childitem .\ -force -include "*.scc" -recurse | remove-item -force
@]

[@-force@] is (probably) required as [@*.scc@] files are usually "hidden" files, and [@-force@] is the only way to "find" them.


[[#emacs]]
Added lines 31-34:


!! See Also
[[Programming.Git#posh|PoshGit]]
 
 
March 30, 2011, at 04:50 PM by OtherMichael -
Changed lines 5-8 from:
to:
http://www.powershellpro.com/powershell-tutorial-introduction/tutorial-windows-powershell-console/
http://www.windowsitpro.com/article/windows-powershell/powershell-101-lesson-4.aspx

http://devcentral.f5.com/weblogs/Joe/archive/2009/01/09/powershell-abcs---o-is-for-output.aspx
Added lines 10-12:


http://huddledmasses.org/register-dll-calling-regsvr32-without-messageboxes-in-powershell/
 
 
March 30, 2011, at 04:42 PM by OtherMichael -
Added lines 5-7:

[[http://technet.microsoft.com/en-us/library/ee177031.aspx|Write-Host]] to output to console

 
 
March 30, 2011, at 11:20 AM by OtherMichael -
Added lines 5-7:

!! Integrating with Emacs
http://stackoverflow.com/questions/872510/can-i-use-powershell-in-shell-mode-for-emacs
 
 
March 30, 2011, at 11:08 AM by OtherMichael -
Added lines 1-4:
Wikipedia:Windows_PowerShell
[[http://msdn.microsoft.com/en-us/library/aa973757%28v=vs.85%29.aspx|Getting Started guide]]
[[http://technet.microsoft.com/en-us/scriptcenter/dd742419|getting started with Windows PowerShell]]
http://powershell.com/cs/