Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Windows PowerShell | Forum profile

Forum profile page for Windows PowerShell on http://social.technet.microsoft.com. This report page is the aggregated overview from a single forum: Windows PowerShell, located on the Message Board at http://social.technet.microsoft.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "Windows PowerShell" on the Message Board at http://social.technet.microsoft.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Microsoft TechNet Forums - Windows PowerShell (site profile, domain info microsoft.com)
Title: Windows PowerShell
Url: http://social.technet.microsoft.com/Forums/en-U...
Users activity: 34 posts per thread
Forum activity: 45 active threads during last week
 

Posting activity on Windows PowerShell:

  Week Month 3 Months
Threads: 45 176 445
Post: 123 459 1,528
 

Windows PowerShell Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
Tome Tanasovski
18
user's latest post:
Fun with Strings
Published (2009-12-21 22:42:00)
You should be able to convert the string into date/time and then spit it back out as date/time .tostring() if you want them all formated the same way. $var = ([Convert]::ToDateTime("Monday, February 23, 2009")).tostring() $var This spits it out in the format you're looking for.
mjolinor
18
user's latest post:
how to search whole hard drive...
Published (2009-12-23 21:53:00)
$found = @() $files = gci c:\*.*  -recurse |?{!($_.psiscontainer)} foreach ($file in $files){ if (select-string <pattern> $file -list){$found += $file} } $found Using the cmd line instead of gci is a good news, bad news, good news arrangement. The good news - it's only returning a path and filename string, so it's a lot quicker. The bad news - you don't get any other information...
Keith W.
10
user's latest post:
Fun with Strings
Published (2009-12-21 20:43:00)
Ahhh nice Vadims! Unfortunately it now breaks my script if the value is null so I'd have to test every one for Null... ugh! I guess an ugly string will have to work. Thanks guys.
Marco Shaw
9
user's latest post:
set "Decendant User...
Published (2009-12-24 02:34:00)
Try asking this in a AD scripting group also.  I'm not an AD export, otherwise I'd try to help you out...
Vadims Podans
8
user's latest post:
Fun with Strings
Published (2009-12-21 20:28:00)
IIUC, author uses Get-QADUser cmdlet. Based on my tests, AccountExpires property consist of two subproperties: 1) Value with DatTime type 2) DisplayName with String type and this entry has a text like this: End of Tuesday, 2010. gada 19. january 2Keith therefore if you want to get this property as "01/08/2009 20:19:17" you may just do this: $User.AccountExpires.Value.ToString()
Mervyn Zhang
6
user's latest post:
Execute script with alternate...
Published (2009-12-23 07:59:00)
Hi, You can use "PsExec –s powershell MOREPARAMETER" to start PowerShell script running in System account. PsExec http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx Thanks.
Lincoln Atkinson
5
user's latest post:
WMI query, getting x64 computers?
Published (2009-12-17 17:38:00)
Are you sure you are looking for WMI?  Your example appears to be LDAP...  Vladims's answer works great if it's really WMI. -Lincoln
bjboudre
4
user's latest post:
Execute script with alternate...
Published (2009-12-19 13:35:00)
I am trying to find a way to execute a PS script using domain credentials from the "Local System" context.  We are using System Center Configuration Manager (SCCM) to deploy OS'es for servers and we have written PowerShell scripts to do the configuration on each server depending on the role.  The one problem we can't get past right now is when we have to run a process that needs access to a...
StangMan71
4
user's latest post:
Need to pass an exit code of 0...
Published (2009-12-21 20:23:00)
When a script completes, does it exit with an exit code of '0'?  I need to pass an exit code of 0 to the 3rd party application.
saurabh180407
4
user's latest post:
Invoke-SqlCmd Timeout Error: Help
Published (2009-12-23 22:31:00)
Hi i am using invoke-sqlcmd to attach a database it was working fine till yesterday but now i am getting an error "The timeout period elapsed prior to completio n of the operation or the server is not responding. At E:\Bin\Extract_Zip.ps1:65 char:14 + invoke-sqlcmd  <<<< -Query " EXEC sp_attach_db @dbname = '$Database_Name'  ,  @filename1 =...
 

Latest active threads on Windows PowerShell::

