Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Exchange online- The WinRM client cannot process the request because the...

When i tried to connect to Exchange online by using powershellthe following error arises for me. $LiveCred = Get-Credential Username password $Session = New-PSSession -ConfigurationName...

View Article


Creating one custom object out one .net static method and one parameter

Hey Guys got this code: $Comps = Get-Content C:\comps.txt Foreach ($i in $comps) {Try{Write-Host $i[System.Net.Dns]::GetHostAddresses("$i") | fl IPAddressToString -ErrorAction stop}Catch {Write-Host...

View Article


Powershell v3 Installation

Hi AllTo Install Powershell version 3 does the whole WMF need to be installed (is it dependant on the other bits) or can v3 of powershell be installed without the rest of the bits being installed...

View Article

DbNull Treatment in PoSh 2 vs. 3

PoSh v3 apparently interprets System.DbNull values differently than PoSh v2.In v2, this expression returns True: [System.DbNull]::Value -eq $null. In v3, it returns False.More specifically, in v3...

View Article

Delete files/folders on remote servers using powershell

Hello, i am new to powershell.i am trying to delete some files & folders from remote computers (server-1, server-2. server-3, server-4) Some are windows 2003 server are some are 2008folders to be...

View Article


Date comparison failing at the same times each day

I have a script that checks the last run time of a scheduled task on a windows 2012 server. If the last run time was before 35 minutes ago..... it sends me an email. Works great until 1:17AM and...

View Article

using powershell for tpm enabling and encryption

Hello All,  In an old version of a software install I am creating, I used manage-bde in the win 7 standard environment to do bitlocker driver encryption. I had a script that did the following steps1....

View Article

How to update TerminalServicesProfilePath domain-wide?

OS = Server 2003 x86 SP1PS = v 2.0I need to find all users in our domain that have a TS User Profile and update the path to a new destination.  The problem is Get-ADUser cannot access the terminal...

View Article


Create folder in Outlook and move contents to it

Hi allWe have Outlook 2003, 2007 and 2010 and Exchange 2003 and the followingWe need to create a folder in Outlook called "whatever" and move all the contents of the Sent Items folder into the folder...

View Article


How to deal with Exceptions and -ErrorAction SilentlyContinue

Hi all.I have stumbled upon a problem with Exception handling and I am a bit lost.I am in the process of fixing several Powershell modules to make Cmdlets throw exceptions instead of erroring to the...

View Article

PowerShell Get-ChildItem

I want to get the directorys and file names of a path in a nice object. My problem is creating the one object out of the two different objects that are returned from get-childitem. I would like a dir...

View Article

Problems removing a user from a Group where the group dn contains a "/"...

Hellos.We have a requirement that when a User's contract (leaves company) his AD account is Disabled and All Group memberships are removed.The Powershell script running to do this contains theses...

View Article

Image may be NSFW.
Clik here to view.

date join and emp id bulk add

Dear TeamThe following objects have been added to the active directory 2008 R2. there are about thousand of users in my existing environment. My question is possible way of adding join date...

View Article


Error when creating virtual machine through C# powershell codings

Hi,I have difficulty creating new virtual machine. I always get this error when invoking the powershell codes:An exception of type 'System.Management.Automation.ParameterBindingException' occurred in...

View Article

Just a bit of startup help creating IIS Sites in IIS 7 - Powershell

Hi Guys, Girls, I have had a read everywhere, and I am getting mixed cmd coding for powershell.I would like to run a powershell script to create IIS Sites, the software will be held on a local drive.I...

View Article


PowerShell Script won't load Module/Snap-In when kicked off by scheduling...

I have a PowerShell script that setups up new AD users based on information from our payroll system.  I want to run it using CRD, which is a scheduling software we use mostly for sending out Crystal...

View Article

PowerShell - Setting targetAddress Active Directory attribute for all...

Hi,I would like to add all the individual MAC addresses for each corresponding computer account in Active Directory through PowerShell. The list has already been created in a CSV file.The column...

View Article


unexpected line breaks while using out-file

Hi all,here is my code to export bunch of inventory to a text file.$ADInfo = Get-ADDomain $allDCs = $ADInfo.ReplicaDirectoryServers foreach ($item in $allDCs) { $processor1 = (gwmi win32_processor...

View Article

Get-ADGroupMember - Trusted Domain User Accounts

I have several two way domain trusts at the moment and I think I'm hitting some type of resource problem or timeout when using Get-ADGroupMember on domain local groups that contain user accounts from...

View Article

PowerShell script to change AD password remotely

Hi,I'm trying to make a script in PowerShell for people in my organization to change their AD password.Some users of our organization aren't at the same domain (different organizations) but, their...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>