Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: Add Multiple values to existing Property

I need to specify my need. I have the following variable: $domain = test.com, test2.com I tried to execute it with the following command but it keeps deleting the last record: `$domain | %...

View Article


Reply To: The CIM namespace root/Microsoft/Windows/DesiredStateConfiguration...

I’ll keep looking but have not found anything. Thanks.

View Article


Reply To: Add Multiple values to existing Property

I think I’m probably still not understanding. $collection = Get-Transportrule test | select -expand RecipientAddressContainsWords $collection now contains the current rules, yes? $collection +=...

View Article

Reply To: Add Multiple values to existing Property

Sorry about the confusion. I was trying to modify a Transportrule based an all Domains with the Type of Internal Relay You helped me a lot with your inputs – I was aware how the...

View Article

Need a powershell script

Hi, Need a poweshell script for this simple requirement. I have one DL called “Example”. Here I wanted to set the Custom attribute 13 for this group members mailbox as Yes and rest of the mailbox...

View Article


Reply To: Getting HP Warranty Information

Hi Garth, You can find a copy of the script here: http://powershell.org/wp/forums/topic/invoke-webrequest-powershell-2-0/ It works fine on Powershell 3.0 I am just having some problems getting it to...

View Article

Reply To: Need a powershell script

You’ve got some PowerShell syntax issues there which I can offer some guidance on, but you’re also using Exchange cmdlets / objects, and I’m not familiar enough with them to give you a complete answer...

View Article

Reply To: Need a powershell script

Thanks Dave. Let me check and get back to you on this.

View Article


FQDN

What’s that mean. Book Powershell in a month of Lunches says “forest root domain” but I don’t know what that means?

View Article


Reply To: FQDN

Fully-Qualified Domain Name

View Article

AD module in window server 2008

Hi! i’ve a vm DC with 2008 32bit and unable to find the ad module?? ive have installed the powershell feature. Ive tried get-module -listavaible and i aint showing up there. Get-psdrive, no ad module...

View Article

Reply To: FQDN

E.g., “cn=DonJ,ou=Sales,dc=mycompany,dc=pri” is an FQDN. A “forest root domain” is the root domain of a forest, usually the first domain installed into a new forest.

View Article

Reply To: AD module in window server 2008

That module was first released with Windows Server 2008 R2, I believe. It would be present on a domain controller. On a client computer, you would get it by installing the Remote Server Administration...

View Article


Reply To: AD module in window server 2008

If I remember correctly, the AD module requires Server 2008 R2 or later (or Windows 7 / later), and it’s installed as part of the RSAT package.

View Article

Get-ADComputer Script Best Practice

I am having an issue on adding a variable to my Get-ADComputer script. This one is failing: $PartialName = "3v1*" Get-ADComputer -Filter 'Name -like "$PartialName"' | select -ExpandProperty Name Here...

View Article


Reply To: Get-ADComputer Script Best Practice

Well, there’s mainly “the way that works.” In your first example, you’re sending the literal $PartialName to Active Directory. It has no idea what to do with it. In your last example, by surrounding...

View Article

Reply To: Logging an Event into Windows Event Logs

Hi Mike that works great, but im having a problem where there’s more than one drive with shadow copy enabled. I assume this is because there would be two .LatestShadowCopy in the output (one for each...

View Article


Need Help with Advanced Functions

I have a script that i wrote, but i would like to utilize advanced functions and i have never created one. The script that I have basically reads a userlist.txt file and a computerlist.txt file and it...

View Article

Reply To: Get-ADComputer Script Best Practice

Did you try $PartialName = “3v1*” Get-ADComputer -Filter “Name -like ‘$PartialName’” | select -ExpandProperty Name Alternatively use an LDAP filter – I think this should work & can’t test it at...

View Article

Reply To: Need Help with Advanced Functions

If you could post you current script it would be easier to help. I’d recommend reading these help files about_Functions about_Functions_Advanced about_Functions_Advanced_Methods...

View Article
Browsing all 13067 articles
Browse latest View live