| Topic |
 |
RE: Code Formatting 2 Yup, that worked. Simply manually enter the [ code ] and [ /code ] tags around your code and you should end up with a code block in your replies. :) by Poshoholic in Suggestion Box on 15 May 2011 12:17 PM
|
 |
RE: Code Formatting 2 Hi Chad,Regarding being able to reply to messages in the Suggestion Box, I just corrected the security configuration so you can now reply. It was a configuration error, nothing more.For code in replies when you use the Reply link at the bottom of t ... by Poshoholic in Suggestion Box on 15 May 2011 12:16 PM
|
 |
RE: Code Formatting for Forums Looks like that worked. Is this the functionality you were looking for? by Poshoholic in Suggestion Box on 13 May 2011 07:09 AM
|
 |
RE: Code Formatting for Forums You shouldn't have to do that. I'm going to test it in this reply by inserting some code by clicking on the Code button above this control, then inserting the code between the tags. [code] if ($onPowerShellCommunity.org) { Write-Host 'Lo ... by Poshoholic in Suggestion Box on 13 May 2011 07:08 AM
|
 |
RE: excel doesn't save txt to xml - please help a newbe Hello,This forum is for community announcements and assistance with the community site only. It is not for general PowerShell questions. Please post your question in one of the general PowerShell forums.Thank you, by Poshoholic in Community Announcements and Assistance on 04 May 2011 05:01 PM
|
 |
RE: How to access PSobject properties within the PSObject? To add a property that references another property, you need to use Add-Member to add a member of type ScriptProperty. ScriptProperty members are evaluated when they are referenced, so they can use information in other members or methods. For exam ... by Poshoholic in General PowerShell on 29 Apr 2011 08:48 AM
|
 |
RE: PermissionDenied with Set-Acl Command Hi Rebecca, Can I recommend that you post this question on the general PowerShell forum? This forum is for announcements and assistance with the site, not for general PowerShell questions. Thanks, by Poshoholic in Community Announcements and Assistance on 28 Apr 2011 05:00 PM
|
 |
This forum is now closed This forum was created to allow community members to talk about the "upcoming" release of PowerShell 2.0. PowerShell 2.0 is now widely available and most users are already using PowerShell 2.0. This forum will be closed at this time in favor of usin ... by Poshoholic in Developing for PowerShell v2.0 on 12 Apr 2011 07:29 PM
|
 |
RE: C# invoking the wrong powershell I recommend reposting this question to the PowerShell Development forums that aren't part of Looking Ahead. This forum is not actively monitored. I'm going to add a post so that others know this as well. by Poshoholic in Developing for PowerShell v2.0 on 12 Apr 2011 07:28 PM
|
 |
This forum is now closed This forum was created to allow community members to talk about the "upcoming" release of PowerShell 2.0. PowerShell 2.0 is now widely available and most users are already using PowerShell 2.0. This forum will be closed at this time in favor of us ... by Poshoholic in Using PowerShell v2.0 on 12 Apr 2011 07:21 PM
|
 |
RE: get-content -wait vs. tail -f You should post this question in an appropriate forum if you haven't already. This forum is only for suggestions for the Community site. by Poshoholic in Suggestion Box on 12 Apr 2011 11:23 AM
|
 |
RE: Forum Moderators I completely agree Chad, great suggestion. As you can see by me marking this as the accepted answer, it's definitely possible, so now we just need to determine who will be the forum moderators. by Poshoholic in Suggestion Box on 12 Apr 2011 11:19 AM
|
 |
Site update - February 17, 2011 The PowerShellCommunity.org site was updated today. Changes in this update include a few software upgrades and style sheet changes to address some major rendering issues that were observed in certain web browsers. PowerShellCommunity.org should no ... by Poshoholic in Community Announcements and Assistance on 17 Feb 2011 01:56 PM
|
 |
RE: mousecursor disappears over grey sidebars Hi again,We just published an update to the site today with a bunch of style fixes, and this fix was included in that update so your mouse shouldn't disappear on you anymore in IE 8 (or 9).Thanks for reminding me that this needed to be fixed. by Poshoholic in Suggestion Box on 17 Feb 2011 01:50 PM
|
 |
RE: mousecursor disappears over grey sidebars Thanks for pointing out this issue. I have experienced it myself on my Windows 7 machine with IE 9 beta from time to time. I am not sure what the root cause is, but will think about this as we clean up the site. by Poshoholic in Suggestion Box on 20 Jan 2011 07:01 PM
|
 |
RE: Security Log question FYI, instead of getting the event log data you want like this: Get-EventLog Security -ComputerName "." | ? {$_.EventId -eq 4663} ... I strongly recommend you do it like this: Get-EventLog Security -InstanceId 4663 -ComputerName "." ... by Poshoholic in General PowerShell on 08 Mar 2010 07:21 AM
|
 |
RE: Getting Eventlogs for a certain day Here's a cleaner way using Get-EventLog in PowerShell 2.0: $date = Get-Date '01/22/2010' Get-EventLog -LogName $logName -Source mpkLogParser -After $date -Before $date.AddDays(1) -Newest 1 by Poshoholic in General PowerShell on 29 Jan 2010 01:15 PM
|
 |
RE: Piping properties from Get-QADuser to Set-Qaduser The problem with your current script is that $_ doesn't have a value when you are trying to reference it. $_ only gets set inside script blocks in the pipeline like in ForEach-Object, Where-Object, or in Script Block parameters. So you need to e ... by Poshoholic in Active Directory on 07 Jan 2010 05:56 PM
|
 |
RE: Script to display folders and sub folders search & replace Something like this should do the trick: Get-ChildItem -LiteralPath $rootFolder -Filter *SalesDB*.sql -Recurse -Force | Where-Object {-not $_.PSIsContainer} | Rename-Item -NewName {$_.Name -replace 'SalesDB','ProfileDB'} by Poshoholic in General PowerShell on 07 Oct 2009 08:53 PM
|
 |
RE: Why does this work? Right, System.Object[] is an array of objects. You don't always get an array just by wrapping something in brackets though. You may only get one object if there is only one object. If you want to make sure you have an array, be explicit a ... by Poshoholic in General PowerShell on 29 Sep 2009 11:00 AM
|
 |
RE: Why does this work? The former retrieves all services and stores them in memory and then from that collection of services you retrieve the length (count). The latter retrieves all services and passes each one to Get-Member, one at a time. Get-Member identifies that ... by Poshoholic in General PowerShell on 28 Sep 2009 09:09 PM
|
 |
RE: get-childitem vs. get-childitem * Get-ChildItem -Filter * returns a short name. Maybe that's where you saw the short name while using a wildcard? by Poshoholic in General PowerShell on 06 Aug 2009 01:44 PM
|
 |
RE: get-childitem vs. get-childitem * Best educated guess: When you use a wildcard in the path parameter in Get-ChildItem, you may end up with objects (files and folders) from multiple directories. For example, if you have this structure: C:\Temp1\Folder1 C:\Temp2\Folder1 C:\ ... by Poshoholic in General PowerShell on 06 Aug 2009 01:43 PM
|
 |
RE: set-QADUser If you have all of the groups in one string (a list of semi-colon delimited DNs), you can just split it into an array like this: $myString.Split(';') So you would want to change the script I proposed to this: $list | % {foreach ($groupDN in ... by Poshoholic in Active Directory on 29 Jul 2009 01:02 PM
|
 |
RE: set-QADUser Don't set the group membership that way. It's not supported. You need to use Add-QADGroupMember instead. For example: $list | % {foreach ($groupDN in $_.MemberOf) {Add-QADGroupMember -Identity $groupDN -Member $_.DN}} If you want to suppress errors ... by Poshoholic in Active Directory on 26 Jul 2009 10:24 PM
|
 |
RE: Timing issue with creating accounts... Set the ACL using the SID instead of the account name. That way it won't have to be looked up. See this thread for more details: http://www.powergui.org/thread.jspa...geID=30161 by Poshoholic in Active Directory on 26 Jul 2009 10:19 PM
|
 |
RE: N00b: Another (probably) stupid question - do while loop Ditto, it's absolutely not necessary. by Poshoholic in General PowerShell on 24 Jul 2009 09:01 AM
|
 |
RE: LastLogonTimeStamp for computers I'm not sure what you mean by converting the LastLogonTimestamp to a readable format. My lastLogonTimestamp value looks like this: DisplayName lastlogontimestamp ----------- ... by Poshoholic in Active Directory on 24 Jul 2009 08:58 AM
|
 |
RE: Problem declaring array with single item As you may have gathered from other responses, variables are weakly typed in PowerShell by default. If you create your variables without types, they will have whatever type they are assigned to. Looking at your script, it breaks down like this:$gl ... by Poshoholic in General PowerShell on 23 Jul 2009 03:12 PM
|
 |
RE: Problem declaring array with single item This post is for you: http://poshoholic.com/2009/07/03/po...-an-array/Also, to add one additional point to this, a string is an array of characters. In your second example you have stored a string in $global:remoteServices. Then when you ask for ind ... by Poshoholic in General PowerShell on 23 Jul 2009 02:33 PM
|