|
More site info...
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.
|
|
|
|
|
Posting activity on Windows PowerShell:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
45
|
176
|
445
|
|
Post:
|
123
|
459
|
1,528
|
|
|
Windows PowerShell Posting activity graph:
|
Top authors during last week:
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.
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...
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.
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...
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()
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.
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
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...
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.
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::
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 ...
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...
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 ...
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 ...
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 ...
Started 3 months, 1 week ago (2009-09-15 18:30:00)
by Alexey.Martseniuk
Started 1 week, 2 days ago (2009-12-18 19:20:00)
by Vadims Podans
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.
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
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
|
|
Hot threads for last week on Windows PowerShell::
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 ...
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 ...
Started 1 week, 2 days ago (2009-12-18 19:20:00)
by Vadims Podans
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 ...
Started 6 days ago (2009-12-21 20:06:00)
by Marco Shaw
Check this: http://the powershellguy.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
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. ...
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 ...
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 ...
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)?
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...
|
|