Microsoft TechNet Forums
Started 3 days, 22 hours ago (2009-12-23 21:48:00)  by Greg Fricke
My system is set to executionpolicy level of unrestricted. I am running a powershell script I wrote on another machine. It runs fine from powershell and from the commandline via powershell myscript.ps1 When I run it from my C# app I compile as an exe to run scripts it fails, am I missing something about running scripts from C#? I built/compiled the exe on a 32 bit machine and am ...
Thread:  Show this thread (4 posts)   Thread info: Script runs fine in PS, running from C# gives execution of scripts
disabled, system set to unrestricted Size: 1,282 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Script runs fine in PS, running from C# gives execution of scripts
disabled, system set to unrestricted :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 3 days, 17 hours ago (2009-12-24 02:34:00)  by Marco Shaw
Try asking this in a AD scripting group also. I'm not an AD export, otherwise I'd try to help you out...
Thread:  Show this thread (3 posts)   Thread info: set "Decendant User Objects" with powershell Size: 136 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: set "Decendant User Objects" with powershell :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 3 days, 21 hours ago (2009-12-23 22:31:00)  by saurabh180407
Hi i am using invoke-sqlcmd to attach a database it was working fine till yesterday but now i am getting an error "The timeout period elapsed prior to completio n of the operation or the server is not responding. At E:\Bin\Extract_Zip.ps1:65 char:14 + invoke-sqlcmd <<<< -Query " EXEC sp_attach_db @dbname = '$Database_Name' , @filename1 = '$mdf_file_name'" it runs ...
Thread:  Show this thread (3 posts)   Thread info: Invoke-SqlCmd Timeout Error: Help Size: 654 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Invoke-SqlCmd Timeout Error: Help :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 4 days, 3 hours ago (2009-12-23 16:52:00)  by mjolinor
$found = @() $files = gci c:\*.* -recurse |?{!($_.psiscontainer)} foreach ($file in $files){ if (select-string <pattern> $file -list){$found += $file} } $found Using the cmd line instead of gci is a good news, bad news, good news arrangement. The good news - it's only returning a path and filename string, so it's a lot quicker. The bad news - you don't get any other information about the ...
Thread:  Show this thread (7 posts)   Thread info: how to search whole hard drive for files that contain a certian word or
phrase? Size: 1,114 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to search whole hard drive for files that contain a certian word or
phrase? :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 4 days, 3 hours ago (2009-12-23 17:07:00)  by almostautomated
Hello Alexey, Just wanted to report that I was going to try out your Help Reader today and the install failed. This is on Win7 Ultimate with the latest SDK and all updates. The failure is on trying to start the clr_optimization_v2.0.50727_32 service. While that is installed, it is disabled. Instead clr_optimization_v4.0.21006_32 is available and enabled with delayed start. Rather than ...
Thread:  Show this thread (3 posts)   Thread info: [ANN] PowerShell Help Reader Basic Edition 1.2 (FREE) Size: 746 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: [ANN] PowerShell Help Reader Basic Edition 1.2 (FREE) :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 3 months, 1 week ago (2009-09-15 18:30:00)  by Alexey.Martseniuk
0 Sign In to Vote
Thread:  Show this thread (22 posts)   Thread info: PowerShell Help Reader 1.1 Size: 1,593 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "PowerShell Help Reader 1.1 :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 1 week, 2 days ago (2009-12-18 19:20:00)  by Vadims Podans
What OS you are running?
Thread:  Show this thread (7 posts)   Thread info: How to Uninstall WPS 1.0 and Install WPS 2.0. Size: 52 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to Uninstall WPS 1.0 and Install WPS 2.0. :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 4 days, 12 hours ago (2009-12-23 07:59:00)  by Mervyn Zhang
Hi, You can use "PsExec –s powershell MOREPARAMETER" to start PowerShell script running in System account. PsExec http://technet.microsoft.com/en-us/sysinternals/bb 897553.aspx Thanks.
Thread:  Show this thread (2 posts)   Thread info: Execute script with alternate credentials from teh "Local System" context Size: 271 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Execute script with alternate credentials from teh "Local System" context :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 1 week, 5 days ago (2009-12-15 15:26:00)  by Karl Mitschke
To find the PowerShell version, in PowerShell, type the following command: Get-Host Karl
Thread:  Show this thread (6 posts)   Thread info: how check Powershell Version ? Size: 169 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how check Powershell Version ? :: Windows PowerShell :: Microsoft TechNet Forums"
Microsoft TechNet Forums
Started 1 week, 3 days ago (2009-12-16 20:53:00)  by Vadims Podans
just add -Computer paramter to WMI query: (gwmi -class win32_computerSystem -computer "RemoteComputerName").username
Thread:  Show this thread (3 posts)   Thread info: Query username of person logged into a remote computer. Size: 150 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Query username of person logged into a remote computer. :: Windows PowerShell :: Microsoft TechNet Forums"
 

Hot threads for last week on Windows PowerShell::

