Search found 37 matches
- Mon Feb 09, 2009 9:26 am
- Forum: PowerShell
- Topic: differences between v1rtm and v2ctp3 in xpsp2
- Replies: 2
- Views: 2117
differences between v1rtm and v2ctp3 in xpsp2
about*.*about_aliases.htmabout_Arithmetic_operators.htmabout_arrays.htmabout_Assignment_operators.htmabout_associative_array.htm -- v1rtmabout_Automatic_variables.htmabout_break.htmabout_command_searches.htmabout_Command_syntax.htmabout_CommonParameters.htmabout_Comparison_operators.htmabout_continu...
- Mon Feb 09, 2009 9:26 am
- Forum: PowerShell
- Topic: differences between v1rtm and v2ctp3 in xpsp2
- Replies: 2
- Views: 2117
differences between v1rtm and v2ctp3 in xpsp2
about*.*about_aliases.htmabout_Arithmetic_operators.htmabout_arrays.htmabout_Assignment_operators.htmabout_associative_array.htm -- v1rtmabout_Automatic_variables.htmabout_break.htmabout_command_searches.htmabout_Command_syntax.htmabout_CommonParameters.htmabout_Comparison_operators.htmabout_continu...
- Thu Jan 15, 2009 7:30 am
- Forum: PowerShell
- Topic: '#' operator: documentation within
- Replies: 1
- Views: 1745
'#' operator: documentation within
a sample script of how to provide remarks to each block of events/ actions: # Get-DVD.ps1 # gets information about the CD/DVD devices in your system # your name here # date of creation # $drives = Get-WmiObject -Class Win32_CDROMDrive # # Display CD info $drives | Format-Table DeviceID, Descript...
- Thu Jan 15, 2009 7:30 am
- Forum: PowerShell
- Topic: '#' operator: documentation within
- Replies: 1
- Views: 1745
'#' operator: documentation within
a sample script of how to provide remarks to each block of events/ actions: # Get-DVD.ps1 # gets information about the CD/DVD devices in your system # your name here # date of creation # $drives = Get-WmiObject -Class Win32_CDROMDrive # # Display CD info $drives | Format-Table DeviceID, Descript...
- Thu Jan 15, 2009 7:16 am
- Forum: PowerShell
- Topic: 'f' operator: formatting output
- Replies: 1
- Views: 1594
'f' operator: formatting output
before:
after:
Cheers.
Code: Select all
PS> $mem = Get-WmiObject -Class Win32_ComputerSystem
TotalPhysicalMemory : 1062604800
Code: Select all
PS> "This system has {0} MB Free Memory" -f $($mem.TotalPhysicalMemory/1mb)
This system has 1013.37890625 MB Free Memory
- Thu Jan 15, 2009 7:03 am
- Forum: PowerShell
- Topic: .ManagementDateTimeconverter: meaningful output
- Replies: 1
- Views: 1867
.ManagementDateTimeconverter: meaningful output
before:
after]:
Cheers.
Code: Select all
PS> (Get-WmiObject Win32_OperatingSystem).InstallDate
20081013184949.000000+480
Code: Select all
PS> [System.Management.ManagementDateTimeconverter]::ToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate)
Monday, October 13, 2008 18:49:49
- Thu Jan 15, 2009 7:03 am
- Forum: PowerShell
- Topic: .ManagementDateTimeconverter: meaningful output
- Replies: 1
- Views: 1867
.ManagementDateTimeconverter: meaningful output
before:
after]:
Cheers.
Code: Select all
PS> (Get-WmiObject Win32_OperatingSystem).InstallDate
20081013184949.000000+480
Code: Select all
PS> [System.Management.ManagementDateTimeconverter]::ToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate)
Monday, October 13, 2008 18:49:49
- Thu Jan 15, 2009 6:55 am
- Forum: PowerShell
- Topic: '' operator: shell command
- Replies: 1
- Views: 1851
'' operator: shell command
Code: Select all
PS> get-process | Out-file $env:tempdummy.htm
Code: Select all
PS> cd $env:temp
PS> ./dummy.htm
Code: Select all
PS> & $env:tempdummy.htm
- Thu Jan 15, 2009 6:55 am
- Forum: PowerShell
- Topic: '' operator: shell command
- Replies: 1
- Views: 1851
'' operator: shell command
Code: Select all
PS> get-process | Out-file $env:tempdummy.htm
Code: Select all
PS> cd $env:temp
PS> ./dummy.htm
Code: Select all
PS> & $env:tempdummy.htm
- Tue Jan 13, 2009 7:32 am
- Forum: PowerShell
- Topic: how a PoSH script documentation is written
- Replies: 1
- Views: 1876
how a PoSH script documentation is written
when uploading a script to the file server.... a sample (using a pair of `` tags) before the code: .Get-DesktopResolution There are 4 Desktops on UK0N055 as follows: Desktop 1: Default Monitor Screen Height : 1200 Screen Width : 1920 Desktop 2: Default Monitor Screen Height : ...