Windows PowerShell
Fun with Strings - 13 new posts
Started 6 days, 3 hours ago (2009-12-21 16:52:00)  by Keith W.
I'm trying to get some user properties into a CSV file but some of the dates returned from get-qaduser include commas. The CreationDate comes back as a date like "01/08/2009 20:19:17" but the AccountExpires comes back as a string like "Monday, February 23, 2009" for some reason. So I want to replace the commas with spaces. It'll be ugly but at least human readable. So if I'm writing out this ...
Thread:  Show this thread (13 posts)   Thread info: Fun with Strings Size: 1,177 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Fun with Strings :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 4 days, 3 hours ago (2009-12-23 16:52:00)  by mjolinor
$found = @() $files = gci c:\*.* -recurse |?{!($_.psiscontainer)} foreach ($file in $files){ if (select-string <pattern> $file -list){$found += $file} } $found Using the cmd line instead of gci is a good news, bad news, good news arrangement. The good news - it's only returning a path and filename string, so it's a lot quicker. The bad news - you don't get any other information about the ...
Thread:  Show this thread (7 posts)   Thread info: how to search whole hard drive for files that contain a certian word or
phrase? Size: 1,114 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to search whole hard drive for files that contain a certian word or
phrase? :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 1 week, 2 days ago (2009-12-18 19:20:00)  by Vadims Podans
What OS you are running?
Thread:  Show this thread (7 posts)   Thread info: How to Uninstall WPS 1.0 and Install WPS 2.0. Size: 52 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to Uninstall WPS 1.0 and Install WPS 2.0. :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 1 week ago (2009-12-20 19:10:00)  by Marc Medina
I'm using the script provided here: http://technet.microsoft.com/en-us/library/dd72367 7(WS.10).aspx which is (inlcuding the change of double quotes to single quotes): Get-ADOrganizationalUnit -filter {name -like '*'} -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion –eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true After ...
Thread:  Show this thread (6 posts)   Thread info: problem using an MS supplied script Size: 802 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "problem using an MS supplied script :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 6 days ago (2009-12-21 20:06:00)  by Marco Shaw
Check this: http://thepowershellguy.com/blogs/posh/archive/200 8/05/20/hey-powershell-guy-how-can-i-run-a-powersh ell-script-from-cmd-exe-and-return-an-errorlevel.a spx Marked As Answer by Marco Shaw MVP , Moderator 11 hours 6 minutes ago
Thread:  Show this thread (5 posts)   Thread info: Need to pass an exit code of 0 to a 3rd party application Size: 981 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Need to pass an exit code of 0 to a 3rd party application :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 6 days, 2 hours ago (2009-12-21 18:02:00)  by phredd45
schtasks /create /sc weekly /d mon,wed,fri ... from Windows/.bat works schtasks /create /sc weekly /d mon,wed,fri ... from Powershell/.PS1 script generrates "ERROR: Invalid Argument/Option - 'WED'" error schtasks /create /sc weekly /d mon ... from Powershell/.PS1 script works Is this a bug? Is there a work-around? I've not been able to locate any references to this as a problem. ...
Thread:  Show this thread (4 posts)   Thread info: powershell/schtasks bug? Size: 553 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "powershell/schtasks bug? :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 3 days, 22 hours ago (2009-12-23 21:48:00)  by Greg Fricke
My system is set to executionpolicy level of unrestricted. I am running a powershell script I wrote on another machine. It runs fine from powershell and from the commandline via powershell myscript.ps1 When I run it from my C# app I compile as an exe to run scripts it fails, am I missing something about running scripts from C#? I built/compiled the exe on a 32 bit machine and am ...
Thread:  Show this thread (4 posts)   Thread info: Script runs fine in PS, running from C# gives execution of scripts
disabled, system set to unrestricted Size: 1,282 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Script runs fine in PS, running from C# gives execution of scripts
disabled, system set to unrestricted :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 4 days, 3 hours ago (2009-12-23 17:07:00)  by almostautomated
Hello Alexey, Just wanted to report that I was going to try out your Help Reader today and the install failed. This is on Win7 Ultimate with the latest SDK and all updates. The failure is on trying to start the clr_optimization_v2.0.50727_32 service. While that is installed, it is disabled. Instead clr_optimization_v4.0.21006_32 is available and enabled with delayed start. Rather than ...
Thread:  Show this thread (3 posts)   Thread info: [ANN] PowerShell Help Reader Basic Edition 1.2 (FREE) Size: 746 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: [ANN] PowerShell Help Reader Basic Edition 1.2 (FREE) :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 2 weeks, 6 days ago (2009-12-07 16:00:00)  by Marco Shaw
Are your lab and prod system completely synched with patches/service packs/hotfixes? Match the versions of the DNS/WMI related DLLs listed here: http://support.microsoft.com/kb/908865 Also are these both the same "bitness" (both x86 or both 64-bit)?
Thread:  Show this thread (6 posts)   Thread info: Update CNAME with PoSh Size: 373 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Update CNAME with PoSh :: Windows PowerShell :: Microsoft TechNet Forums"
Windows PowerShell
Started 3 days, 17 hours ago (2009-12-24 02:34:00)  by Marco Shaw
Try asking this in a AD scripting group also. I'm not an AD export, otherwise I'd try to help you out...
Thread:  Show this thread (3 posts)   Thread info: set "Decendant User Objects" with powershell Size: 136 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: set "Decendant User Objects" with powershell :: Windows PowerShell :: Microsoft TechNet Forums"